/*
Simple and easy for modification, PHP script for SMS sending through HTTP with you own Sender ID and delivery reports.
You just have to type your account information on www.2-waysms.com and upload file on server.
*/
?>
SMSER
switch ($option) {
case sendsms:
if ($text == "") { echo "Error! Text not entered Go Back"; die; } else { }
if ($to == "") { echo "Error! Number not entered Go Back"; die; } else { }
$url = "http://www.2-waysms.com/sms.php";
$postfields = array ("text" => "$text", // do not need to change
"to" => "$to", // do not need to change
"id" => "*****", // you ID in www.2-waysms.com accout
"sec" => "****************************"); // your secret code in www.2-waysms.com account
if (!$curld = curl_init()) {
echo "Could not initialize cURL session.";
exit;
}
curl_setopt($curld, CURLOPT_POST, true);
curl_setopt($curld, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($curld, CURLOPT_URL, $url);
curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($curld);
curl_close ($curld);
$out = explode('|',$output);
echo "Message Status: $out[1]";
//Header("Location: $PHP_SELF");
break;
default:
echo "