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

Размер файла: 1.45Kb
<?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"];
$who=$_GET["who"];
$pluses=$_POST["pluses"];
$reason=$_POST["reason"];
echo connect($dbuser,$dbpass,$dbserver,$dbname);
//$name=base64_decode($name);
echo login($nick,$pass);
echo "<br/><br/>";
global $logged;
if ($logged)
   {
           ismod2($nick,$pass);
           global $moderator;
           if (!$moderator) echo "You are not allowed to do this!"; else
                     {
                               $reason=str_replace("$","",$reason);
                               $reason=str_replace("&lt;","",$reason);
                               $reason=str_replace("<","",$reason);
                               $reason=str_replace(">","",$reason);
                               $reason=str_replace("&gt;","",$reason);
                               $reason=str_replace("\"","",$reason);
                               $reason=str_replace("'","",$reason);
                               $reason=str_replace("\\","",$reason);
                               $reason=str_replace("&","",$reason);
                      echo pluses($nick,$pass,$who,$pluses,$reason);
                     };
   };
echo "<a href=\"index.php?nick=$nick&amp;pass=$pass\">BACK</a>";
echo $endhtml;
?>