* @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 调用参数 支持字符串和数组
/cid-228_html |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /cid-228.html |
QUERY_STRING | /cid-228.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /cid-228.html |
REDIRECT_URL | /cid-228.html |
REMOTE_PORT | 54158 |
SCRIPT_FILENAME | /www/wwwroot/yinxinpai.com/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/yinxinpai.com |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/yinxinpai.com |
REMOTE_ADDR | 34.207.137.245 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.221.88 |
SERVER_NAME | yinxinpai.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at yinxinpai.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_HOST | yinxinpai.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727898.4015 |
REQUEST_TIME | 1711727898 |
ROOT_PATH | /www/wwwroot/yinxinpai.com/ |
APP_PATH | /www/wwwroot/yinxinpai.com/application/ |
DS | / |
ROOT_URL | / |
ROOT_HOME | /www/wwwroot/yinxinpai.com/application/index/ |
TEMPLATE_PATH | /www/wwwroot/yinxinpai.com/templates/ |
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/yinxinpai.com/addons/ |