File size: 1.28Kb
<?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>";
?>
<wml>
<card id="login" title="Top Sites">
<p align="center">
<?php
include("func.php");
include("conf.php");
$uid=$_GET["uid"];
$pwd=$_GET["pwd"];
$sid=$_GET["sid"];
connect($dbserver,$dbname,$dbuser,$dbpass);
if((isadmin($uid,$pwd)) || (($res = login($uid,$pwd))==0))
{
$delsx = mysql_query("DELETE FROM sites where id='".$sid."'");
if($delsx)
{
echo "Site Deleted Successfully!<br/><br/>";
}else{
echo "Site was not deleted!<br/><br/>";
}
echo "<a href=\"index.php?uid=$uid&pwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
}else{
echo "You don't have the privileges to do this<br/><br/>";
echo "<a href=\"index.php?uid=$uid&pwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
}
?>
</p>
</body>
</html>