Вход Регистрация
Файл: iwup.biz/boi/select.php
Строк: 36
<?php 
$mt
=microtime(1);
include(
'../db.php');
include(
'../ses.php');
include(
'../auth.php');
include(
'../nast.php');
include(
'../shapka.php');
include(
'func.php');
include(
'config.php');
if(
$_SESSION['auth'])
    {
    
$info=mysql_fetch_assoc(mysql_query("SELECT * from `user` WHERE `uid`='$_SESSION[uid]'"));
print 
'<div class="top">Выбор бойца</div><div class="ma">';
    if(
$info['status']<3)
    print 
'Недостаточно прав<br />';
    else
        {
        
$page=intval(@$_GET['page']);
        
$start=$page*$boecstr;
        
$end=$start+$boecstr;
        
$result=mysql_query("SELECT * from boigamer ORDER by id DESC");
        @
mysql_data_seek($result$start);
        while(
$user=mysql_fetch_assoc($result))
            {
            if(
is_file("foto/$user[id].jpg"))
            print 
'<img src="pic.php?file=foto/'.$user['id'].'.jpg" alt="Фото"/><br />';
            print 
"Имя: $user[name]<br />";
print 
"О персонаже: $user[opis]<br />";
            print 
"<a href="inf.php?id=$user[id]&amp;ses=$ses">Подробнее</a><br />";
echo 
'</div><div class="ma">';
            
$start++;
            if(
$start>=$end)
            break;
            }
        if(
mysql_num_rows($result)>$end)
        print 
"<a href="select.php?ses=$ses&amp;page=".($page+1)."">Далее</a><br />";
        if(
$page>0)
        print 
"<a href="select.php?ses=$ses&amp;page=".($page-1)."">Назад</a><br />";
        print 
"<a href="index.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
Реклама