function nice_death($err = false){
global $Config, $inc_dir, $db, $pgTitle, $server_root;
if (!$err) $err = 'Unknown Error';
require_once($inc_dir . 'header.inc');
nodeHeader();
?>
An Error Has Occurred!
=$err?>
if ($pgTitle){ ?>Click here to return to =$pgTitle?>.
} ?>
Click here to return to the front page.
nodeFooter();
require_once($inc_dir . 'footer.inc');
die();
}
function nice_exit($msg){
global $Config, $inc_dir, $db, $pgTitle, $server_root, $pgCaption, $PageID;
$msg = trim($msg);
if (!$msg) nice_death('Someone needs to read up on how to use the nice_exit function!');
require_once($inc_dir . 'header.inc');
?>
require_once($inc_dir . 'footer.inc');
die();
}
?>