View file loads/top.php

File size: 1.05Kb
<?php
$kol='20';
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
include_once '../sys/inc/thead.php';
echo'<div class="title">ТОП '.$kol.' файлов</div>';
err();
aut();
$q = mysql_query("SELECT * FROM `loads_list` ORDER BY `loads` DESC LIMIT $kol;");
$c = 1;
while($load = mysql_fetch_array($q))
{
$name=eregi_replace('\.[^\.]*$', NULL, $load[file]); // имя файла без расширения
$ras=strtolower(eregi_replace('^.*\.', NULL, $load[file])); // расширение (в нижнем регистре)
echo "<b>$c. </b><a href=./?d=$load[path]&f=$load[name]&page=1> $load[name]</a> [$load[loads]]<br/>\n";
$c++;
}
echo "<div class=\"foot\">\n";
echo "&laquo;<a href='/loads/'>Загрузки</a><br />\n";
echo "</div>\n";
include_once '../sys/inc/tfoot.php';
?>