* @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 调用参数 支持字符串和数组
REDIRECT_STATUS | 200 |
HTTP_HOST | www.7xp.com |
HTTP_REFERER | http://www.7xp.com/system/14.html |
HTTP_X_REAL_IP | 172.70.35.120 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_CONNECTION | close |
HTTP_CF_RAY | 86bd91e62e595b65-IAD |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_CF_CONNECTING_IP | 3.238.198.167 |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_IPCOUNTRY | US |
PATH | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
SERVER_SIGNATURE | <address>Apache Server at www.7xp.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.7xp.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.238.198.167 |
DOCUMENT_ROOT | /home/wwwroot/www.7xp.com/public |
SERVER_ADMIN | n |
SCRIPT_FILENAME | /home/wwwroot/www.7xp.com/public/index.php |
REMOTE_PORT | 60604 |
REDIRECT_URL | /system/14.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /system/14.html |
SCRIPT_NAME | /index.php |
PATH_INFO | /system/14.html |
PATH_TRANSLATED | redirect:/index.php/system/14.html/14.html |
PHP_SELF | /index.php/system/14.html |
REQUEST_TIME_FLOAT | 1711691296.074 |
REQUEST_TIME | 1711691296 |