* @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 调用参数 支持字符串和数组
hisi_language | zh-cn |
USER | www |
HOME | /home/www |
HTTP_HOST | osec.org.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | 47.95.151.204:8080 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.200.30 |
REMOTE_PORT | 59558 |
REMOTE_ADDR | 54.90.167.73 |
SERVER_SOFTWARE | nginx/1.20.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/wwwroot/osec/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /zscx/zyjn/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//zscx/zyjn/ |
SCRIPT_FILENAME | /home/wwwroot/osec/public/index.php |
PATH_INFO | |
FCGI_ROLE | RESPONDER |
PHP_SELF | |
REQUEST_TIME_FLOAT | 1711714857.1762 |
REQUEST_TIME | 1711714857 |
APP_PATH | /home/wwwroot/osec/public/../application/ |
ROOT_PATH | /home/wwwroot/osec/ |
IN_SYSTEM | true |
ROOT_DIR | / |
HISI_LANG | zh-cn |