showErr()

function showErr($type,$msg)
{
$phpmsg = debuginfo();
ob_end_clean();
$host = $_SERVER['HTTP_HOST'];
echo <<<EOT
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>$host - $type 系统错误</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body { color: black; }
#container { width: 650px; }
#message   { width: 650px; color: black; }
#bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; }
.bodytext  { font: 10pt/11pt verdana, arial, sans-serif; }
.help  { font: 12px verdana, arial, sans-serif; color: red;}
.red  {color: red;}
a:link     { font: 10pt/11pt verdana, arial, sans-serif; color: red; }
a:visited  { font: 10pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
</style>
</head>
<body>
<table cellpadding="1" cellspacing="5" id="container">
<tr>
<td id="bodytitle" width="100%">$type Error </td>
</tr><tr>
<td class="bodytext">Your request has encountered a problem. </td>
</tr><tr><td><hr size="1"/></td></tr>
<tr><td class="bodytext">Error messages: </td></tr>
<tr>
<td class="bodytext" id="message">
<ul> $msg</ul>
</td>
</tr><tr><td class="bodytext">&nbsp;</td></tr>
<tr><td class="bodytext">Program messages: </td></tr>
<tr>
<td class="bodytext">
<ul> $phpmsg </ul>
</td>
</tr><tr>
<td class="help"><br /><br /><a href="http://$host">$host</a> 系统出现错误, 由此给您带来的访问不便我们深感歉意</td>
</tr>
</table>
</body>
</html>
EOT;
exit;
}

转载于:https://www.cnblogs.com/csjoz/p/7243856.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值