thinkphp版本升级至6.0

This commit is contained in:
2019-05-01 21:51:03 +08:00
parent 6cef5d9116
commit 5c31e8e612
1000 changed files with 970 additions and 182026 deletions

View File

@@ -1,17 +1,18 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
if(version_compare(PHP_VERSION,'7.0.0','<')) die('require PHP > 7.0.0 !');
namespace think;
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, -10));
/**
@@ -20,5 +21,13 @@ define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, -10));
*/
define ( 'RUNTIME_PATH', __DIR__ . '/../data/' );
// 加载框架引导文件
require __DIR__ . '/../framework/start.php';
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);