* @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 调用参数 支持字符串和数组
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /portal/article/index/cid/13.html |
QUERY_STRING | s=portal/article/index/cid/13.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=portal/article/index/cid/13.html |
REDIRECT_URL | /portal/article/index/cid/13.html |
REMOTE_PORT | 46056 |
SCRIPT_FILENAME | /www/wwwroot/wintreeart.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/wintreeart.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/wintreeart.com/public |
REMOTE_ADDR | 172.18.1.252 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.1.160 |
SERVER_NAME | wintreeart.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at wintreeart.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_REMOTE_HOST | 44.204.117.57 |
HTTP_X_FORWARDED_FOR | 44.204.117.57 |
HTTP_X_REAL_IP | 44.204.117.57 |
HTTP_HOST | wintreeart.com |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711721529.8623 |
REQUEST_TIME | 1711721529 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/wintreeart.com/ |
CMF_DATA | /www/wwwroot/wintreeart.com/data/ |
APP_PATH | /www/wwwroot/wintreeart.com/app/ |
WEB_ROOT | /www/wwwroot/wintreeart.com/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/wintreeart.com/vendor/ezyang/htmlpurifier/library |