View file wapirate/top/banu.php

File size: 769B
<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
$who=$_GET["who"];
$uid=$_GET["uid"];
$pwd=$_GET["pwd"];


include("func.php");
include("conf.php");
connect($dbserver,$dbname,$dbuser,$dbpass);

?>
<wml>
<card id="main" title="Top Sites">

<p align="center">
<?php
if(isadmin($uid,$pwd))
{
$res = mysql_query("UPDATE sites SET banned='1' WHERE uid='".$who."'");
$res = mysql_query("UPDATE tusers SET banned='1' WHERE id='".$who."'");
echo "User Banned<br/>";

}else{
    echo "User Banned<br/>";
}

echo "<br/><a href=\"index.php?uid=$uid&amp;pwd=$pwd\">Home</a>";

?>
</p>
</card>
</wml>