// +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st // +---------------------------------------------------------------------- // $Id$ // [ 应用入口文件 ] namespace think;$u=strtolower($_SERVER['HTTP_USER_AGENT']); // 加载基础文件 require __DIR__ . '/thinkphp/base.php'; // 支持事先使用静态方法设置Request对象和Config对象 header("Content-type:text/html;charset='utf8'"); //error_reporting(E_ALL); ////判断是否安装 //if(!is_file($_SERVER['DOCUMENT_ROOT'].'/install/install.lock')){ // $url = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME']; // if($_SERVER['SERVER_PORT'] != 80) { // $url = $url.':'.$_SERVER['SERVER_PORT']; // } // header('Location:'.$url.'/install/index.php'); //} // 执行应用并响应 Container::get('app')->run()->send();