* @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 调用参数 支持字符串和数组
USER | changhongiot |
HOME | /home/changhongiotmcghcaanpg7htofnmgmigoot |
FCGI_ROLE | RESPONDER |
REDIRECT_UNIQUE_ID | ZgakjQhqbIb9BkMnIXG7lAAAAAA |
REDIRECT_PATH_INFO | product/27.html |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgakjQhqbIb9BkMnIXG7lAAAAAA |
HTTP_X_FORWARDED_FOR | 44.192.93.109 |
HTTP_X_REAL_IP | 211.149.140.122 |
HTTP_HOST | gs-biogas.com |
HTTP_CONNECTION | close |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_X_FORWARDED_PROTO | http |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
SERVER_SIGNATURE | <address>Apache Server at gs-biogas.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | gs-biogas.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.192.93.109 |
DOCUMENT_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public |
SERVER_ADMIN | webmaster@changhongiot |
SCRIPT_FILENAME | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/index.php |
REMOTE_PORT | 59260 |
REDIRECT_URL | /product/27.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /product/27.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711373.5645 |
REQUEST_TIME | 1711711373 |
DS | / |
ROOT_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/ |
APP_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/app/ |
WWW_ROOT | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/ |
WOO_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/woo/ |
ADDONS_PATH | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/addons/ |
APP_CACHE_DIR | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/data/cache/ |
SMARTY_DIR | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/include/smarty-3.1.27/libs/ |
SMARTY_SYSPLUGINS_DIR | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/include/smarty-3.1.27/libs/sysplugins/ |
SMARTY_PLUGINS_DIR | /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/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 |