fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [10009] sms


From: Sigurd Nes
Subject: [Fmsystem-commits] [10009] sms
Date: Wed, 19 Sep 2012 08:20:40 +0000

Revision: 10009
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10009
Author:   sigurdne
Date:     2012-09-19 08:20:38 +0000 (Wed, 19 Sep 2012)
Log Message:
-----------
sms

Modified Paths:
--------------
    trunk/sms/inc/plugin/gateway/bergen_kommune/send.php

Modified: trunk/sms/inc/plugin/gateway/bergen_kommune/send.php
===================================================================
--- trunk/sms/inc/plugin/gateway/bergen_kommune/send.php        2012-09-18 
10:37:05 UTC (rev 10008)
+++ trunk/sms/inc/plugin/gateway/bergen_kommune/send.php        2012-09-19 
08:20:38 UTC (rev 10009)
@@ -29,8 +29,12 @@
                        $options['location']    = 
$this->sms_param['service_url'];
                        $options['uri']                 = 
"http://soa01a.srv.bergenkom.no/biz/bk/sms/SmsService-v1";;
                        $options['trace']               = 1;
-                       $options['proxy_host']  = 
$this->sms_param['proxy_host'];
-                       $options['proxy_port']  = 
$this->sms_param['proxy_port'];
+                       
+                       if(isset($this->sms_param['proxy_host']) && 
$this->sms_param['proxy_host'])
+                       {
+                               $options['proxy_host']  = 
$this->sms_param['proxy_host'];
+                               $options['proxy_port']  = 
$this->sms_param['proxy_port'];
+                       }
                        $options['encoding']    = 'iso-8859-1';//'UTF-8';
                        $options['login']               = 
$this->sms_param['login'];
                        $options['password']    = $this->sms_param['password'];
@@ -90,6 +94,11 @@
 
                function 
gw_set_delivery_status($gp_code="",$uid="",$smslog_id="",$p_datetime="",$p_update="",$external_id=0)
                {
+                       if(!$external_id)
+                       {
+                               return;
+                       }
+
                        require_once 'SmsService.php';
 
                        $options=array();
@@ -97,8 +106,13 @@
                        $options['location']    = 
$this->sms_param['service_url'];
                        $options['uri']                 = 
"http://soa01a.srv.bergenkom.no/biz/bk/sms/SmsService-v1";;
                        $options['trace']               = 1;
-                       $options['proxy_host']  = 
$this->sms_param['proxy_host'];
-                       $options['proxy_port']  = 
$this->sms_param['proxy_port'];
+
+                       if(isset($this->sms_param['proxy_host']) && 
$this->sms_param['proxy_host'])
+                       {
+                               $options['proxy_host']  = 
$this->sms_param['proxy_host'];
+                               $options['proxy_port']  = 
$this->sms_param['proxy_port'];
+                       }
+
                        $options['encoding']    = 'iso-8859-1';//'UTF-8';
                        $options['login']               = 
$this->sms_param['login'];
                        $options['password']    = $this->sms_param['password'];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]