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;
PHPSESSID | egps22ck90pmk09jcpt91a5mri |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | //show01-02/Oh8-18984.html |
QUERY_STRING | s=show01-02/Oh8-18984.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=show01-02/Oh8-18984.html |
REDIRECT_URL | /show01-02/Oh8-18984.html |
REMOTE_PORT | 42910 |
SCRIPT_FILENAME | /www/wwwroot/shenzhou/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/shenzhou/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/shenzhou/public |
REMOTE_ADDR | 107.158.225.18 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.20.7.250 |
SERVER_NAME | www.sz1989.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.sz1989.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_COOKIE | PHPSESSID=egps22ck90pmk09jcpt91a5mri |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sz1989.com |
HTTP_USER_AGENT | claudebot |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1713494204.8824 |
REQUEST_TIME | 1713494204 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/shenzhou/ |
CMF_DATA | /www/wwwroot/shenzhou/data/ |
APP_PATH | /www/wwwroot/shenzhou/app/ |
WEB_ROOT | /www/wwwroot/shenzhou/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/shenzhou/vendor/ezyang/htmlpurifier/library |