require_once _SERVER DOCUMENT_ROOT sys inc start php require_once _SER

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/start.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/compress.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/sess.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/home.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/settings.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/db_connect.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/ipua.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/fnc.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/user.php';
$ank = get_user(intval($_GET['id']));
$set['title']=' Гарем юзера : '.$ank['nick'];
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/thead.php';
title().aut();
if(isset($_GET['del']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '".intval($_GET['del'])."' LIMIT 1"),0)!=0)
{
if (isset($user) && $user['id']==$ank['id']){
mysql_query("DELETE FROM `garem` WHERE `id_user` = '".intval($_GET['del'])."' LIMIT 1");
msg("Удален из гарема !");
}
}
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `garem` WHERE `id_garem` = $ank[id]"),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
if ($k_post==0){
echo "<div class='mess'> Гарем пустой :) </div>";
}
$q = mysql_query("SELECT `id_user`,`id`,`id_garem`,`time` FROM `garem` WHERE `id_garem` = $ank[id] ORDER BY id DESC LIMIT $start, $set[p_str]");
while ($post = mysql_fetch_assoc($q))
{
$diz = 1; // Функция на подключение дизайна
$garem = get_user($post['id_user']); // Переменная на показ юзеров в гареме
echo "<div class='nav".($diz++%2?'1':'2')."'>";
echo group($garem['id'])." <a href='/info.php?id=$garem[id]'>$garem[nick]</a> ".online($garem['id']).medal($garem['id'])."</br>";
echo " <img src='/style/icons/time.png' alt=''> Время кражи : <font color='red'> ".vremja($post['time'])."</font></br>";
echo ' <img src="/garem/icons/krazha.png"> Украден(a) : <b>'.$garem['user_krazha'].'</b> раз. </br>';
if ($ank['id']==$user['id'])echo '<img src="/garem/icons/delete.png" alt=""><a href="?del='.$ank['id'].'"> Удалить из гарема </a>';
echo "</div>";
}
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/tfoot.php';
?>