if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z0-9][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->rule->getConfig('url_param_type')) {
$var += $path;
USER | www |
HOME | /home/www |
HTTP_ACCEPT_ENCODING | gzip, identity;q=0.9 |
HTTP_ACCEPT_LANGUAGE | en, * |
HTTP_ACCEPT | text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1 |
HTTP_USER_AGENT | Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98) |
HTTP_HOST | arkham.ink |
HTTP_CONNECTION | keep-alive |
HTTP_REFERER | http://arkham.ink/ |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | arkham.ink |
SERVER_PORT | 443 |
SERVER_ADDR | 112.213.105.28 |
REMOTE_PORT | 5467 |
REMOTE_ADDR | 117.62.183.94 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/pepee.top/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /style/safari-pinned-tab.svg |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/style/safari-pinned-tab.svg |
SCRIPT_FILENAME | /www/wwwroot/pepee.top/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1689861452.0595 |
REQUEST_TIME | 1689861452 |
IF_PUBLIC | true |
ROOT_PATH | /www/wwwroot/pepee.top/public/../ |
APP_PATH | /www/wwwroot/pepee.top/public/../application/ |
DS | / |
ADDON_PATH | /www/wwwroot/pepee.top/public/../addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /www/wwwroot/pepee.top/public/../templates/ |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |