* @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/index |
PATH_INFO | /contact/index |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/contact/index |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 39308 |
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 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.sc-cx.com |
HTTPS | on |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/contact/index |
REQUEST_TIME_FLOAT | 1732378137.7395 |
REQUEST_TIME | 1732378137 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | home |
ACTION_NAME | index |