Вход Регистрация
Файл: www/games/vendors.php
Строк: 26
<?
define
('SECURED'true);
include 
'ini.php';
include 
'../config.php';
$vendor=htmlspecialchars(stripslashes($_GET['name']));
div($vendor);
$rid=intval($_GET['rid']);
$num_items=mysql_result(mysql_query("select count(id) from `games` where `vendor`='$vendor' and `razd` = '$rid';"),0);
if(
$num_items==0$total_files=0;
echo 
'<b>Файлы '.$total_files.'-'.$max.' из '.$num_items.'</b>';

echo
'';

$q=mysql_query("select * from `games` where `vendor`='$vendor'  and `razd` = '$rid' order by `added` desc");
while(
$game=mysql_fetch_array($q))
{
 list(
$cat_name)=mysql_fetch_array(mysql_query("select `name` from `categorys` where `id`='".$game['cat_id']."';"));
 
 
$pt=' <a href="/games/'.$game['id'].'/">'.$game['name'].'</a>'$post'Скачано: '.$game['downloads'].' раз<br/>
 Добавлено: '
.data($game['added']).'<br/>Категория: <a href="/games/cat/'.$game['cat_id'].'/">'.$cat_name.'</a><br/>';

 
echo 
$pt.'<br/>'.$post.'</div>';}
 
echo 
'&#187;<a href="/games/?rid='.$rid.'">Назад</a>';
echo 
'</div>';
include 
'../foot.php';
echo 
'</div>';
?>
Онлайн: 4
Реклама