Example #1
0
$tpl['current_page'] = '';
require_once $cfg['path'] . '/helpers/Paginator.php';
require_once $cfg['path'] . '/helpers/urlBuilder.php';
require $cfg['path'] . '/configs/config_shopcoins.php';
require_once $cfg['path'] . '/models/stats.php';
/*              
    'yearstart' => '',
    'yearend' => '',
    'mycoins' => '',
   // 'searchid' => '',?
   // 'searchname' => '',?
   // 'catalognewstr'=>'',?
    '' => '',
    'priceend' => '',*/
$stats_class = new stats($db_class, $tpl['user']['user_id'], session_id());
$correct_url = urlBuild::correctedUrl($_SERVER["REQUEST_URI"], $tpl['user']['user_id']);
if ($correct_url != $_SERVER["REQUEST_URI"]) {
    header("HTTP/1.1 301 Moved Permanently");
    header("location: http://www.numizmatik.ru" . $correct_url);
    die;
}
$data_filter = array();
$urlParams = array();
$materialtype = request('materialtype') ? (int) request('materialtype') : 1;
$tpl['show_short'] = false;
$tpl['show_short_button'] = false;
if (in_array($_SERVER['REMOTE_ADDR'], $admin_ips) && $tpl['user']['user_id']) {
    $tpl['show_short_button'] = true;
    //var_dump($_COOKIE['sshort']);
    $tpl['show_short'] = isset($_COOKIE['sshort']) && $_COOKIE['sshort'] ? true : false;
}