$available = true;
}
// 模块初始化
if ($module && $available) {
// 初始化模块
$this->request->setModule($module);
$this->app->init($module);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
}
// 是否自动转换控制器和操作名
$convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
// 获取控制器名
$controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
$this->controller = $convert ? strtolower($controller) : $controller;
USER | nobody |
HOME | / |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.yulinyuanheng.com |
HTTP_USER_AGENT | Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.yulinyuanheng.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.21.55.249 |
REMOTE_PORT | 52076 |
REMOTE_ADDR | 50.117.127.90 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs |
DOCUMENT_URI | /public/index.php |
REQUEST_URI | /www.quchaikeji.com |
SCRIPT_NAME | /public/index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//www.quchaikeji.com |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /public/index.php |
REQUEST_TIME_FLOAT | 1720540443.8237 |
REQUEST_TIME | 1720540443 |
ADMIN_FILE | admin.php |
HTMLPURIFIER_PREFIX | /data/user/htdocs/vendor/ezyang/htmlpurifier/library |