From d07037b3115520f006f74c914f67c5ad9210413e Mon Sep 17 00:00:00 2001
From: Graham Cole <chckens@sucs.org>
Date: Thu, 22 Sep 2011 12:29:40 +0000
Subject: [PATCH] tidy up output for critical punbb errors

---
 lib/punbb/include/functions.php | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/lib/punbb/include/functions.php b/lib/punbb/include/functions.php
index 8bb9f1c..0dcc61e 100644
--- a/lib/punbb/include/functions.php
+++ b/lib/punbb/include/functions.php
@@ -1031,21 +1031,6 @@ function error($message, $file, $line, $db_error = false)
 		ob_start('ob_gzhandler');
 
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
-<title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?> / Error</title>
-<style type="text/css">
-<!--
-BODY {MARGIN: 10% 20% auto 20%; font: 10px Verdana, Arial, Helvetica, sans-serif}
-#errorbox {BORDER: 1px solid #B84623}
-H2 {MARGIN: 0; COLOR: #FFFFFF; BACKGROUND-COLOR: #B84623; FONT-SIZE: 1.1em; PADDING: 5px 4px}
-#errorbox DIV {PADDING: 6px 5px; BACKGROUND-COLOR: #F1F1F1}
--->
-</style>
-</head>
-<body>
 
 <div id="errorbox">
 	<h2>An error was encountered</h2>
@@ -1071,8 +1056,6 @@ H2 {MARGIN: 0; COLOR: #FFFFFF; BACKGROUND-COLOR: #B84623; FONT-SIZE: 1.1em; PADD
 	</div>
 </div>
 
-</body>
-</html>
 <?php
 
 	// If a database connection was established (before this error) we close it
-- 
GitLab