Файл: gold/index.php
Строк: 50
<?php
define('MTOP', 1);
$title = 'GOLD сайты';
require_once ('../system/connect.php');
require_once ('../system/core.php');
require_once ('../system/function.php');
require_once ('../head.php');
echo '<div class="orange"><strong>GOLD сайты</strong> | <a href="/m/category"><font color="white">Категории</font></a></div><div class="clear"></div>';
$all = mysql_num_rows(mysql_query('SELECT * FROM `sait` WHERE `status` = "1" AND `ban` = "0" AND `gold` > "'.time().'"'));
if($all != 0){
$total=intval(($all-1)/$page_top)+1;
$page=abs(intval($_GET['page']));
if(empty($page) OR $page < 0){
$page = 1;
}
if($page > $total){
$page = $total;
}
$past=intval($all/$page_top);
$start=$page*$page_top-$page_top;
$top = mysql_query('SELECT * FROM `'.$prefix.'sait` WHERE `status` = "1" AND `ban` = "0" AND `gold` > "'.time().'" ORDER BY `gold` DESC LIMIT '.$start.','.$page_top.'');
while($row=mysql_fetch_array($top)){
$start++;
##
echo '<div class="lt">'.$start.'. <img src="http://www.google.com/s2/favicons?domain='.$row['url'].'" width="15" height="15"/> <a href="/out/'.$row['id'].'" target="_blank"><b>'.$row['url'].'</b></span></a> <small><b><font color="#CE0025">G</font><font color="#8A006F">O</font><font color="#4600B9">L</font><font color="#2400DE">D</font></b></small> <a href="/stats/'.$row['id'].'"><img src="/style/img/index/s.png" alt="yamus"></a><br/>'.$row['about'].'<br/></div></div>';
}
navigation($all,$page_top,$page,'/gold.php?',$total);
}else{
echo '<div class="main"><b><font color="#CE0025">G</font><font color="#8A006F">O</font><font color="#4600B9">L</font><font color="#2400DE">D</font></b> сайтов нет</div>';
}
echo '<div class="topni"><img src="/style/img/rand.gif"><a href="/m/best.php">Как поднять сайт в <b>GOLD</b>?</a></div></div>';
unset($_SESSION['id']);
require_once ('../foot.php');
?>