View file wapirate/top/reset.php

File size: 996B
<?php

echo "<head><title>wapirate.net top sites</title>";

      echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";

echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />

<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>

<meta name=\"description\" content=\"wapirate.net :)\"> 

<meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>";

echo "<body>";

$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 hin='0',hout='0', dhits='0';");



echo "Counter was reset<br/>";



}else{

    echo "You can't do this<br/>";

}



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



?>

</p>

</body>

</html>