|
Server IP : 2a02:4780:3:2287:0:3736:a38e:8 / Your IP : 216.73.216.63 Web Server : LiteSpeed System : Linux sg-nme-web2187.main-hosting.eu 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, 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/../Management/../../demo/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
include_once 'Sms.php';
//include_once "../Admin/connections/connection.php";
class MainSms
{
public function call()
{
$rndno=rand(1000,9999);
$_SESSION['OTP']=$rndno;
$phone=$_SESSION['Phone_user'];
$to=$phone;
$message = urlencode("Login OTP is ".$rndno);
$api= "Ab1f78757582d0fd32056f37ccbeea581";
$id = "TEACHR";
$url = "http://alerts.solutionsinfini.com/api/v4/?";
//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: otpprocess.php');
exit();
?>