Mercurial > SimpleWebPresenter
view flag.php @ 82:4acaab0b02e2
Catch exception at toplevel of all access pages.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 16:51:07 +0200 |
| parents | 9b490aa11124 |
| children | b9654b9c4a66 |
line wrap: on
line source
<?php /** * @file * Displays a flag, in an active or disabled state, depending on parameters */ define(DEBUG,0); include_once 'CacheTimeCheck.inc'; /// @cond $scriptCache = ScriptIncludeCache::instance(__FILE__); $scriptCache->includeOnce('Flag.inc'); try { $flag = new Flag($scriptCache); $flag->genPage(); } catch (Exception $e) { errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); } /// @endcond
