View file znak_myxxx.ru/znak_myxxx.ru/mov.php

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 "&#x041F;epe&#x043C;ec&#x0442;&#x0438;&#x0442;&#x044C; &#x0432;:<br/>\n";
print "<select name=\"msect\">
<option value=\"1\">&#x041F;ap&#x043D;&#x0438;</option>
<option value=\"2\">&#x0414;e&#x0432;y&#x0448;&#x043A;&#x0438;</option>
<option value=\"3\">&#x0418;&#x043D;&#x0442;&#x0438;&#x043C;</option>
<option value=\"4\">&#x0413;e&#x0438;</option>
<option value=\"5\">&#x041B;ec&#x0431;&#x0438;</option>
<option value=\"6\">&#x041F;ap&#x044B;, &#x0411;&#x0438;</option>
<option value=\"7\">&#x0424;o&#x0442;o, &#x0432;&#x0438;&#x0434;eo, MMS</option>
<option value=\"0\">Pa&#x0437;&#x043D;oe</option></select><br/>\n";
print "<a href=\"mov.php?id=$id&amp;ref=$ref&amp;url=$url&amp;n=$n&amp;pas=$pas&amp;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&amp;n=$n&amp;pas=$pas\">
<timer value=\"10\"/>
<p align=\"center\">
<b>Move</b>\n";
print "</p>
</card>
</wml>\n"; }
}
else {
header("Location: http://mas.net.ru");
}
 ?>