Файл: modules/albums/_counter.php
Строк: 12
<?php
$_new = $db->query("SELECT * FROM `albums_photo` WHERE `time` > '".(time()-60*60*24)."'")->rowCount();
$_albums = $db->query("SELECT * FROM `albums`")->rowCount();
$_photo = $db->query("SELECT ".(User::level() <= 6 ? "`albums_photo`.* FROM `albums` JOIN `albums_photo` ON `albums`.`id`=`albums_photo`.`album_id` WHERE `albums`.`type` != '1'" : "* FROM `albums_photo`"))->rowCount();
return '('.$_albums.'/'.$_photo.')'.($_new > 0 ? ' <span class="green">+'.$_new.'</span>' : null);