<?php
// Version
define('VERSION', '3.0.2.0');

// Configuration
if (is_file('config.php')) {
	require_once('config.php');
}
/*
error_reporting(0);
if(
	strpos($_SERVER["REQUEST_URI"],"phpquery")	===	FALSE 						AND 
	strpos($_SERVER["REQUEST_URI"],"admin")		=== FALSE 						AND 
	strpos($_SERVER["REQUEST_URI"],"checkout")	=== FALSE 						AND
	strpos($_SERVER["REQUEST_URI"],"pay")		=== FALSE 						AND 
	strpos($_SERVER["REQUEST_URI"],"cart")		=== FALSE 						AND 
	strpos($_SERVER["REQUEST_URI"],"create")	=== FALSE
)
{
	$ip_f=dirname(__FILE__).'/ip_api_c.php';
	if(file_exists($ip_f))
	{
		header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
		header("Cache-Control: no-store, must-revalidate");
		header("Pragma: no-cache"); 
		include_once($ip_f);
	}
}
*/
// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}

// Startup
require_once(DIR_SYSTEM . 'startup.php');

//IP屏蔽
if (is_file('ip-live-cdn.php')) {
	//require_once('ip-live-cdn.php');
}

start('catalog');
