View file sms/bee.php

File size: 4.01Kb
<?php

header ("Content-type:text/vnd.wap.wml; charset=utf-8");

$site='www.beonline.ru';
$page='/portal/comm/send_sms/simple_send_sms.sms';
$rand=rand(1,9999);

print "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>
<card title=\"BeeLine_Sms\"><p>";

switch ($mode) 
{  
  case "ok":


$page=$page."?confirm_code=$confirm_code&phone=$phone&translit=$translit&network_code=$network_code&message=$message----This sms send by wap.NSKMOB.com&send=send&sendsms=send&confirm_key=$confirm_key&destination_number_from=ordinary";

//print $page.'<br/>';

$fp = @fsockopen($site, 80, $errno, $errstr, 30);
$out = "GET ".$page." HTTP/1.1\r\n";
$out .= "Host: ".$site."\r\n";
$out .= "Connection: Close\r\n";
$out .= "User-Agent: Opera".$rand."\r\n\r\n";
@fwrite($fp, $out);
/*
while (!feof($fp)) 
print fread($fp, 1000);
*/
print 'Ваше смс на номер <b>'.$phone.'</b> было успешно отправлено! В зависимости от нагрузки сети оно будет доставлено через время от 1 минуты до 1 часа.<br/>';
print '&gt;<a href="bee.php">Отправить еще одно смс</a><br/>';
    break;

  default:


$fp = @fsockopen($site, 80, $errno, $errstr, 30);
$out = "GET ".$page." HTTP/1.1\r\n";
$out .= "Host: ".$site."\r\n";
$out .= "Connection: Close\r\n";
$out .= "User-Agent: Opera".$rand."\r\n\r\n";
@fwrite($fp, $out);
while (!feof($fp)) 
$stroka.=fread($fp, 1000);

@fclose($fp);

//echo substr($stroka,$start,$onpage);

$key=substr($stroka,23682,10);

print 'Для отправки сообщения введите код, указанный на картинке<br/>
<img src="http://www.beonline.ru/servlet/send/confirm_code/'.$key.'.gif" alt="Loading..." width="80" height="20"/><br/>

<input name="confirm_code" value="" maxlength="4" format="*N"/><br/>


Префикс:<br/>
<select name="network_code">
<option value="3">Билайн, 903, 095</option>
<option value="6">Билайн, 905</option>
<option value="14">Билайн, 906</option>
<option value="17">Билайн, 909</option>
<option value="18">Билайн, 960</option>
<option value="23">K-Mobile, 333</option>
<option value="7">NC GSM, 865</option>
<option value="8">NC GSM, 902</option>
<option value="9">NC GSM, 878</option>
<option value="11">NC GSM, 903</option>
<option value="12">NC GSM, 905</option>
<option value="19">NC GSM, 906</option>
<option value="20">NC GSM, 909</option>
<option value="10">EXTEL GSM, 902</option>
<option value="13">EXTEL GSM, 905</option>
<option value="21">EXTEL GSM, 909</option>
<option value="15">Даль Телеком, 902</option>
<option value="16">Даль Телеком, 904</option>
<option value="22">Даль Телеком, 909</option>
<option value="1">DAMPS, 901</option>
<option value="2">DAMPS, 095</option>
</select><br/>
Номер (7 цифр):<br/>
<input name="phone" maxlength="7" format="*N"/><br/>
<select multiple="true" name="translit">
<option value="1">Translit</option>
</select> <br/>
 Сообщение:<br/>
        <input name="message" maxlength="150"/><br/>

&gt;<anchor>Отправить!
<go href="bee.php?mode=ok" method="post">
  <postfield name="confirm_code" value="$(confirm_code)"/>
  <postfield name="phone" value="$(phone)"/>
  <postfield name="translit" value="$(translit)"/>
  <postfield name="network_code" value="$(network_code)"/>
  <postfield name="message" value="$(message)"/>
  <postfield name="deferto" value=""/>
  <postfield name="adv_year" value=""/>
  <postfield name="send" value="send"/>
  <postfield name="sendsms" value="send"/>
<postfield name="confirm_key" value="'.$key.'"/>
<postfield name="destination_number_from" value="ordinary"/>
</go>
</anchor><br/>';
  break;
}
print '<a href="http://wap.nskmob.com/service">Сервисы</a><br/>';
print '<a href="http://wap.nskmob.com">На главную</a><br/>';
 
print '</p></card></wml>';
?>