2018-12-28 18:58:37 +08:00
|
|
|
<?php
|
|
|
|
// +----------------------------------------------------------------------
|
2021-07-18 23:42:10 +08:00
|
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
2018-12-28 18:58:37 +08:00
|
|
|
// +----------------------------------------------------------------------
|
2021-07-18 23:42:10 +08:00
|
|
|
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
|
2018-12-28 18:58:37 +08:00
|
|
|
// +----------------------------------------------------------------------
|
2021-07-18 23:42:10 +08:00
|
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
2018-12-28 18:58:37 +08:00
|
|
|
// +----------------------------------------------------------------------
|
2021-07-18 23:42:10 +08:00
|
|
|
// | Author: liu21st <liu21st@gmail.com>
|
2018-12-28 18:58:37 +08:00
|
|
|
// +----------------------------------------------------------------------
|
2021-07-18 23:42:10 +08:00
|
|
|
// $Id$
|
2018-12-28 18:58:37 +08:00
|
|
|
|
|
|
|
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
|
|
|
|
return false;
|
|
|
|
} else {
|
2021-07-18 23:42:10 +08:00
|
|
|
$_SERVER["SCRIPT_FILENAME"] = __DIR__ . '/index.php';
|
|
|
|
|
2018-12-28 18:58:37 +08:00
|
|
|
require __DIR__ . "/index.php";
|
|
|
|
}
|