Файл: www/video/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_video` 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_video` 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_video` where `id`='".$game['cat_id']."';"));
$pt=' <a href="/video/'.$game['id'].'/">'.$game['name'].'</a>'; $post= 'Скачано: '.$game['downloads'].' раз<br/>
Добавлено: '.data($game['added']).'<br/>Категория: <a href="/video/cat/'.$game['cat_id'].'/">'.$cat_name.'</a><br/>';
echo $pt.'<br/>'.$post.'</div>';}
echo '»<a href="/video/?rid='.$rid.'">Назад</a>';
echo '</div>';
include '../foot.php';
echo '</div>';
?>