* @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 | pefaho0vnkpibf64qc6gld1hkv |
USER | www |
HOME | /home/www |
PATH_TRANSLATED | redirect:/index.php |
PATH_INFO | /party |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/party |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 35988 |
SCRIPT_FILENAME | /SaData/www/wwwroot/www.sc-cx.com_current/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /SaData/www/wwwroot/www.sc-cx.com_current/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /SaData/www/wwwroot/www.sc-cx.com_current/public |
REMOTE_ADDR | 173.232.241.114 |
SERVER_PORT | 443 |
SERVER_ADDR | 172.24.252.8 |
SERVER_NAME | www.sc-cx.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.sc-cx.com Port 443 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=pefaho0vnkpibf64qc6gld1hkv |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sc-cx.com |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3; GWX:RED; LBBROWSER) |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.sc-cx.com |
HTTPS | on |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/party |
REQUEST_TIME_FLOAT | 1715420651.3567 |
REQUEST_TIME | 1715420651 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | home |
ACTION_NAME | index |