* @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 调用参数 支持字符串和数组
r | l |
at4 | 0 |
kw | 沐浴露 |
u | 702757 |
bids | 132556 |
USER | www |
HOME | /home/www |
HTTP_X_REAL_IP | 3.236.19.251 |
HTTP_X_FORWARDED_FOR | 3.236.19.251 |
HTTP_ACCEPT_ENCODING | deflate, identity;q=0.5 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | imiit.cn |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | imiit.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.18.24.122 |
REMOTE_PORT | 44453 |
REMOTE_ADDR | 183.146.28.12 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/dz/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index.php?r=l&at4=0&kw=%E6%B2%90%E6%B5%B4%E9%9C%B2&s=t&u=702757&bids=132556 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | r=l&at4=0&kw=%E6%B2%90%E6%B5%B4%E9%9C%B2&s=t&u=702757&bids=132556 |
SCRIPT_FILENAME | /www/wwwroot/dz/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711656274.369 |
REQUEST_TIME | 1711656274 |
IF_PUBLIC | true |
ROOT_PATH | /www/wwwroot/dz/public/../ |
APP_PATH | /www/wwwroot/dz/public/../application/ |
DS | / |
ROOT_URL | / |
TEMPLATE_PATH | /www/wwwroot/dz/public/../templates/ |
FILTER_VALIDATE_BOOL | 258 |
PHP_FLOAT_DIG | 15 |
PHP_FLOAT_EPSILON | 2.2204460492503E-16 |
PHP_FLOAT_MIN | 2.2250738585072E-308 |
PHP_FLOAT_MAX | 1.7976931348623E+308 |
PHP_OS_FAMILY | Linux |
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 | /www/wwwroot/dz/public/../addons/ |