Bauksoft,
$limit = '5'; // Сколько файлов показывать
// Ссылка на загрузки
if ($set['mod_down'] || $rights >= 7){
echo '<div class="phdr"><i class="fa fa-cloud-download fa-fw"></i> <a href="download/"><b>' . $lng['downloads'] . '</b></a> (' . counters::downloads() . ')</div>';
$sql = "SELECT * FROM `downfiles`
WHERE `type`='file'
ORDER BY `id` DESC LIMIT $limit ";
$i = 0;
$res = mysql_query($sql);
while ($row = mysql_fetch_assoc($res)) {
echo '<div class="list'. ($i & 1 ? 1 : 2) .'">'.
'<i class="fa fa-file fa-fw"></i> <a href="download/file.php?act=file&view='. $row['id'] .'">'. str_replace('|', '', $row['name']) .'</a></div>';
$i++;
}
}