* @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 | hc4pg5tsav00tbdqf5qblttdhn |
USER | agm2580 |
HOME | /home/wwwroot/agm2580 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /xbshanxi.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /xbshanxi.html |
REMOTE_PORT | 38252 |
SCRIPT_FILENAME | /home/wwwroot/agm2580/wwwroot/public/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/agm2580/wwwroot/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /home/wwwroot/agm2580/wwwroot/public |
REMOTE_ADDR | 104.206.97.26 |
SERVER_PORT | 80 |
SERVER_ADDR | 127.0.0.1 |
SERVER_NAME | www.agm-mos.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_COOKIE | PHPSESSID=hc4pg5tsav00tbdqf5qblttdhn |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_X_FORWARDED_PROTO | https |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_SSL_FLAG | SSL |
HTTP_FROM_HTTPS | on |
HTTP_CONNECTION | close |
HTTP_HOST | www.agm-mos.com |
HTTP_X_REAL_IP | 211.149.140.180 |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | xbshanxi.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1713947117.9458 |
REQUEST_TIME | 1713947117 |
IF_PUBLIC | true |
ROOT_PATH | /home/wwwroot/agm2580/wwwroot/public/../ |
APP_PATH | /home/wwwroot/agm2580/wwwroot/public/../application/ |
DS | / |
ROOT_URL | / |
TEMPLATE_PATH | /home/wwwroot/agm2580/wwwroot/public/../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 | /home/wwwroot/agm2580/wwwroot/public/../addons/ |