Вход Регистрация
Файл: photo_battle/my_battle.php
Строк: 83
<?php
include_once '../sys/inc/home.php';
include_once 
H.'sys/inc/start.php';
include_once 
H.'sys/inc/compress.php';
include_once 
H.'sys/inc/sess.php';
include_once 
H.'sys/inc/settings.php';
include_once 
H.'sys/inc/db_connect.php';
include_once 
H.'sys/inc/ipua.php';
include_once 
H.'sys/inc/fnc.php';
include_once 
H.'sys/inc/user.php';
$set['title']="Мой баттл";
include_once 
H.'sys/inc/thead.php';
title();
aut();
include_once 
H.'photo_battle/includes/configuration.php';
if (!isset(
$user)){
echo 
"<div class='mess'>Этот раздел только авторизированым пользователям.</div>";
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/'> Баттлы фотографий</a></div>";
include_once 
H.'sys/inc/tfoot.php';
}
$q=mysql_query("SELECT * FROM `photo_battle` WHERE (`id_user1`='$user[id]' OR `id_user2`='$user[id]' OR `id_user3`='$user[id]') AND `activ`!='2' LIMIT 1");
if(
mysql_num_rows($q)==0)echo "<div class='mess'>У вас нет активного баттла</div>";
while (
$battle mysql_fetch_array($q)){
$ank1=get_user($battle['id_user1']);
$ank2=get_user($battle['id_user2']);

$ank3=get_user($battle['id_user3']);
echo 
"<div class='mess'><a href='/info.php?id=$ank1[id]'><b>$ank1[nick]</b></a></div><div class='nav2'><table><td><img src='/photo_battle/images/$battle[img1].png' alt='' style='width:50px;height:50px;'></td><td><a href='/photo_battle/images/$battle[img1].png'>Просмотреть фотографию</a><br/><b>Голосов $battle[golos1]</b></td></table></div>";
if (
$battle['id_user2'])echo "<div class='mess'><a href='/info.php?id=$ank2[id]'><b>$ank2[nick]</b></a></div><div class='nav1'><table><td><img src='/photo_battle/images/$battle[img2].png' alt='' style='width:50px;height:50px;'></td><td><a href='/photo_battle/images/$battle[img2].png'>Просмотреть фотографию</a><br/><b>Голосов $battle[golos2]</b></td></table></div>";

if (
$battle['id_user3'])echo "<div class='mess'><a href='/info.php?id=$ank3[id]'><b>$ank3[nick]</b></a></div><div class='nav2'><table><td><img src='/photo_battle/images/$battle[img3].png' alt='' style='width:50px;height:50px;'></td><td><a href='/photo_battle/images/$battle[img3].png'>Просмотреть фотографию</a><br/><b>Голосов $battle[golos3]</b></td></table></div>";
echo 
"<div class='mess'>".($battle['activ']==0?"Ожидает начала":"Баттл активен")."</div>";
}
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/'> Баттлы фотографий</a></div>";
if (isset(
$user)){
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/new_battle.php'> Создать баттл</a></div>";
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/my_finish_battles.php'> Мои завершенные баттлы $my_finish</a></div>";
}
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/expect_battles.php'> Ожидают противников $expect</a></div>";
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/activ_battles.php'> Все активные $activ</a></div>";
echo 
"<div class='foot'><img src='/style/icons/str.gif' alt=''><a href='/photo_battle/finish_battles.php'> Все завершенные баттлы $finish</a></div>";
include_once 
H.'sys/inc/tfoot.php';
?>
Онлайн: 3
Реклама