One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
View File Name :
send_sms_registered.php
<? include("inc/header.php"); ?> <form id="form1" name="form1" method="post" action=""> <table width="200" border="0" cellspacing="0" cellpadding="5"> <tr><td bgcolor="#CCCCCC" colspan="2"><strong><h4>Send SMS Registered Application</h4></strong></td></tr> <tr> <td valign="top">Message</td> <td><label for="message"></label> <textarea name="message" id="message" cols="45" rows="5"></textarea>**140 Characters only</td> </tr> <tr> <td colspan="2"><input type="submit" name="submit" id="submit" value="Submit" /></td> </tr> </table> </form> <? if(isset($submit)){ $msg=$_POST['message']; $result=mysql_query("SELECT * FROM corp_reg_pay c,corp_mem a WHERE a.stud_id=c.stud_id AND a.branch_id='$branchid' AND c.status='Paid' AND c.stud_id NOT IN (SELECT d.stud_id FROM clearance_status d)"); //$result=mysql_query("SELECT * FROM clearance_status c,corp_mem r WHERE c.stud_id=r.stud_id AND c.dean_verify='1' AND c.branch_verify='1'"); while ($row=mysql_fetch_array($result)){ $phone_num=$row['phone']; $phone_num=formatPhoneNumber($phone_num); $resrultreturned = SendSMS("nsemembership", "nseit123", "$phone_num", "NSE", $msg); } echo $resrultreturned; } function SendSMS ($username, $password, $recipient, $sender, $msg) { /* Variables together with the values to be transferred. */ $un="$username"; /* customer username for gaining access to MySMSLink */ $up="$password"; /* customer password */ $recipient="$recipient"; /* number of destination */ $sender="$sender"; /* originating number */ $msg=stripslashes($msg); /* SMS text */ /* production of the required URL */ $url = "http://www.mysmslink.com/sms_send_out.php?" . "un=$un" . "&up=" . UrlEncode($up) . "&recipient=" . UrlEncode($recipient) . "&sender=" . UrlEncode($sender) . "&msg=" . UrlEncode($msg); /* invocation of URL*/ if (($f = @fopen($url, "r"))) { $answer = fgets($f, 255); return "$answer"; } } function formatPhoneNumber($phonenum){ $phonenum = trim($phonenum); $phonenum = str_replace(" ","",$phonenum); $phonenum = str_replace("-","",$phonenum);//remove - $sign_position = strpos($phonenum,"+"); if(substr($phonenum, 0,3) == "080" or substr($phonenum, 0,3) == "081" or substr($phonenum, 0,3) == "070"){ $myphone_num = substr($phonenum,1); $myphone_num = "234".$myphone_num; //echo "is $myphone_num"; } elseif(substr($phonenum, 0,1) == "+"){ $myphone_num = substr($phonenum,1);//remove the + sign $myphone_num = str_replace("(0)","",$myphone_num); }else{ $myphone_num = "234".$phonenum; } $count_num = $myphone_num."."; $last = strpos($count_num,"."); if($last < 14) { return $myphone_num; } } include("inc/footer.php"); ?>