if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\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;
DOCUMENT_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | sdruidien.com |
HTTP_REMOTE_HOST | 54.242.165.255 |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 54.242.165.255 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_REAL_IP | 54.242.165.255 |
PATH | /bin |
PATH_INFO | /kehuanli/121.html |
PATH_TRANSLATED | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
PHPRC | /var/www/php56/hichina_ini/wh-abhe4yxbj78uujbgi8u |
QUERY_STRING | |
REDIRECT_STATUS | 200 |
REMOTE_ADDR | 10.0.29.97 |
REMOTE_PORT | 44386 |
REQUEST_METHOD | GET |
REQUEST_URI | /index.php/kehuanli/121.html |
SCRIPT_FILENAME | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 10.0.44.57 |
SERVER_ADMIN | webmaster@wh-abhe4yxbj78uujbgi8u.my3w.com |
SERVER_NAME | sdruidien.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.0 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | ZgaMYgoALDkAEiv6VlUAAAAG |
PHP_SELF | /index.php/kehuanli/121.html |
REQUEST_TIME_FLOAT | 1711705186.8561 |
REQUEST_TIME | 1711705186 |
APP_DEBUG | true |
CMF_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
CMF_DATA | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/data/ |
APP_PATH | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/app/ |
WEB_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
HTMLPURIFIER_PREFIX | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/vendor/ezyang/htmlpurifier/library |