4 * Things which must be done and defined before anything else.
7 function rcs_id ($id) { $GLOBALS['RCS_IDS'] .= "$id\n"; }
8 rcs_id('$Id: prepend.php,v 1.4 2001-09-18 19:16:23 dairiki Exp $');
10 error_reporting(E_ALL);
11 require_once('lib/ErrorManager.php');
13 // FIXME: make this part of Request?
14 function ExitWiki($errormsg = false)
17 global $dbi, $request;
20 exit(); // just in case CloseDataBase calls us
27 $ErrorManager->flushPostponedErrors();
29 if(!empty($errormsg)) {
30 print "<p><hr noshade><h2>" . gettext("WikiFatalError") . "</h2>\n";
32 if (is_string($errormsg))
35 $errormsg->printError();
37 print "\n</body></html>";
44 $ErrorManager->setPostponedErrorMask(E_ALL);
45 $ErrorManager->setFatalHandler('ExitWiki');
48 // (c-file-style: "gnu")
53 // c-hanging-comment-ender-p: nil
54 // indent-tabs-mode: nil