hjkhhjhjol;io;ioio;ioiio;ioreererereio;;iooi;i;o;oii;o;ioo;iio;oi;
bnmbnmbnmnbmbio;io;irererereeo;o;oi;;oi;oioi;oi;oio;;oovn
/
home
/
u174022924
/
domains
/
rockonwheelstravels.in
/
public_html
/
rowpartner_api
/
Upload FileeE
HOME
<?php include 'lib/config.php'; if(isset($_REQUEST['send_otp'])){ //$api_key = '55F6205B9C262A'; $api_key = '56057790FE5C1F'; $from = 'LAYAJJ'; $contact = $_REQUEST['contact']; // $owner = "7351619168"; // $contact = ""; $otp=''; if($_REQUEST['status']==0){ $otp=rand(111111,999999); //echo $otp; $sms_text = "Dear Customer, ".$otp." is your one time password (OTP) - Creative Digital Infotech"; $send = array(); $template_id = '1207169477753067979'; //Submit to server $ch = curl_init(); curl_setopt($ch,CURLOPT_URL, "https://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=12507&routeid=30&type=text&contacts=".$contact."&senderid=".$from."&msg=".$sms_text."&template_id=".$template_id); //$response = curl_exec($ch); curl_exec($ch); curl_close($ch); // echo $response; whatsapp($contact,$sms_text); } $sent = true; $response["status"] = $sent; $response["otp"] = $otp; $response['wallet_amount_minimum']='1000'; $query="SELECT * FROM vendor_login INNER JOIN vendor_profile ON vendor_login.id = vendor_profile.vendor_id WHERE contact='$contact'"; $res=mysqli_query($conn,$query); $num=mysqli_num_rows($res); if($num>=1){ $row=mysqli_fetch_array($res); $response['data']=$row; } else{ $response['status']=false; $response['message']='Not registered'; } echo json_encode($response); } ?>