Файл: modules/communities/plugins/new.php
Строк: 11
<?php
$column = db::get_column("SELECT COUNT(*) FROM `COMMUNITIES`");
$spage = spage($column, PAGE_SETTINGS);
$page = page($spage);
$limit = PAGE_SETTINGS * $page - PAGE_SETTINGS;
if ($column == 0){
html::empty('Пока пусто');
}else{
?><div class='list-body'><?
}
$data = db::get_string_all("SELECT * FROM `COMMUNITIES` ORDER BY `TIME` DESC LIMIT ".$limit.", ".PAGE_SETTINGS);
while ($list = $data->fetch()) {
require (ROOT.'/modules/communities/plugins/list.php');
echo $comm_list;
}
if ($column > 0){
?></div><?
}
get_page('/m/communities/?get=new&', $spage, $page, 'list');