* @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 | 3ht3ir8kiv67mfg6v64vmdcr4h |
think | { "last_url": "http:\/\/www.yndianbai.com\/page\/25.html" } |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=3ht3ir8kiv67mfg6v64vmdcr4h |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.yndianbai.com |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yndianbai.com |
SERVER_PORT | 80 |
SERVER_ADDR | 103.47.82.200 |
REMOTE_PORT | 48100 |
REMOTE_ADDR | 50.2.188.146 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yndianbai.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //page/show/7.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/page/show/7.html |
SCRIPT_FILENAME | /www/wwwroot/yndianbai.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1728896443.8614 |
REQUEST_TIME | 1728896443 |
DS | / |
ROOT_PATH | /www/wwwroot/yndianbai.com/ |
APP_PATH | /www/wwwroot/yndianbai.com/app/ |
WWW_ROOT | /www/wwwroot/yndianbai.com/public/ |
WOO_PATH | /www/wwwroot/yndianbai.com/woo/ |
ADDONS_PATH | /www/wwwroot/yndianbai.com/addons/ |
APP_CACHE_DIR | /www/wwwroot/yndianbai.com/data/cache/ |
SMARTY_DIR | /www/wwwroot/yndianbai.com/include/smarty-3.1.27/libs/ |
SMARTY_SYSPLUGINS_DIR | /www/wwwroot/yndianbai.com/include/smarty-3.1.27/libs/sysplugins/ |
SMARTY_PLUGINS_DIR | /www/wwwroot/yndianbai.com/include/smarty-3.1.27/libs/plugins/ |
SMARTY_MBSTRING | true |
SMARTY_RESOURCE_CHAR_SET | UTF-8 |
SMARTY_RESOURCE_DATE_FORMAT | %b %e, %Y |
SMARTY_SPL_AUTOLOAD | 0 |