File size: 1.69Kb
<?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>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>
<p align="center">
<?php
include("func.php");
include("conf.php");
$uid=$_GET["uid"];
$pwd=$_GET["pwd"];
connect($dbserver,$dbname,$dbuser,$dbpass);
if(isadmin($uid,$pwd))
{
echo "<b>Add category</b></p>";
echo "<p>";
?>
<?php
echo "<form action=\"addcf.php?uid=$uid&pwd=$pwd\" method=\"post\">";
echo "Category Name:<input name=\"cnm\" maxlength=\"30\" type=\"text\" value=\"\"/><br/>";
echo "Description: <input name=\"dsc\" maxlength=\"200\" type=\"text\" value=\"\"/><br/>";
echo "<input type=\"submit\" value=\"Add\"/>";
echo "<br/><a href=\"cpanel.php?uid=$uid&pwd=$pwd&logm=gt\">Cancel</a><br/>";
echo "</p><p align=\"center\">";
}else{
echo "You don't have the privileges to do this";
}
echo "<br/><a href=\"index.php?uid=$uid&pwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
?>
</p>
</body>
</html>