view flag.php @ 117:e01ce5722f2b

New change to how we save (X)HTML files. This time we simplify things by using DocumentFragments to load stuff, and preserve CDATA content.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Sun, 27 Mar 2016 21:33:08 +0200
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