Пример #1
0
 function tsms_SendSMS($number, $sign, $message, $wappush, $timezone)
 {
     global $tsms_table, $tsms_phone_key, $tsms_msg_key;
     $number = tsms_SafeEscapeString($number);
     $sign = tsms_SafeEscapeString($sign);
     $message = tsms_SafeEscapeString($message);
     $wappush = tsms_SafeEscapeString($wappush);
     if ($wappush = 'NONE') {
         $wappush = '';
     }
     //commented due fixing timezone issue
     //$date=date("Y-m-d H:i:s");
     $tz_offset = (2 - $timezone) * 3600;
     $date = date("Y-m-d H:i:s", time() + $tz_offset);
     $query = $tsms_phone_key . "=" . $number . "&" . $tsms_msg_key . "=" . $message;
     tsms_query($query);
 }
Пример #2
0
 function tsms_GetAllSMS($where = '')
 {
     global $tsms_table;
     $query = "SELECT * from `" . $tsms_table . "`" . $where;
     $result = tsms_query($query);
     return $result;
 }