File size: 850B
<?php
header ("Content-type:application/xhtml+xml; charset=utf-8");
header("Cache-Control: no-store, no-cache, must-revalidate");
include("core.php"); //load main functions
include("conf.php"); //load config
echo $style2;
$nick=$_GET["nick"];
$pass=$_GET["pass"];
$chfrom=$_POST["chfrom"];
$chto=$_POST["chto"];
echo connect($dbuser,$dbpass,$dbserver,$dbname);
echo login($nick,$pass);
echo "<br/>";
global $logged;
if ($logged)
{
isadmin($nick,$pass);
global $administrator;
if (!$administrator) echo "You are not allowed to do this!"; else
{
echo addbb($nick,$pass,$chfrom,$chto);
echo "<br/>";
};
};
echo "<a href=\"index.php?nick=$nick&pass=$pass\">[Форумы]</a>";
echo $endhtml;
?>