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;
USER | hhggm |
HOME | /home/hhggm |
HTTP_X_VARNISH | 40380589 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_GRACE | none |
HTTP_X_FORWARDED_FOR | 44.210.78.150, 172.70.43.72, 127.0.0.1 |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 44.210.78.150 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86c004bb9cda3b71-IAD |
HTTP_X_REAL_IP | 172.70.43.72 |
HTTP_X_FORWARDED_HOST | www.hhggm.com |
HTTP_HOST | www.hhggm.com |
PHP_VALUE | error_log=/home/hhggm/logs/php/error.log; memory_limit=1G; max_execution_time=60; max_input_time=60; max_input_vars=10000; post_max_size=64M; upload_max_filesize=64M; auto_prepend_file=/home/hhggm/.varnish-cache/controller.php; date.timezone=UTC; display_errors=off; |
HTTPS | on |
MGT | 1 |
GEOIP_LONGITUDE | |
GEOIP_LATITUDE | |
GEOIP_CITY_CONTINENT_CODE | |
GEOIP_POSTAL_CODE | |
GEOIP_CITY | |
GEOIP_REGION | |
GEOIP_CITY_COUNTRY_NAME | |
GEOIP_CITY_COUNTRY_CODE3 | |
GEOIP_CITY_COUNTRY_CODE | |
GEOIP_COUNTRY_NAME | United States |
GEOIP_COUNTRY_CODE3 | USA |
GEOIP_COUNTRY_CODE | US |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.hhggm.com |
SERVER_PORT | 443 |
SERVER_ADDR | 127.0.0.1 |
REMOTE_PORT | |
REMOTE_ADDR | 172.70.43.72 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/hhggm/htdocs/www.hhggm.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index.php?s=//8ms901/346213.html |
SCRIPT_NAME | /index.php |
SCRIPT_FILENAME | /home/hhggm/htdocs/www.hhggm.com/public/index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//8ms901/346213.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711716970.8639 |
REQUEST_TIME | 1711716970 |
VARNISH_DEVELOPER_MODE | false |
VARNISH_GENERIC_CONTROLLER_VERSION | 0.0.1 |
BOOKCTRL | book |
CHAPTERCTRL | chapter |
TAGCTRL | tag |
BOOKLISTACT | booklist |
SEARCHCTRL | search |
RANKCTRL | rank |
UPDATEACT | update |
AUTHORCTRL | author |
spider_db_conn | xxx |