= "18" || !preg_match("/^[0-9]*$/",$PhoneNumber))
{
echo "Sms Not Send!!Wrong Number
";
}
elseif (strlen($Text) <= "4")
{
echo "Sms Not Send!!Minimal 5 Character Message!!
";
}
elseif (strlen($Text) >= "121")
{
echo "Sms Not Send!!Maximal 120 Character Message Message!!
";
}
else if(md5($_POST['code']) != $_SESSION['key'])
{
echo "Error: Wrong Verification Code !!
";
}else
{
$post = "PhoneNumber=".$_POST['PhoneNumber']."&Text=".$_POST['Text']."&DCS=".$_POST[DCS]."";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://sms.delesms.co.uk/httpsms.php");
curl_setopt($ch, CURLOPT_USERAGENT, $browser);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 94);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 94);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Connection: Close"));
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$status=curl_exec($ch);
curl_close($ch);
}
}
?>