* @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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /service/control |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /service/control |
REMOTE_PORT | 45168 |
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.26.213.212 |
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/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.sc-cx.com |
HTTPS | on |
SCRIPT_URI | /service/control |
SCRIPT_URL | /service/control |
REDIRECT_STATUS | 200 |
REDIRECT_SSL_TLS_SNI | www.sc-cx.com |
REDIRECT_HTTPS | on |
REDIRECT_PATH_INFO | service/control |
REDIRECT_SCRIPT_URI | /service/control |
REDIRECT_SCRIPT_URL | /service/control |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1724052438.3364 |
REQUEST_TIME | 1724052438 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | home |
ACTION_NAME | index |