<?php
//IP-begin
$form = "You are from China,Must input password to continue.Once you want loading, please contact  E-mail  epman.it@gmail.com<br>
<form name='form1' method='post' action=''>
<input name='password' type='password' id='password'> 
<input type='submit' name='Submit' value='Submit'>
</form>";

if(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2) == 'zh'){
	$allow_zh= $_COOKIE['allow_zh'];
	if(!$allow_zh){
		if($_POST){
			if(md5($_POST['password'])!=md5("EP240622")){
				echo $form;
				exit;
			}else{
				setcookie('allow_zh',true);
			}
		}else{
			echo $form;
			exit;
		}
	}
}
//IP-end
// Version
define('VERSION', '3.0.3.7');

// 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');