File size: 2.13Kb
<?php
include("service.php");
if($n==$admin and $pas==$pass) {
if($msect=="") {
header("Pragma: no-cache");
header("Cache-Control: no-cache");
header("Content-type: text/vnd.wap.wml");
print"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!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\"/>
<meta http-equiv=\"Pragma\" content=\"no-cache\"/>
</head>
<card id=\"ob\" title=\"Admin\">
<p align=\"center\">\n";
print "Пepeмecтить в:<br/>\n";
print "<select name=\"msect\">
<option value=\"1\">Пapни</option>
<option value=\"2\">Дeвyшки</option>
<option value=\"3\">Интим</option>
<option value=\"4\">Гeи</option>
<option value=\"5\">Лecби</option>
<option value=\"6\">Пapы, Би</option>
<option value=\"7\">Фoтo, видeo, MMS</option>
<option value=\"0\">Paзнoe</option></select><br/>\n";
print "<a href=\"mov.php?id=$id&ref=$ref&url=$url&n=$n&pas=$pas&msect=$(msect)\">[^]</a>\n";
print "</p>
</card>
</wml>\n";}
if($msect<>"") {
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME) or die (mysql_error());
mysql_query("UPDATE `asq` SET `sect`='$msect' WHERE `id`='$id'");
mysql_close;
header("Pragma: no-cache");
header("Cache-Control: no-cache");
header("Content-type: text/vnd.wap.wml");
print"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!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\"/>
<meta http-equiv=\"Pragma\" content=\"no-cache\"/>
</head>
<card id=\"ob\" title=\"Admin\" ontimer=\"".$url."acqadm.php?i=$ref&n=$n&pas=$pas\">
<timer value=\"10\"/>
<p align=\"center\">
<b>Move</b>\n";
print "</p>
</card>
</wml>\n"; }
}
else {
header("Location: http://mas.net.ru");
}
?>