* @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 调用参数 支持字符串和数组
PHPSESSID | kkdrfmh8u0euc7edlslq6ubqfn |
USER | nobody |
HOME | / |
HTTP_COOKIE | PHPSESSID=kkdrfmh8u0euc7edlslq6ubqfn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.huaqin.com |
HTTP_USER_AGENT | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.huaqin.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.21.91.217 |
REMOTE_PORT | 50666 |
REMOTE_ADDR | 107.158.145.198 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/user/htdocs/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /info/1634486/131%E6%9C%9F%EF%BC%9A%E3%80%90%E6%A5%BC%E4%B8%8B%E7%AD%89%E4%BD%A0%E3%80%91%E7%BB%9D%E6%9D%80%E4%B8%80%E6%B3%A2 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/info/1634486/131%E6%9C%9F%EF%BC%9A%E3%80%90%E6%A5%BC%E4%B8%8B%E7%AD%89%E4%BD%A0%E3%80%91%E7%BB%9D%E6%9D%80%E4%B8%80%E6%B3%A2 |
PATH_INFO | |
SCRIPT_FILENAME | /data/user/htdocs/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1728518500.852 |
REQUEST_TIME | 1728518500 |
IF_PUBLIC | true |
ROOT_PATH | /data/user/htdocs/public/../ |
APP_PATH | /data/user/htdocs/public/../application/ |
DS | / |
ADDON_PATH | /data/user/htdocs/public/../addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /data/user/htdocs/public/../templates/ |
WEBSCAN_U_KEY | fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_API_LOG | http://safe.webscan.360.cn/papi/log/?key=fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_UPDATE_FILE | http://safe.webscan.360.cn/papi/update/?key=fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_VERSION | 0.1.2.6 |
WEBSCAN_MD5 | 9e5c307374031bfabf49d7ab7e4737c7 |
U_IDNA_PROHIBITED_ERROR | 66560 |
U_IDNA_ERROR_START | 66560 |
U_IDNA_UNASSIGNED_ERROR | 66561 |
U_IDNA_CHECK_BIDI_ERROR | 66562 |
U_IDNA_STD3_ASCII_RULES_ERROR | 66563 |
U_IDNA_ACE_PREFIX_ERROR | 66564 |
U_IDNA_VERIFICATION_ERROR | 66565 |
U_IDNA_LABEL_TOO_LONG_ERROR | 66566 |
U_IDNA_ZERO_LENGTH_LABEL_ERROR | 66567 |
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR | 66568 |
U_IDNA_ERROR_LIMIT | 66569 |
U_STRINGPREP_PROHIBITED_ERROR | 66560 |
U_STRINGPREP_UNASSIGNED_ERROR | 66561 |
U_STRINGPREP_CHECK_BIDI_ERROR | 66562 |
IDNA_DEFAULT | 0 |
IDNA_ALLOW_UNASSIGNED | 1 |
IDNA_USE_STD3_RULES | 2 |
IDNA_CHECK_BIDI | 4 |
IDNA_CHECK_CONTEXTJ | 8 |
IDNA_NONTRANSITIONAL_TO_ASCII | 16 |
IDNA_NONTRANSITIONAL_TO_UNICODE | 32 |
INTL_IDNA_VARIANT_2003 | 0 |
INTL_IDNA_VARIANT_UTS46 | 1 |
IDNA_ERROR_EMPTY_LABEL | 1 |
IDNA_ERROR_LABEL_TOO_LONG | 2 |
IDNA_ERROR_DOMAIN_NAME_TOO_LONG | 4 |
IDNA_ERROR_LEADING_HYPHEN | 8 |
IDNA_ERROR_TRAILING_HYPHEN | 16 |
IDNA_ERROR_HYPHEN_3_4 | 32 |
IDNA_ERROR_LEADING_COMBINING_MARK | 64 |
IDNA_ERROR_DISALLOWED | 128 |
IDNA_ERROR_PUNYCODE | 256 |
IDNA_ERROR_LABEL_HAS_DOT | 512 |
IDNA_ERROR_INVALID_ACE_LABEL | 1024 |
IDNA_ERROR_BIDI | 2048 |
IDNA_ERROR_CONTEXTJ | 4096 |
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 |