* @param integer|Response $code 狀態(tài)碼 或者 Response對象實例
* @param string $message 錯誤信息
* @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 | s20g13obljeh4nf66tietdolhf |
$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 | lishunchang.net.cn |
HTTP_CONNECTION | keep-alive |
HTTP_COOKIE | $Version=1; PHPSESSID=s20g13obljeh4nf66tietdolhf; $Path=/ |
HTTP_REFERER | http://lishunchang.net.cn/trade-news/67.html |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | lishunchang.net.cn |
SERVER_PORT | 443 |
SERVER_ADDR | 172.16.205.212 |
REMOTE_PORT | 55511 |
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/anfosicomcn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/article/index/cid/9.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/portal/article/index/cid/9.html |
SCRIPT_FILENAME | /www/wwwroot/anfosicomcn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730366228.9118 |
REQUEST_TIME | 1730366228 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/anfosicomcn/ |
CMF_DATA | /www/wwwroot/anfosicomcn/data/ |
APP_PATH | /www/wwwroot/anfosicomcn/app/ |
WEB_ROOT | /www/wwwroot/anfosicomcn/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/anfosicomcn/vendor/ezyang/htmlpurifier/library |