// +---------------------------------------------------------------------- // 应用入口文件 // 检测PHP环境 if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); //检测程序是否安装 if(!file_exists('install.lock')) { header('Location:install/index.html'); exit(); } // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false define('APP_DEBUG',true); // 定义应用目录 define('APP_PATH','./Application/'); // 绑定入口文件到Admin模块访问 // 定义缓存目录 define('RUNTIME_PATH','./Application/Runtime/Cache'); define("TMPL_PATH","./Theme/"); //绑定默认主题 define('HTML_PATH', './htm');//生成静态页面的文件位置 // 引入ThinkPHP入口文件 require './Core/ThinkPHP.php'; // 亲^_^ 后面不需要任何代码了 就是如此简单