File size: 1.41Kb
<?php
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head><title>Registering</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>";
?>
<p align="center">
<?php
$uid=$_GET["uid"];
$pwd=$_GET["pwd"];
$cnm = $_POST["cnm"];
$dsc = $_POST["dsc"];
include("func.php");
include("conf.php");
connect($dbserver,$dbname,$dbuser,$dbpass);
$res = addcat($uid,$pwd,$cnm,$dsc);
if ($res) {
echo "$cnm added successfully<br/>";
echo "<br/><a href=\"addcat.php?uid=$uid&pwd=$pwd\">Add Another Category</a>";
echo "<br/><a href=\"cpanel.php?uid=$uid&pwd=$pwd&logm=gt\">CPanel</a>";
} else {
echo "You don't have the privileges to do this";
}
echo "<br/><br/>";
echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
?>
</p>
</body>
</html>