$searcher->SetFilter("extension_crc32", Searcher::getExtsCrc32($category)); } $minsize_calc = Searcher::getSizeFromHuman($minsize); if ($minsize_calc) { $searcher->SetFilter("size", 0, $minsize_calc, true); //exclude too little results } //FILES $prev_instanses_count += $total_dirs; $start = max(0, $min - $prev_instanses_count); $len = min(RPP, max(1, $max - $prev_instanses_count)); $searcher->setLimits($start, $len); $files_result = $searcher->query($query, "dc_files dc_files_delta"); $total_files = $files_result['total']; if ($total_files && is_array($files_result['matches']) && count($out_array) < RPP) { $files = Searcher::getFiles(array_keys($files_result['matches'])); $out_array = array_merge($out_array, $files); } $total_pages = min(ceil(1000 / RPP), ceil(($total_tths + $total_dirs + $total_files) / RPP)); if ($total_pages > 1) { if (!$extsearch) { $pagination = array_fill(1, $total_pages, array('selected' => false, 'query' => urlencode($query))); } else { $pagination = array_fill(1, $total_pages, array('selected' => false, 'query' => urlencode($query), 'cat' => urlencode($category), 'd' => urldecode($days), 'minsize' => urlencode($minsize))); } $pagination[$page]['selected'] = true; $tpl_values['pagination'] = true; $tpl_values['pagination_search'] = $pagination; if (!$extsearch) { if ($page > 1) { if ($page == 2) {