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.5 2001-11-21 19:46:50 dairiki Exp $');
10 error_reporting(E_ALL);
11 require_once('lib/ErrorManager.php');
12 require_once('lib/WikiCallback.php');
14 // FIXME: make this part of Request?
15 function ExitWiki($errormsg = false)
18 global $dbi, $request;
21 exit(); // just in case CloseDataBase calls us
28 $ErrorManager->flushPostponedErrors();
30 if(!empty($errormsg)) {
31 print "<p><hr noshade><h2>" . gettext("WikiFatalError") . "</h2>\n";
33 if (is_string($errormsg))
36 $errormsg->printError();
38 print "\n</body></html>";
45 $ErrorManager->setPostponedErrorMask(E_ALL);
46 $ErrorManager->setFatalHandler(new WikiFunctionCb('ExitWiki'));
49 // (c-file-style: "gnu")
54 // c-hanging-comment-ender-p: nil
55 // indent-tabs-mode: nil