-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmscommandmatch.php
78 lines (52 loc) · 1.99 KB
/
smscommandmatch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/*
*
* Author: Sherwin R. Terunez
* Contact: sherwinterunez@yahoo.com
*
* Date Created: February 23, 2011
*
* Description:
*
* Application entry point.
*
*/
//define('ANNOUNCE', true);
error_reporting(E_ALL);
ini_set("max_execution_time", 300);
define('APPLICATION_RUNNING', true);
define('ABS_PATH', dirname(__FILE__) . '/');
if(defined('ANNOUNCE')) {
echo "\n<!-- loaded: ".__FILE__." -->\n";
}
require_once(ABS_PATH.'includes/index.php');
date_default_timezone_set('Asia/Manila');
/*
[smsinbox] => Array
(
[smsinbox_contactsid] => 5
[smsinbox_contactnumber] => 09493621618
[smsinbox_simnumber] => 09088853095
[smsinbox_message] => eshop rl 5 09493621618
[smsinbox_unread] => 1
)
*/
$content = array();
$content['smsinbox_contactsid'] = 5;
$content['smsinbox_contactnumber'] = '09493621618';
$content['smsinbox_simnumber'] = '09088853095';
//$content['smsinbox_message'] = '1/2 19-Jul 14:03:639397599095 has loaded SMARTLoad All Text 10 (P9.55) to 09493621618. Your new Load Wallet Balance is P1018.31.';
//$content['smsinbox_message'] = '19Jul 1742: 09397599095 has loaded LOAD 5 (P4.77) to 09493621618. New Load Wallet Balance:P999.23. Ref:071068076269';
//$content['smsinbox_message'] = '2/2 Maari ring ibenta ang Big Bytes 50 w/ 700 MB valid for 3 days! Text BIG50 to 2477. Ref:800011271612';
//$content['smsinbox_message'] = '19Jul 1904: 09397599095 has loaded LOAD 5 (P4.77) to 09493621618. New Load Wallet Balance:P989.69. Ref:071068117401';
$content['smsinbox_message'] = '19Jul 1934: 09397599095 has loaded LOAD 5 (P4.77) to 09493621618. New Load Wallet Balance:P984.92. Ref:071068133097';
/*$ret = smsExpressionsMatched($content);
pre(array('$ret'=>$ret));
if(!empty($ret['regx'])) {
if(preg_match('/'.$ret['regx'].'/si', $ret['smsinbox']['smsinbox_message'], $matches)) {
pre(array('$matches'=>$matches));
}
}
*/
processSMS($content);
// eof