<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.4.0','<'))  die('require PHP > 5.4.0 !');
//进入安装目录
if(is_dir("install") && !file_exists("install/install.ok")){
	header("Location:install/index.php");
	exit();
}
// [ 应用入口文件 ]
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
define('CONF_PATH', __DIR__.'/application/common/conf/');
define('WST_COMM', __DIR__.'/application/common/common/');
define('WST_HOME_COMM', __DIR__.'/application/home/common/');
define('WST_ADMIN_COMM', __DIR__.'/application/admin/common/');
define('APP_HOOK',true);
define('WST_WECHAT_COMM', __DIR__.'/application/wechat/common/');
define('APP_NAMESPACE', 'application');//应用目录

define('WST_WEBIMG', '');

//新增
define("APP_KEY",'754327fa966593bd'); // 翻译key替换为您的应用ID
define("SEC_KEY", 'cQ0eTLAdQtoMsF4Lg55Vg2z6YnLRZQO2'); //  翻译key替换为您的密钥
//新增 end

// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';
