Mercurial > SimpleWebPresenter
comparison flag.php @ 129:16c3ee204330
Fixes flag.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Wed, 28 Dec 2022 11:20:19 +0100 |
| parents | b9654b9c4a66 |
| children | b6b4a58c7625 |
comparison
equal
deleted
inserted
replaced
| 128:ef487503dded | 129:16c3ee204330 |
|---|---|
| 1 <?php | 1 <?php |
| 2 /** | 2 /** |
| 3 * @file | 3 * @file |
| 4 * Displays a flag, in an active or disabled state, depending on parameters | 4 * Displays a flag, in an active or disabled state, depending on parameters |
| 5 */ | 5 */ |
| 6 define(DEBUG,0); | 6 include_once 'constants.inc'; |
| 7 | |
| 8 include_once 'CacheTimeCheck.inc'; | 7 include_once 'CacheTimeCheck.inc'; |
| 9 | 8 |
| 10 /// @cond | 9 /// @cond |
| 11 $scriptCache = ScriptIncludeCache::instance(__FILE__); | 10 $scriptCache = ScriptIncludeCache::instance(__FILE__); |
| 12 $scriptCache->includeOnce('Flag.inc'); | 11 $scriptCache->includeOnce('Flag.inc'); |
| 17 } | 16 } |
| 18 catch (Exception $e) { | 17 catch (Exception $e) { |
| 19 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); | 18 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); |
| 20 } | 19 } |
| 21 /// @endcond | 20 /// @endcond |
| 21 ?> |
