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 ] |
---|
<?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(); ?>