ѡ̳
标题:
20180912取消数据库报错的原版链接
[打印本页]
作者:
admin
时间:
2018-9-12 15:34
标题:
20180912取消数据库报错的原版链接
function
my_error_handler
(
$errno
,
$errstr
,
$errfile
,
$errline
) {
if
(
$errno
==
8
)
return
''
;
$errfile
=
str_replace
(
PHPCMS_PATH
,
''
,
$errfile
);
if
(pc_base::
load_config
(
'system'
,
'errorlog'
)) {
error_log
(
'<?php exit;?>'
.
date
(
'm-d H:i:s'
,
SYS_TIME
).
' | '
.
$errno
.
' | '
.
str_pad
(
$errstr
,
30
).
' | '
.
$errfile
.
' | '
.
$errline
.
"
\r\n
"
,
3
,
CACHE_PATH
.
'error_log.php'
);
}
else
{
$str
=
'<div style="font-size:12px;text-align:left; border-bottom:1px solid #9cc9e0; border-right:1px solid #9cc9e0;padding:1px 4px;color:#000000;font-family:Arial, Helvetica,sans-serif;">
<span>errorno:'
.
$errno
.
',str:'
.
$errstr
.
',file:<font color="blue">'
.
$errfile
.
'</font>,line'
.
$errline
.
'<br />
<a href="http://www.yibaixun.com/" target="_blank" style="color:red">Need Help?</a></span></div>'
;
echo
$str
;
}
}
欢迎光临 ѡ̳ (http://www.sunminxuan.cn/bbs/)
Powered by Discuz! X3.4