View file moder_view.php

File size: 3.24Kb
<?
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']){
//////////////////
$r = mysql_query("SELECT * FROM `linkbase` ");
$n = MYSQL_NUMROWS($r);
$m = mysql_query("SELECT * FROM `user`");
$countu = MYSQL_NUMROWS($m);
//////////////////
echo"<p align=\"left\">
Активных ссылок: $n из $countu<br/>";

echo "Статус | <font color=\"blue\">Имя</font> - <font color=\"green\">Перешли ему сегодня</font>-<font color=\"brown\">Перешел он сгдн.</font>-<font color=\"orange\">Перешел он всг.</font> | <font color=\"red\">Предупреждения</font><br/><br/>";
//////////////////
$result = mysql_query("SELECT * FROM `user` ");
$number = MYSQL_NUMROWS($result);
//////////////////
if($number==0){echo"&#x041D;&#x0435;&#x0442; &#x0437;&#x0430;&#x0440;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0438;&#x0440;&#x043E;&#x0432;&#x0430;&#x043D;&#x043D;&#x044B;&#x0445; &#x043F;&#x043E;&#x043B;&#x044C;&#x0437;&#x043E;&#x0432;&#x0430;&#x0442;&#x0435;&#x043B;&#x0435;&#x0439;.";}
if($number > 0){
while ($row = mysql_fetch_array($result)) {
$z=@mysql_query("select * from  `pred` where login='$row[login]'");
$zu=mysql_fetch_array($z);
/////////////////
$p=mysql_query("select * from `linkbase` where activater='$row[login]'");
$po=mysql_num_rows($p);
if($po>0){ $act="<font color=\"red\">+</font>"; } else{$act="-";}
$k = mysql_query("SELECT * FROM `perehod` where nick='$row[login]'");
$count = MYSQL_NUMROWS($k);
$u = mysql_query("SELECT * FROM perehod where ssylka='$row[url]'");
$c = MYSQL_NUMROWS($u);

echo "<b>$act</b>|<font color=\"blue\">$row[login]</font> - <font color=\"green\">$c</font>-<font color=\"brown\">$count</font>-<font color=\"orange\">$row[counter]</font>| <font color=\"red\">$zu[counter]</font>"; 


////////////////////////////
echo "<a href=\"moder_pred.php?user=$row[login]\">[&#x041F;&#x0420;&#x0415;&#x0414;]</a>|<a href=\"moder_ban.php?user=$row[login]\">[BAN]</a>|<a href=\"moder_del.php?user=$row[login]&linka=$row[url]\">[DEL]</a>|<a href=\"moder_unpred.php?user=$row[login]\">[Unpred]</a><br/>";
}}
echo"</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;}
?>