Размер файла: 2.05Kb
<?php
include '../sys/db.php';
include '../sys/conf.php';
include '../sys/start.php';
include '../sys/functions.php';
$config_title_name = "Админ-ка";
include '../style/head.php';
$act = isset($_GET['act']) ? $_GET['act'] : '';
switch($act){
default:
if(isset($user['login'])){
if(isset($user['level']) && $user['level']=='1'){
echo "<div class=title>Админ-ка: </div>\n";
echo "<div class=content>\n";
echo "<a href='room.php'>Управление комнатами</a><br>\n";
echo "<a href='ban.php'>Бан / Разбан</a><br>\n";
echo "<a href='add_joke.php'>Добавить шутку</a><br>\n";
echo "<a href='exchanger_confirm.php'>Подтверждение файлов</a>
[".mysql_result(mysql_query("SELECT COUNT(*) FROM `exchanger_files` WHERE `confirm` = '0'"),0)."]<br>\n";
echo "</div>\n";}
if(isset($user['level']) && $user['level']=='2'){
echo "<div class=title>Модер-ка: </div>\n";
echo "<div class=content>\n";
echo "<a href='ban.php'>Бан / Разбан</a><br>\n";
echo "<a href='add_joke.php'>Добавить шутку</a><br>\n";
echo "<a href='add_evil_joke.php'>Добавить злую шутку</a><br>\n";
echo "<a href='exchanger_confirm.php'>Подтверждение файлов</a>
[".mysql_result(mysql_query("SELECT COUNT(*) FROM `exchanger_files` WHERE `confirm` = '0'"),0)."]<br>\n";
echo "</div>\n";}
if(isset($user['level']) && $user['level']=='3'){
echo "<div class=title>Модер-ка: </div>\n";
echo "<div class=content>\n";
echo "<a href='ban.php'>Бан / Разбан</a><br>\n";
echo "<a href='add_joke.php'>Добавить шутку</a><br>\n";
echo "<a href='add_evil_joke.php'>Добавить злую шутку</a><br>\n";
echo "<a href='exchanger_confirm.php'>Подтверждение файлов</a>
[".mysql_result(mysql_query("SELECT COUNT(*) FROM `exchanger_files` WHERE `confirm` = '0'"),0)."]<br>\n";
echo "</div>\n";}
if(isset($user['level']) && $user['level']=='0'){
header ("Location: index.php"); exit;}
} else {header ("Location: index.php"); exit;}
break;}
include '../style/foot.php';
?>