Вход Регистрация
Файл: iwup.biz/adminboidel.php
Строк: 34
<?php
$mt
=microtime(1);
include(
'db.php');
include(
'ses.php');
include(
'auth.php');
include(
'nast.php');
include(
'shapka.php');
include(
'boi/func.php');
include(
'boi/config.php');
if(
$_SESSION['auth'])
    {
    
$info=mysql_fetch_assoc(mysql_query("SELECT * from `user` WHERE `uid`='$_SESSION[uid]'"));
    print 
'</div><div class="top">Админ-панель:<br /></div><div>';
    if(
$info['status']<5)
    print 
'Недостаточно прав<br />';
    else
        {
        
$id=intval($_GET['id']);
        
$result=mysql_query("SELECT * from boigamer WHERE id='$id'");
        if(!
mysql_num_rows($result))
            {
            print 
'Указанного бойца не существует<br />';
            }
        elseif(!isset(
$_GET['act']))
            {
            print 
'Вы действительно хотите удалить бойца? <br />';
            print 
"<a href="adminboidel.php?ses=$ses&amp;id=$id&amp;act=do">Да</a>|<a href="adminboi.php?ses=$ses">Нет</a><br />";
            }
        else
            {
            print 
'Боец удален<br />';
            
mysql_query("DELETE from boigamer WHERE id='$id'");
            }
        print 
$razd;
        print 
'<a href="adminboi.php?ses='.$ses.'">Список бойцов</a><br />';
        print 
"<a href="admin.php?ses=$ses">Админ-панель</a><br />";
        }
    print 
'</div><div class="down"><a href="enter.php?ses='.$ses.'">Личный кабинет</a><br /></div><div>';
    }
else
    {
    print 
'Авторизация не удалась.Возможго вы ввели неверный логин или пароль, либо истекло время жизни сессии<br /><a href="index.php">повторить ввод</a><br />';
    }


include(
'foot.php');

?>
Онлайн: 1
Реклама