View file engine/services/download_service.php
<?php $dirs = $sql->query("SELECT count(*) FROM `down_files` WHERE type = 1")->result(); $files = $sql->query("SELECT count(*) FROM `down_files` WHERE type = 2")->result(); echo '<div class="link"><a href="/download/">Загрузки</a><br />Папок: '.$dirs.' | Файлов: '.$files.'</div>';