[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sms/inc class.sms.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] sms/inc class.sms.inc.php |
Date: |
Thu, 12 Oct 2006 12:03:18 +0000 |
CVSROOT: /sources/phpgroupware
Module name: sms
Changes by: Sigurd Nes <sigurdne> 06/10/12 12:03:18
Modified files:
inc : class.sms.inc.php
Log message:
fix
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/sms/inc/class.sms.inc.php?cvsroot=phpgroupware&r1=1.19&r2=1.20
Patches:
Index: class.sms.inc.php
===================================================================
RCS file: /sources/phpgroupware/sms/inc/class.sms.inc.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- class.sms.inc.php 22 Jun 2006 07:01:43 -0000 1.19
+++ class.sms.inc.php 12 Oct 2006 12:03:18 -0000 1.20
@@ -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.19 2006/06/22 07:01:43 sigurdne
Exp $
+ * @version $Id: class.sms.inc.php,v 1.20 2006/10/12 12:03:18 sigurdne
Exp $
*/
/**
@@ -102,10 +102,14 @@
break;
}
- $this->datetime_now = date($this->datetimeformat,
time());
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
}
+ function datetime_now()
+ {
+ return date($this->datetimeformat, time());
+ }
+
function gpcode2gpid($uid,$gp_code)
{
if ($uid && $gp_code)
@@ -158,7 +162,7 @@
function
websend2pv($username,$sms_to,$message,$sms_type="text",$unicode="0")
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$gateway_module = $this->gateway_module;
$uid = $this->account;
@@ -217,7 +221,7 @@
function
websend2group($username,$gp_code,$message,$sms_type="text")
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$gateway_module = $this->gateway_module;
$uid = $GLOBALS['phpgw']->accounts->name2id($username);
$mobile_sender = $this->username2mobile($username);
@@ -283,7 +287,7 @@
function send2group($mobile_sender,$gp_code,$message)
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$ok = false;
if ($mobile_sender && $gp_code && $message)
{
@@ -477,7 +481,7 @@
*/ function setsmsdeliverystatus($smslog_id,$uid,$p_status)
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$ok = false;
$db_query = "UPDATE phpgw_sms_tblSMSOutgoing SET
p_update='$datetime_now',p_status='$p_status' WHERE smslog_id='$smslog_id' AND
uid='$uid'";
$this->db->transaction_begin();
@@ -627,7 +631,7 @@
// part of SMS command
function
execcommand($sms_datetime,$sms_sender,$command_code,$command_param)
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$ok = false;
$sql = "SELECT command_exec,command_type FROM
phpgw_sms_featcommand WHERE command_code='$command_code'";
$this->db->query($sql,__LINE__,__FILE__);
@@ -668,7 +672,7 @@
// part of SMS custom
function
processcustom($sms_datetime,$sms_sender,$custom_code,$custom_param)
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$ok = false;
$sql = "SELECT custom_url FROM phpgw_sms_featcustom
WHERE custom_code='$custom_code'";
$this->db->query($sql,__LINE__,__FILE__);
@@ -709,7 +713,7 @@
// part of SMS autoreply
function
processautoreply($sms_datetime,$sms_sender,$autoreply_code,$autoreply_param)
{
- $datetime_now = $this->datetime_now;
+ $datetime_now = $this->datetime_now();
$ok = false;
$autoreply_request = $autoreply_code."
".$autoreply_param;
$array_autoreply_request = explode("
",$autoreply_request);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sms/inc class.sms.inc.php,
Sigurd Nes <=