* @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 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | hnxxsy.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.hnxxsy.com |
SERVER_PORT | 443 |
SERVER_ADDR | 111.92.242.246 |
REMOTE_PORT | 35610 |
REMOTE_ADDR | 3.236.214.123 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /web/wwwroot/www.hnxxsy.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /booklist/21217/c1e629deee458.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/booklist/21217/c1e629deee458.html |
SCRIPT_FILENAME | /web/wwwroot/www.hnxxsy.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711628032.3119 |
REQUEST_TIME | 1711628032 |
IF_PUBLIC | true |
ROOT_PATH | /web/wwwroot/www.hnxxsy.com/public/../ |
APP_PATH | /web/wwwroot/www.hnxxsy.com/public/../application/ |
DS | / |
ROOT_URL | / |
TEMPLATE_PATH | /web/wwwroot/www.hnxxsy.com/public/../templates/ |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |
ADDON_PATH | /web/wwwroot/www.hnxxsy.com/public/../addons/ |