Вход Регистрация
Файл: sys/widgets/obmen/index.php
Строк: 36
<?php
defined
('DCMS') or die;

$dir = new files(FILES . '/.obmen');
$content = $dir->getList();
$dirs = & $content['dirs'];

$listing = new listing();
    
// показываем все папки (без листинга) только на первой странице
    
$c_dirs = count($dirs);
    for (
$i = 0; $i < $c_dirs; $i++) {
        
$post = $listing->post();

        
$description = '';
        
$description .= $dirs [$i]->description;
        
$post->title = text::toValue($dirs [$i]->runame);
        
$count_new = $dirs [$i]->count(true);
$count_n = '';
if (
$count_new) $count_n = ' +' . $count_new;
$post->counter = ' '.$dirs[$i]->count(false) . $count_n .' ';
            
$post->url = '/files' . $dirs [$i]->getPath() . '?order=time_add:desc';
            
$post->hightlight = true;

        
$post->post = text::toOutput($description);
        
$post->icon($dirs [$i]->icon());
    }

$listing->display();
Онлайн: 1
Реклама