Файл: EasyHost v2.0/system/htdocs/category/init.pl
Строк: 13
<?php
my $category = EasyHost::Category->new($system->param('id'));
my $search = ($category) ? $category->users : EasyHost::Search->prepare('users','EasyHost::User','category_id = 0');
my $categories = ($category) ? $category->children : $system->service->categories;
my $page = ($system->param('page') > 0) ? $system->param('page') : 1;
my $amount = ($system->param('amount') > 0) ? $system->param('amount') : 10;
my $start = $page * $amount - $amount + 1;
my $finish = ($page * $amount > $search->count) ? $search->count : $page * $amount;
?>