* @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 调用参数 支持字符串和数组
PHPSESSID | potalf9uhvat9ep4r3ai1vak4m |
hisi_language | en |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=potalf9uhvat9ep4r3ai1vak4m; hisi_language=en |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.cnqxhk.com |
HTTP_USER_AGENT | meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | cnqxhk.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.1.62 |
REMOTE_PORT | 48978 |
REMOTE_ADDR | 50.2.188.146 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cnqxhk.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /japanese/guestbook.htm |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/japanese/guestbook.htm |
SCRIPT_FILENAME | /www/wwwroot/cnqxhk.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1723782030.1092 |
REQUEST_TIME | 1723782030 |
APP_PATH | /www/wwwroot/cnqxhk.com/public/application/ |
HISI_VERSION | 2.0.22 |
ROOT_PATH | /www/wwwroot/cnqxhk.com/ |
IN_SYSTEM | true |
ROOT_DIR | / |
HISI_LANG | zh-cn |