<?php
$new_files = $db->query("SELECT * FROM `downloads_files` WHERE `time` > '". (time()-60*60*24) ."'")->rowCount();
$files = $db->query("SELECT * FROM `downloads_files`")->rowCount();
return '('.$files.')'.($new_files > 0 ? ' <a href="/downloads/new_files/"><span class="green">+'.$new_files.'</span></a>' : NULL);