Вход Регистрация
Файл: iwup.biz/bonus.php
Строк: 29
<?php
$mt
=microtime(1);
include(
'db.php');
include(
'ses.php');
include(
'auth.php');
include(
'nast.php');
include(
'shapka.php');
print 
'</div><div class="top">Акции</div>';

$result=mysql_query("SELECT * from `bonus` ORDER by `time` DESC");
$page=intval(@$_GET['page']);
$start=$page*6;
$end=$start+6;
@
mysql_data_seek($result$start);
while(
$news=mysql_fetch_assoc($result))

    {
echo 
'<div class="ma">';
    
$date=date('d/m/Y',$news['time']);
    print 
"Старт: <b>$date</b><br />
    
$news[mess]<br />
    "
;
    
$start++;
    if(
$start>=$end)
    break;
echo 
'</div>';
    }
if(
$end<mysql_num_rows($result))
print 
"<a href="bonus.php?ses=$ses&amp;page=".($page+1)."">Далее</a><br />";
if(
$page>0)
print 
"<a href="bonus.php?ses=$ses&amp;page=".($page-1)."">Назад</a><br />";
if(
$_SESSION['auth'])
    {print 
'</div><div class="down"><a href="enter.php?ses='.$ses.'">Личный кабинет</a><br /></div><div>';
    }
    else
    print 
'</div><div class="down"><a href="index.php">Игровой клуб</a><br /></div><div>';
    
include(
'foot.php'); ?>
Онлайн: 1
Реклама