mirror of https://github.com/IoTcat/sms-api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
498 B
22 lines
498 B
<?php |
|
|
|
include './functions.php'; |
|
|
|
header('Access-Control-Allow-Origin:*'); |
|
|
|
$to = $_REQUEST['to']; |
|
$template = $_REQUEST['template']; |
|
$s0 = $_REQUEST['s0']; |
|
$s1 = $_REQUEST['s1']; |
|
$s2 = $_REQUEST['s2']; |
|
$t = $_REQUEST['t']; |
|
|
|
if(!isset($to)) die('Target Tel not Specified!!'); |
|
if(!isset($t) || $t < time() - 10) die('Illegal Visit!!!'); |
|
if(!isset($template)) $template = 1; |
|
if(!isset($s0)) $s0 = ""; |
|
if(!isset($s1)) $s1 = ""; |
|
if(!isset($s2)) $s2 = ""; |
|
|
|
|
|
yimian__sms($to, $template, $s0, $s1, $s2);
|
|
|