Размер файла: 1.85Kb
<?php
include '../config.php';
header("Content-type:text/vnd.wap.wml;charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
print "<wml><head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>
<card id=\"main\" title=\"MegaFon MSK\">
<onevent type=\"onenterforward\">
<refresh>
<setvar name=\"prefix\" value=\"7926\"/>
<setvar name=\"To\" value=\"\"/>
<setvar name=\"Msg\" value=\"\"/>
</refresh>
</onevent>
<p align=\"left\">MegaFon SMS MSK
<br/>_________<br/>Время: ";
$tm=date("H:i:s");
echo "$tm";
echo "<br/>";
echo "Дата: ";
$dat=date("j.m.Y");
print "$dat<br/>_________<br/>
<input format=\"*N\" emptyok=\"false\" size=\"4\" maxlength=\"4\" name=\"prefix\" value=\"7926\"/>
<input format=\"*N\" emptyok=\"true\" size=\"7\" maxlength=\"7\" name=\"To\" value=\"\"/><br/>
Текст: <br/>
<input emptyok=\"true\" maxlength=\"140\" name=\"Msg\" value=\"\"/><br/>
<anchor title=\"Отправить\">Отправить<br/>
<go href=\"http://www.megafonmoscow.ru/misc/sms2\" method=\"post\">
<postfield name=\"transliterate\" value=\"off\"/>
<postfield name=\"messlen\" value=\"160\"/>
<postfield name=\"send\" value=\"%CE%F2%EF%F0%E0%E2%E8%F2%FC\"/>
<postfield name=\"mlength\" value=\"%28%EC%E0%EA%F1%E8%EC%F3%EC+160+%F1%E8%EC%E2%EE%EB%EE%E2%29%3A\"/>
<postfield name=\"prefix\" value=\"$(prefix)\"/>
<postfield name=\"addr\" value=\"$(To)\"/>
<postfield name=\"message\" value=\"$(Msg)\"/>
</go>
</anchor>
<br/><a href=\"$homepage\">На главную</a>
</p>
</card>
</wml>";
?>