phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] sms/inc class.bocommon.inc.php class.sms.inc.ph...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] sms/inc class.bocommon.inc.php class.sms.inc.ph...
Date: Sat, 10 Mar 2007 15:21:59 +0000

CVSROOT:        /sources/phpgroupware
Module name:    sms
Changes by:     Sigurd Nes <sigurdne>   07/03/10 15:21:59

Modified files:
        inc            : class.bocommon.inc.php class.sms.inc.php 
        inc/plugin/gateway/gnokii: fn.php 

Log message:
        fix

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/sms/inc/class.bocommon.inc.php?cvsroot=phpgroupware&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/sms/inc/class.sms.inc.php?cvsroot=phpgroupware&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/sms/inc/plugin/gateway/gnokii/fn.php?cvsroot=phpgroupware&r1=1.6&r2=1.7

Patches:
Index: class.bocommon.inc.php
===================================================================
RCS file: /sources/phpgroupware/sms/inc/class.bocommon.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- class.bocommon.inc.php      27 Dec 2006 10:39:15 -0000      1.4
+++ class.bocommon.inc.php      10 Mar 2007 15:21:59 -0000      1.5
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package sms
        * @subpackage core
-       * @version $Id: class.bocommon.inc.php,v 1.4 2006/12/27 10:39:15 
sigurdne Exp $
+       * @version $Id: class.bocommon.inc.php,v 1.5 2007/03/10 15:21:59 
sigurdne Exp $
        */
 
        /**
@@ -54,7 +54,7 @@
 
                function sms_bocommon()
                {
-                       $this->currentapp               = 
$GLOBALS['phpgw_info']['flags']['currentapp'];
+                       $this->currentapp               = 'sms';
                        $this->socommon                 = 
CreateObject($this->currentapp.'.socommon');
                        $this->account                  = 
$GLOBALS['phpgw_info']['user']['account_id'];
 

Index: class.sms.inc.php
===================================================================
RCS file: /sources/phpgroupware/sms/inc/class.sms.inc.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- class.sms.inc.php   26 Feb 2007 22:21:07 -0000      1.23
+++ class.sms.inc.php   10 Mar 2007 15:21:59 -0000      1.24
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package sms
        * @subpackage sms
-       * @version $Id: class.sms.inc.php,v 1.23 2007/02/26 22:21:07 sigurdne 
Exp $
+       * @version $Id: class.sms.inc.php,v 1.24 2007/03/10 15:21:59 sigurdne 
Exp $
        */
 
        /**
@@ -204,8 +204,10 @@
                                        
(uid,p_gateway,p_src,p_dst,p_footer,p_msg,p_datetime,p_sms_type,unicode) 
                                        VALUES 
('$uid','$gateway_module','$mobile_sender','$c_sms_to','$sms_sender','$message','$datetime_now','$sms_type','$unicode')";
                
+                               $GLOBALS['phpgw']->db->transaction_begin();
                                
$GLOBALS['phpgw']->db->query($db_query,__LINE__,__FILE__);
-                               $smslog_id = 
$GLOBALS['phpgw']->db->get_last_insert_id(phpgw_sms_tblSMSOutgoing,'smslog_id');
+                               $smslog_id = 
$GLOBALS['phpgw']->db->get_last_insert_id('phpgw_sms_tblSMSOutgoing','smslog_id');
+                               $GLOBALS['phpgw']->db->transaction_commit();
                
                                $gp_code = "PV";
                                $to[$i] = $c_sms_to;

Index: plugin/gateway/gnokii/fn.php
===================================================================
RCS file: /sources/phpgroupware/sms/inc/plugin/gateway/gnokii/fn.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- plugin/gateway/gnokii/fn.php        26 Feb 2007 22:21:07 -0000      1.6
+++ plugin/gateway/gnokii/fn.php        10 Mar 2007 15:21:59 -0000      1.7
@@ -28,7 +28,7 @@
                        $sms_msg = $sms_msg.$sms_sender;
                    }
                    $the_msg = "$sms_to\n$sms_msg";
-                   $fn = $this->gnokii_param[path] . "/cache/smsd/out.$sms_id";
+                   $fn = $this->gnokii_param['path'] . 
"/cache/smsd/out.$sms_id";
                    umask(0);
                    $fd = @fopen($fn, "w+");
                    @fputs($fd, $the_msg);




reply via email to

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