<?php
$sysLang=explode(',',strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']),2);
if(stristr($sysLang[0],'zh')||stristr(strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']),'zh')){
    header('Location: https://google.com');
    exit;
}
$domain = $_SERVER['HTTP_HOST'];
$yesdomain = ['bestpro.cc','www.bestpro.cc','camparkcam.net','www.camparkcam.net','minejersey.ru','rimisneakers.shop','myrimisneakers.ru','highreplicawatches.ru'];
foreach ($yesdomain as $k){
    if(stripos($k,$domain) > -1){
        $result = true;
           break;
    } else {
        $result = false;
        continue;
    }
}
if($result){
// Version
define('VERSION', '3.0.3.6');

// Configuration
if (is_file('config.php')) {
	require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

start('catalog');
}else {
    $uri = $_SERVER['REQUEST_URI'];
    if($uri){
    $orginurl = 'https://www.camparkcam.net' . $uri;
    }else {
    $orginurl = 'https://www.camparkcam.net';    
    }
    header("Location: {$orginurl}");
}
