$WhereParams['year_p'] = $years_p_data; } if ($metal_data) { $WhereParams['metal'] = $metal_data; } if ($condition_data) { $WhereParams['condition'] = $condition_data; } if ($simbol_data) { $WhereParams['simbol'] = $simbol_data; } require $cfg['path'] . '/controllers/filters/filters_price.ctl.php'; if ($tpl['pagenum'] > 1) { $urlParams['pagenum'] = $tpl['pagenum']; } $countpubs = $price_class->countallByParams($WhereParams); $correct_url = urlBuild::makePrettyUrl($urlParams, $r_url); if ($tpl['datatype'] != 'text_html' && $correct_url != "http://www.numizmatik.ru" . $_SERVER["REQUEST_URI"]) { header("HTTP/1.1 301 Moved Permanently"); header("location: " . $correct_url); die; } unset($urlParams['pagenum']); $correct_url_for_paginator = urlBuild::makePrettyUrl($urlParams, "http://www.numizmatik.ru/price"); $tpl['paginator'] = new Paginator(array('url' => $correct_url_for_paginator, 'count' => $countpubs, 'per_page' => $tpl['onpage'] == 'all' ? $countpubs : $tpl['onpage'], 'page' => $tpl['pagenum'], 'border' => 3)); if (request('orderby')) { $tpl['orderby'] = request('orderby'); } elseif (isset($_COOKIE['orderby_p'])) { $tpl['orderby'] = $_COOKIE['orderby_p']; } if ($tpl['orderby'] == "dateinsertdesc") {