view flag.php @ 130:ee5f98a0bc93

Retrieve documents from DOCUMENT_ROOT, not SCRIPT_ROOT
author Tom Fredrik Blenning <bfg@bfgconsult.no>
date Fri, 13 Jan 2023 18:08:45 +0100
parents 16c3ee204330
children b6b4a58c7625
line wrap: on
line source

<?php
/**
 * @file
 * Displays a flag, in an active or disabled state, depending on parameters
 */
include_once 'constants.inc';
include_once 'CacheTimeCheck.inc';

/// @cond
$scriptCache = ScriptIncludeCache::instance(__FILE__);
$scriptCache->includeOnce('Flag.inc');

try {
  $flag = new Flag($scriptCache);
  $flag->display();
}
catch (Exception $e) {
  errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
}
/// @endcond
?>