Просмотр файла forum/rename.php

Размер файла: 1.09Kb
<?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"];
$idp=$_GET["idp"];
$forumas=$_GET["forumas"];
$rnm=$_POST["rnm"];
$rnm2=$_POST["rnm2"];
echo connect($dbuser,$dbpass,$dbserver,$dbname);
//$name=base64_decode($name);
echo login($nick,$pass);
echo "<br/><br/>";
global $logged;
if ($logged)
   {
           ismod($nick,$pass,$forumas);
           global $moderator;
           if (!$moderator) echo "You are not allowed to do this!"; else
                     {
                      echo renamet($nick,$pass,$idp,$forumas,$rnm,$rnm2);
                     };
   };
echo "<a href=\"index.php?action=viewforum&amp;nick=$nick&amp;pass=$pass&amp;id=$forumas&amp;page=1\">&#x412;&#x435;&#x440;&#x43D;&#x443;&#x442;&#x44C;&#x441;&#x44F; &#x432; &#x444;&#x43E;&#x440;&#x443;&#x43C;</a><br/>";
echo "<a href=\"index.php?nick=$nick&amp;pass=$pass\">BACK</a>";
echo $endhtml;
?>