Файл: public_html/prezents.php
Строк: 56
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Подарки';
include './system/h.php';
echo'
<center> <div class="mini-line"></div><div class="menuList">
<span class="btn"><span class="end"><a class="label" href="?user='.$user.'&tip=0">Романтика</a></span></span>
<span class="btn"><span class="end"><a class="label" href="?user='.$user.'&tip=1">Дружба</a></span></span>
<span class="btn"><span class="end"><a class="label" href="?user='.$user.'&tip=2">Праздники</a></span></span></center>
<center><span class="btn"><span class="end"><a class="label" href="?user='.$user.'&tip=4">Мужские</a></span></span>
<span class="btn"><span class="end"><a class="label" href="?user='.$user.'&tip=5">Премиум</a></span></span></center>
</div><div class="line"></div></div>
';
echo "<div class='block center'>";
if(isset($_GET['user'])){$user=abs(intval($_GET['user']));}else{$user=1;}
?>
<div class='mb10'></div>
<div class='block_zero'>
<?
if(isset($_GET['tip'])){
$tip=abs(intval($_GET['tip']));
}
if(@$tip > 5 or !isset($_GET['tip']) ){$tip=0;}
$q = mysql_query('SELECT * FROM `prezents` WHERE `tip` = "'.$tip.'" ORDER BY `id` DESC');
while($row = mysql_fetch_array($q)) {
echo'<a href="/mail/'.$user.'?gift='.$row['id'].'"><img src="/images/gifts/'.$row['img'].'.gif" alt=""/></a>';
}
echo'</div></div>';
include './system/f.php';
echo"<center><a href='http://statok.net/go/14883'><img src='http://statok.net/image/14883' alt='Statok.net' /></a></center>";
?>