-
Notifications
You must be signed in to change notification settings - Fork 1
/
sendsms.php
24 lines (21 loc) · 702 Bytes
/
sendsms.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
<?php
/**
* @author Kingster
* @author SuyashBansal
* @category SMS
* @copyright 2015
* @description Request this page with get or post params
* @param uid = Way2SMS Username
* @param pwd = Way2SMS Password
* @param phone = Number to send to. Multiple Numbers separated by comma (,).
* @param msg = Your Message ( Upto 140 Chars)
*/
include('way2sms-api.php');
if (isset($_REQUEST['uid']) && isset($_REQUEST['pwd']) && isset($_REQUEST['phone']) && isset($_REQUEST['msg'])) {
$res = sendWay2SMS($_REQUEST['uid'], $_REQUEST['pwd'], $_REQUEST['phone'], $_REQUEST['msg']);
if (is_array($res))
echo $res[0]['result'] ? 'true' : 'false';
else
echo $res;
exit;
}