* @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 调用参数 支持字符串和数组
$Version | 1 |
PHPSESSID | 0u6j34mfjeu6vqo7t7g18k8en7 |
$Path | / |
USER | www |
HOME | /home/www |
HTTP_ACCEPT_ENCODING | gzip, identity;q=0.9 |
HTTP_ACCEPT_LANGUAGE | zh, en, * |
HTTP_ACCEPT | text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1 |
HTTP_USER_AGENT | Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98) |
HTTP_HOST | www.anfosi.cn |
HTTP_CONNECTION | keep-alive |
HTTP_COOKIE | $Version=1; PHPSESSID=0u6j34mfjeu6vqo7t7g18k8en7; $Path=/ |
HTTP_REFERER | http://www.anfosi.cn/ |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | anfosi.cn |
SERVER_PORT | 443 |
SERVER_ADDR | 172.16.205.212 |
REMOTE_PORT | 54622 |
REMOTE_ADDR | 14.216.139.126 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/anfosicn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/page/index/id/18.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/portal/page/index/id/18.html |
SCRIPT_FILENAME | /www/wwwroot/anfosicn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730365159.665 |
REQUEST_TIME | 1730365159 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/anfosicn/ |
CMF_DATA | /www/wwwroot/anfosicn/data/ |
APP_PATH | /www/wwwroot/anfosicn/app/ |
WEB_ROOT | /www/wwwroot/anfosicn/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/anfosicn/vendor/ezyang/htmlpurifier/library |