view flag.php @ 111:adf7b11921f4

No compression when debugging. Synchronize caching headers.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Tue, 15 Mar 2016 12:55:42 +0100
parents b9654b9c4a66
children 16c3ee204330
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->display();
}
catch (Exception $e) {
  errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
}
/// @endcond