Вход Регистрация
Файл: public_html/gifts/index.php
Строк: 8
<?php
require_once '../core/system.php';
echo 
only_reg();
$header 'Подарки пользователя';
require_once 
'../core/head.php';

$id abs(intval($_GET['id']));
$user mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = '".$id."'"));
$gifts mysql_fetch_assoc(mysql_query("SELECT * FROM `gifts` WHERE `user` = '".$id."'"));

if(
$user == 0) {
header('Location: /');
exit();
}

echo 
'<div class="player"><a href="/gifts/gifts_go.php?id='.$id.'">Подарить подарок</a></div>';

if(
$gifts == 0) {
echo 
'<div class="player">У пользователя '.$user['nick'].' нет подарков!</div>';
}

require_once 
'../core/foot.php';
?>
Онлайн: 2
Реклама