* @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 调用参数 支持字符串和数组
DOCUMENT_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | sdruidien.com |
HTTP_REMOTE_HOST | 44.202.90.91 |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 44.202.90.91 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_REAL_IP | 44.202.90.91 |
PATH | /bin |
PATH_INFO | /news/142.html |
PATH_TRANSLATED | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
PHPRC | /var/www/php56/hichina_ini/wh-abhe4yxbj78uujbgi8u |
QUERY_STRING | |
REDIRECT_STATUS | 200 |
REMOTE_ADDR | 10.0.29.97 |
REMOTE_PORT | 57830 |
REQUEST_METHOD | GET |
REQUEST_URI | /index.php/news/142.html |
SCRIPT_FILENAME | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 10.0.44.57 |
SERVER_ADMIN | webmaster@wh-abhe4yxbj78uujbgi8u.my3w.com |
SERVER_NAME | sdruidien.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.0 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | ZgWnoAoALDkAEiv4VG0AAAAE |
PHP_SELF | /index.php/news/142.html |
REQUEST_TIME_FLOAT | 1711646624.5363 |
REQUEST_TIME | 1711646624 |
APP_DEBUG | true |
CMF_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
CMF_DATA | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/data/ |
APP_PATH | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/app/ |
WEB_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
HTMLPURIFIER_PREFIX | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/vendor/ezyang/htmlpurifier/library |