X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/13989a4e7cb4453225762dab6b5e5a7565b43df8..027c801a4dc51db673bcbfcfbd396845f244e357:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 96cd481..9aa8732 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -1,8 +1,6 @@ addExtension(new \Twig_Extension_Debug()); -function render($tplname, $vars) +if (!isset($noSecurityCheck) || $noSecurityCheck !== true) { + require __DIR__ . '/www-security.php'; +} + +function render($tplname, $vars = array()) { $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; $vars['title'] = $GLOBALS['phorkie']['cfg']['title'];