Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.224.57.25
<?php
function send_sms($send_numb,$mess_text)
{
$resp_stat="";
include("sys_connect.php");
$mysql="select * from sys_control";
$myres=mysqli_query($mycon,$mysql);
while($row = mysqli_fetch_assoc($myres))
{
$username=$row['fmessuser'];
$password=$row['fmesspswd'];
$from=$row['fmessfrom'];
$category=$row['fmesscatg'];
}
$to = $send_numb;
$text=$mess_text;
$url = "http://203.212.70.200/smpp/sendsms?";
$url .="username={$username}&password={$password}";
$url .="&to={$to}";
$url .="&from={$from}";
$text = urlencode($text);
$url .="&text={$text}";
$url .="&category={$category}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$myres = curl_exec($ch);
curl_close($ch);
if($myres)
{
$resp_stat="T";
}
return $resp_stat;
}
?>
|