* @param integer|Response $code 狀態(tài)碼 或者 Response對(duì)象實(shí)例
* @param string $message 錯(cuò)誤信息
* @param array $header 參數(shù)
*/
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')) {
/**
* 調(diào)用模塊的操作方法 參數(shù)格式 [模塊/控制器/]操作
* @param string $url 調(diào)用地址
* @param string|array $vars 調(diào)用參數(shù) 支持字符串和數(shù)組
$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 | qkiumg.cn |
HTTP_CONNECTION | keep-alive |
HTTP_COOKIE | $Version=1; PHPSESSID=0u6j34mfjeu6vqo7t7g18k8en7; $Path=/ |
HTTP_REFERER | http://qkiumg.cn/case/88.html |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | anfosi.cn |
SERVER_PORT | 443 |
SERVER_ADDR | 172.16.205.212 |
REMOTE_PORT | 55209 |
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/article/index/cid/5.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/portal/article/index/cid/5.html |
SCRIPT_FILENAME | /www/wwwroot/anfosicn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730365848.7685 |
REQUEST_TIME | 1730365848 |
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 |