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 | changhongiot |
HOME | /home/changhongiotmcghcaanpg7htofnmgmigoot |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgYOOWaLP@GnwaDK2VzQsQAAAAU |
REDIRECT_PATH_INFO | select-a-location.html |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgYOOWaLP@GnwaDK2VzQsQAAAAU |
HTTP_X_FORWARDED_FOR | 3.89.116.152 |
HTTP_X_REAL_IP | 211.149.140.122 |
HTTP_HOST | www.gs-biogas.com |
HTTP_CONNECTION | close |
HTTP_FROM_HTTPS | on |
HTTP_SSL_FLAG | SSL |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_X_FORWARDED_PROTO | https |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
SERVER_SIGNATURE | <address>Apache Server at www.gs-biogas.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.gs-biogas.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.89.116.152 |
DOCUMENT_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public |
SERVER_ADMIN | webmaster@changhongiot |
SCRIPT_FILENAME | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/index.php |
REMOTE_PORT | 49524 |
REDIRECT_URL | /select-a-location.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /select-a-location.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711672889.2667 |
REQUEST_TIME | 1711672889 |
DS | / |
ROOT_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/ |
APP_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/app/ |
WWW_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/ |
WOO_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/woo/ |
ADDONS_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/addons/ |
APP_CACHE_DIR | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/data/cache/ |