* @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_REFERER | http://www.baletu.net/chuangyefenxiang/ZenYangKaiYiJiaShiYeTongZhuangPinPaiJiaMengDian.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.baletu.net |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.baletu.net |
SERVER_PORT | 443 |
SERVER_ADDR | 211.149.143.128 |
REMOTE_PORT | 35580 |
REMOTE_ADDR | 54.81.136.84 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.baletu.net |
DOCUMENT_URI | /index.php |
REQUEST_URI | /chuangyefenxiang/ZenYangKaiYiJiaShiYeTongZhuangPinPaiJiaMengDian.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/chuangyefenxiang/ZenYangKaiYiJiaShiYeTongZhuangPinPaiJiaMengDian.html |
SCRIPT_FILENAME | /www/wwwroot/www.baletu.net/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711719603.7416 |
REQUEST_TIME | 1711719603 |
ROOT_PATH | /home/wwwroot/www.baletu.net/ |
APP_PATH | /home/wwwroot/www.baletu.net/application/ |
ROOT_URL | / |
DEFAULT_MODULE | home |
BIND_MODULE | false |