File size: 1.07Kb
<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="login" title="WAP FORUMS">
<p align="center">
<?php
$nick=$_GET["nick"];
$pass=$_GET["pass"];
$forumas=$_POST["forumux"];
$chngto=$_POST["chngto"];
$perms=$_POST["perms"];
$adminonl=$_POST["adminonl"];
$modonl=$_POST["modonl"];
include("core.php"); //load main functions
include("conf.php"); //load config
echo connect($dbuser,$dbpass,$dbserver,$dbname);
//$name=base64_decode($name);
echo login($nick,$pass);
echo "<br/><br/>";
global $logged;
if ($logged)
{
isadmin($nick,$pass);
global $administrator;
if (!$administrator) echo "You are not allowed to do this!"; else
{
echo editforum($nick,$pass,$forumas,$chngto,$perms,$adminonl,$modonl);
};
};
echo "<a href=\"index.php?nick=$nick&pass=$pass\">BACK</a>";
?>
</p>
</card>
</wml>