csjoz11

导航

统计

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;
}

posted on   csjoz11  阅读(217)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示