Просмотр файла moder.php

Размер файла: 2.43Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
include "inc/conf_db.php";
include"inc/conf.php";
include"inc/head.php";
//////////////////
session_name("ID");
session_start();
/////////////////
$login=$_SESSION['login'];
$password=$_SESSION['password'];
//////////////////
$q = mysql_query("select * from `user` where  login='$login';");
$data = mysql_fetch_array($q);

////////////////////////////
if(($_SESSION['login'])==$moder OR ($_SESSION['login'])==$moder2 OR ($_SESSION['login'])==$moder3 OR ($_SESSION['login'])==$moder4 && !$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']) { echo "&#x041C;&#x043E;&#x0434;&#x0435;&#x0440;&#x043A;&#x0430;<br/><p align=\"left\">";
echo"» <a href=\"moder_view.php?".SID."\">&#x041F;&#x043E;&#x043B;&#x044C;&#x0437;&#x043E;&#x0432;&#x0430;&#x0442;&#x0435;&#x043B;&#x0438;</a><br/>";
echo"» <a href=\"moder_ban_list.php?".SID."\">&#x0411;&#x0430;&#x043D;-&#x043B;&#x0438;&#x0441;&#x0442;</a><br/>";
echo"» <a href=\"moder_book.php?".SID."\">Управление гостевой</a><br/>"; } 
////////////////////////////
if(($_SESSION['login'])==$moder OR ($_SESSION['login'])==$moder2 OR ($_SESSION['login'])==$moder3 OR ($_SESSION['login'])==$moder4 && !$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']) { echo "<br/>» <a href=\"sts2_quest.php?".SID."\">&#x0417;&#x0430;&#x043F;&#x0443;&#x0441;&#x0442;&#x0438;&#x0442;&#x044C; &#x043F;&#x0440;&#x043E;&#x0432;&#x0435;&#x0440;&#x043A;&#x0443;</a> [<a href=\"moder_info1.php?".SID."\"><font color=\"red\">i</font></a>]<br/>
» <a href=\"sts_quest.php?".SID."\">&#x041E;&#x0447;&#x0438;&#x0441;&#x0442;&#x0438;&#x0442;&#x044C; &#x0431;&#x0430;&#x0437;&#x044B;</a> [<a href=\"moder_info2.php?".SID."\"><font color=\"red\">i</font></a>]<br/>
</p>
<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit; } else {
echo "<b>ИДИ НА ХУЙ!</b><br/><a href=\"panel.php\">&#x0412; &#x043F;&#x0430;&#x043D;&#x0435;&#x043B;&#x044C;</a><br/><tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;}
?>