| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/check/checktime/ |
Upload File : |
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
include ($path.'include/class_application.php');
include ($path.'include/function_sms.php');
$CLASS['db'] = new db();
$CLASS['db']->connect ();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$checkid = $_REQUEST['checkid'];
$text_sms = $_REQUEST['text_sms'];
$text_sms_end = $_REQUEST['text_sms_end'];
$tb_student_name = $_REQUEST['tb_student_name'];
$tb_student_phone = $_REQUEST['tb_student_phone'];
$count_rows = $_REQUEST['count_rows'];
for($r=0;$r<$count_rows;$r++){
$text_sms_i = $text_sms[$r];
$text_sms_end_i = $text_sms_end[$r];
$tb_student_name_i = $tb_student_name[$r];
$tb_student_phone_i = $tb_student_phone[$r];
$url = "http://www.cat4sms.com/api/api.php";
$username = "cnet333629";
$password = "cnet333629";
$msisdn = $tb_student_phone_i;
$message = $text_sms_i.''.$tb_student_name_i.''.$text_sms_end_i;
$sender = "CAT4SMS";
$ScheduledDelivery = "101028000020532";
$param = "command=send&username=$username&password=$password&msisdn=$msisdn&message=$message&sender=$sender&ScheduledDelivery=$ScheduledDelivery";
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
$result = curl_exec ($ch);
curl_close ($ch);
}
print "
<script language='javascript'>
alert('Send Success !!!');
window.location.href='index.php';
</script>
";
?>