* @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 | s9bfnn9bp07alqa5gn3nlvcre5 |
visitors_history_1000 | 1 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | //sitemap.xml |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /sitemap.xml |
REMOTE_PORT | 58506 |
SCRIPT_FILENAME | /www/wwwroot/innermed.com/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/innermed.com/ |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /www/wwwroot/innermed.com/ |
REMOTE_ADDR | 104.140.77.178 |
SERVER_PORT | 443 |
SERVER_ADDR | 172.16.221.88 |
SERVER_NAME | www.innermed.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.innermed.com Port 443 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=s9bfnn9bp07alqa5gn3nlvcre5; visitors_history_1000=1 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.innermed.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.innermed.com |
HTTPS | on |
REDIRECT_STATUS | 200 |
REDIRECT_SSL_TLS_SNI | www.innermed.com |
REDIRECT_HTTPS | on |
REDIRECT_PATH_INFO | sitemap.xml |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1743663279.6158 |
REQUEST_TIME | 1743663279 |
ROOT_PATH | /www/wwwroot/innermed.com/ |
APP_PATH | /www/wwwroot/innermed.com/application/ |
DS | / |
ROOT_URL | / |
ROOT_HOME | /www/wwwroot/innermed.com/application/index/ |
TEMPLATE_PATH | /www/wwwroot/innermed.com/templates/ |
FILTER_VALIDATE_BOOL | 258 |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |
ADDON_PATH | /www/wwwroot/innermed.com/addons/ |