* @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 调用参数 支持字符串和数组
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\ |
SYSTEMROOT | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
PHP_FCGI_MAX_REQUESTS | 1000 |
PHPRC | D:/phpStudy/php/php-5.6.27-nts/ |
_FCGI_SHUTDOWN_EVENT_ | 2300 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /product/147/ |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /product/147/ |
REMOTE_PORT | 53195 |
SCRIPT_FILENAME | D:/phpStudy/WWW/funsharegamecom/public/index.php |
SERVER_ADMIN | admin@phpStudy.net |
CONTEXT_DOCUMENT_ROOT | D:/phpStudy/WWW/funsharegamecom/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | D:/phpStudy/WWW/funsharegamecom/public |
REMOTE_ADDR | 110.40.21.2 |
SERVER_PORT | 80 |
SERVER_ADDR | 60.247.225.18 |
SERVER_NAME | www.funsharegame.com |
SERVER_SOFTWARE | Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 |
SERVER_SIGNATURE | |
SystemRoot | C:\Windows |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_X_FORWARDED_FOR | 3.238.57.9 |
HTTP_X_REAL_IP | 3.238.57.9 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_HOST | www.funsharegame.com |
HTTP_ACCEPT_ENCODING | gzip |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | product/147/ |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711663810.6834 |
REQUEST_TIME | 1711663810 |
DS | \ |
ROOT_PATH | D:\phpStudy\WWW\funsharegamecom\ |
APP_PATH | D:\phpStudy\WWW\funsharegamecom\app\ |
WWW_ROOT | D:\phpStudy\WWW\funsharegamecom\public\ |
WOO_PATH | D:\phpStudy\WWW\funsharegamecom\woo\ |
ADDONS_PATH | D:\phpStudy\WWW\funsharegamecom\addons\ |
APP_CACHE_DIR | D:\phpStudy\WWW\funsharegamecom\data\cache\ |
SMARTY_DIR | D:\phpStudy\WWW\funsharegamecom\include\smarty-3.1.27\libs\ |
SMARTY_SYSPLUGINS_DIR | D:\phpStudy\WWW\funsharegamecom\include\smarty-3.1.27\libs\sysplugins\ |
SMARTY_PLUGINS_DIR | D:\phpStudy\WWW\funsharegamecom\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 |