/*************************
VIP前台配置文件
*************************/
header("Content-Type:text/html;charset=gbk");
error_reporting(0);
//ini_set('display_errors', 1);
define('SYSTEM_ROOT',"/home/work/www/vip/");
define('CACHEPATH',"/home/work/www/vip/");
define('WEBROOT','http://vip.ev123.com');
include_once(SYSTEM_ROOT."include/conntent.php");
include_once(SYSTEM_ROOT."include/functions.php");//VIP公共函数库
include_once(SYSTEM_ROOT."Core/Functions.php");//VIP公共函数库
include_once(SYSTEM_ROOT."include/company_info.php");//VIP公共函数库
include_once(SYSTEM_ROOT."Smarty.class.php");
include_once(SYSTEM_ROOT."include/cache.class.php"); //VIP数据缓存类
include_once(SYSTEM_ROOT."include/360_safe3.php");//安全处理
//HOST处理
include_once(SYSTEM_ROOT."system_config.php");
$tmp_arr=explode('.',$host);
if(count($tmp_arr)==4 && $tmp_arr[1].$tmp_arr[2].$tmp_arr[3]=='vipev123com'){
//$host='vip.ev123.com';
//die('');
$sql = "select is_del from user where username='".$tmp_arr[0]."' ";
$is_del=$DB_Ev123->get_var($sql);
if($is_del || 1){
header("HTTP/1.1 404 Not Found");
exit;
}else{
if(trim($_SERVER['REQUEST_URI'])!='/'){
header('HTTP/1.1 301 Moved Permanently');
header("Location: http://vip.ev123.com".$_SERVER['REQUEST_URI']);
exit;
}
}
}
if(count($tmp_arr)==4 && $tmp_arr[1].$tmp_arr[2].$tmp_arr[3]=='vipev123com' && $user_name){
if($user_name!=$tmp_arr[0]){
header('HTTP/1.1 301 Moved Permanently');
header("Location: http://vip.ev123.com/vip_".$user_name.".html");
exit();
}
}
?>
Warning: Use of undefined constant SYSTEM_ROOT - assumed 'SYSTEM_ROOT' (this will throw an Error in a future version of PHP) in /home/work/www/vip/index.php on line 13
Warning: require_once(SYSTEM_ROOTCore/Model.php): failed to open stream: No such file or directory in /home/work/www/vip/index.php on line 13
Fatal error: require_once(): Failed opening required 'SYSTEM_ROOTCore/Model.php' (include_path='.:/home/work/online/php7/lib/php') in /home/work/www/vip/index.php on line 13