<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用入口文件
session_start();
/*
if(!isset($_SESSION['KEY_PASS']) || $_SESSION['KEY_PASS']!='125keji'){ 
header('HTTP/1.1 404 Not Found');header("status: 404 Not Found"); exit; 
}*/
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
// define('APP_DEBUG',true);

// thinkphp 默认框架目录
define('THINK_PATH','../Common/ThinkPHP/');

// 定义应用目录
define('APP_PATH','../Index/');

// 定义运行时目录
define('RUNTIME_PATH','../Runtime/www/');

// 定义网站域名
define('WEB_PATH','https://www.125yan.com/');

// 定义网站ID
define('WEB_ID','1');
//开启gzip压缩
define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) );
ob_start ( GZIP_ENABLE ? 'ob_gzhandler' : null );
require THINK_PATH.'ThinkPHP.php';

// 亲^_^ 后面不需要任何代码了 就是如此阿斯頓