File size: 3.07Kb
<?
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 $moder2 && !$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']){
//////////////////
$r = mysql_query("SELECT * FROM `linkbase` ");
$n = MYSQL_NUMROWS($r);
//////////////////
echo"<p align=\"left\">Активировано ссылок: $n<br/>Акт.ссылка-Лог-Перех.сег-Перех.всего-Предупреж<br/><br/>";
//////////////////
$result = mysql_query("SELECT * FROM `user` ");
$number = MYSQL_NUMROWS($result);
//////////////////
if($number==0){echo"Нет зарегистрированных пользователей.";}
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);
//////////////////
echo"<b>$act</b>|$row[login]-$count-$row[counter]|$zu[counter]<a href=\"moder_pred.php?user=$row[login]\">[ПРЕД]</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>";
//////////////////
include"inc/foot.php"; exit;
}else{
echo"Страница не существует, или была удалена!<br/><a href=\"panel.php\">В панель</a><br/>";
include"inc/foot.php"; exit;}
?>