* @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 |
at6 | 0 |
cid | 8 |
hot | 8 |
u | 702757 |
bids | 10728 |
USER | www |
HOME | /home/www |
HTTP_X_REAL_IP | 54.81.58.140 |
HTTP_X_FORWARDED_FOR | 54.81.58.140 |
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 | 63717 |
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&at6=0&cid=8&s=t&hot=8&u=702757&bids=10728 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | r=l&at6=0&cid=8&s=t&hot=8&u=702757&bids=10728 |
SCRIPT_FILENAME | /www/wwwroot/dz/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727675.8438 |
REQUEST_TIME | 1711727675 |
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/ |