* @param string $msg 异常消息
* @param integer $code 异常代码 默认为0
* @param string $exception 异常类
*
* @throws Exception
*/
function exception($msg, $code = 0, $exception = '')
{
$e = $exception ?: '\think\Exception';
throw new $e($msg, $code);
}
}
if (!function_exists('halt')) {
/**
* 调试变量并且中断输出
* @param mixed $var 调试变量或者信息
*/
function halt($var)
USER | tuomi123 |
HOME | /home/wwwroot/tuomi123 |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
proxy-nokeepalive | 1 |
HTTP_X_REAL_IP | 54.147.30.127 |
HTTP_HOST | tomi-em.com |
HTTP_CONNECTION | close |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | tomi-em.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 54.147.30.127 |
DOCUMENT_ROOT | /home/wwwroot/tuomi123/wwwroot |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/tuomi123/wwwroot |
SERVER_ADMIN | [no address given] |
SCRIPT_FILENAME | /home/wwwroot/tuomi123/wwwroot/kor/index.php |
REMOTE_PORT | 58110 |
REDIRECT_URL | /kor/index/Lists/show/catid/38/id/95.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /kor/index/Lists/show/catid/38/id/95.html |
SCRIPT_NAME | /kor/index.php |
PATH_INFO | /index/Lists/show/catid/38/id/95.html |
PATH_TRANSLATED | redirect:/index.php/index/Lists/show/catid/38/id/95.html/Lists/show/catid/38/id/95.html |
PHP_SELF | /kor/index.php/index/Lists/show/catid/38/id/95.html |
REQUEST_TIME_FLOAT | 1711714099.2585 |
REQUEST_TIME | 1711714099 |
ROOT_PATH | /home/wwwroot/tuomi123/wwwroot/kor |
APP_PATH | /home/wwwroot/tuomi123/wwwroot/kor/application |
WEB_URL | http://tomi-em.com/kor/ |
APP_HOST | /kor |
APP_ROOT_DIR | /home/wwwroot/tuomi123/wwwroot/kor |
DOCUMENTY_ROOT_DIR | /home/wwwroot/tuomi123/wwwroot |