0byt3m1n1
Path:
/
home
/
k74ns2xygros
/
www
/
globetech
/
cms
/
[
Home
]
File: register.php
<?php // Authorisation details. //$username = "infosky@blogworm.in"; //$hash = "49006f7b416e515543c5a5458df8e5e3ebf15a75f338804c6feb4dfdc6a19104"; $username = "support@globeindia.co.in"; $hash = "e72b3e1a685c9858ed2d6cab37e06979cebd43c65014197cea8e632867391f09"; // Config variables. Consult http://api.textlocal.in/docs for more info. $test = "0"; // Data for text message. This is the text message data. $sender = "GLOBEI"; // This is who the message appears to be from. $numbers = "9616099246"; // A single number or a comma-seperated list of numbers $rndno=rand(10000, 99999); $message = "Your otp number for Globe India Infrastructure is : ".$rndno; // 612 chars or less // A single number or a comma-seperated list of numbers $message = urlencode($message); $data = "username=" . $username . "&hash=" . $hash . "&message=" . $message . "&sender=" . $sender . "&numbers=" . $numbers . "&test=" . $test; $ch = curl_init('http://api.textlocal.in/send/?'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo$result = curl_exec($ch); // This is the result from the API print_r($result); echo $result['messages']['status']; echo $result['message']; echo $result['messages'][0]['status']; curl_close($ch); ?>