* @param integer|Response $code 状态码 或者 Response对象实例
* @param string $message 错误信息
* @param array $header 参数
*/
function abort($code, $message = null, $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('action')) {
/**
* 调用模块的操作方法 参数格式 [模块/控制器/]操作
* @param string $url 调用地址
* @param string|array $vars 调用参数 支持字符串和数组
REDIRECT_REDIRECT_UNIQUE_ID | ZgaZpJqoYF7gULrdvS95qwAAAAE |
REDIRECT_REDIRECT_PHPRC | /home/shuteenpc7s9hwuxt0e1ennlp1c/others |
REDIRECT_REDIRECT_STATUS | 200 |
REDIRECT_UNIQUE_ID | ZgaZpJqoYF7gULrdvS95qwAAAAE |
REDIRECT_PHPRC | /home/shuteenpc7s9hwuxt0e1ennlp1c/others |
REDIRECT_HANDLER | php-cgi |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgaZpJqoYF7gULrdvS95qwAAAAE |
PHPRC | /home/shuteenpc7s9hwuxt0e1ennlp1c/others |
HTTP_X_FORWARDED_FOR | 35.153.156.108 |
HTTP_X_REAL_IP | 61.139.126.228 |
HTTP_HOST | www.shouldertent.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.shouldertent.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.shouldertent.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 35.153.156.108 |
DOCUMENT_ROOT | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | /php-run-as-cgi |
CONTEXT_DOCUMENT_ROOT | /usr/php7.0/bin |
SERVER_ADMIN | webmaster@shuteenpc |
SCRIPT_FILENAME | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/public/index.php |
REMOTE_PORT | 57254 |
REDIRECT_URL | /index.php |
REDIRECT_QUERY_STRING | s=article/95/3.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | s=article/95/3.html |
REQUEST_URI | /article/95/3.html |
SCRIPT_NAME | /index.php |
ORIG_SCRIPT_FILENAME | /usr/php7.0/bin/php-cgi |
ORIG_PATH_INFO | /index.php |
ORIG_PATH_TRANSLATED | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/public/index.php |
ORIG_SCRIPT_NAME | /php-run-as-cgi/php-cgi |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711708580.9143 |
REQUEST_TIME | 1711708580 |
APP_DEBUG | true |
CMF_ROOT | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/ |
CMF_DATA | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/data/ |
APP_PATH | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/app/ |
WEB_ROOT | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/public/ |
HTMLPURIFIER_PREFIX | /home/shuteenpc7s9hwuxt0e1ennlp1c/wwwroot/vendor/ezyang/htmlpurifier/library |