* @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 调用参数 支持字符串和数组
REDIRECT_UNIQUE_ID | ZgalwOhcAf_TNlshCY9doQAAAAc |
REDIRECT_PATH_INFO | wp-content/uploads/2018/08/mmexport1531884795220.jpg |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgalwOhcAf_TNlshCY9doQAAAAc |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.gandjresources.com |
PATH | /sbin:/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /opt/lampp/lib:/opt/lampp/lib |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache/2.4.54 (Unix) OpenSSL/1.1.1s PHP/7.4.33 mod_perl/2.0.12 Perl/v5.34.1 |
SERVER_NAME | www.gandjresources.com |
SERVER_ADDR | 10.0.8.14 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.91.249.156 |
DOCUMENT_ROOT | /home/dev1/gjweb/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/dev1/gjweb/public |
SERVER_ADMIN | you@example.com |
SCRIPT_FILENAME | /home/dev1/gjweb/public/index.php |
REMOTE_PORT | 49286 |
REDIRECT_URL | /wp-content/uploads/2018/08/mmexport1531884795220.jpg |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /wp-content/uploads/2018/08/mmexport1531884795220.jpg |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711680.9867 |
REQUEST_TIME | 1711711680 |
IF_PUBLIC | true |
ROOT_PATH | /home/dev1/gjweb/public/../ |
APP_PATH | /home/dev1/gjweb/public/../application/ |
DS | / |
ADDON_PATH | /home/dev1/gjweb/public/../addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /home/dev1/gjweb/public/../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 |