allow people to logout and login in secure mode
authorChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 21:48:19 +0000 (23:48 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 21:48:19 +0000 (23:48 +0200)
www/login.php
www/www-header.php

index 6a13fa290d03603af6860f067b744756d34564c1..150cf25c7624bd84aea7e16e380a59586ba906d3 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace phorkie;
 $pageRequiresLogin = false;
 <?php
 namespace phorkie;
 $pageRequiresLogin = false;
+$noSecurityCheck = true;
 require_once 'www-header.php';
 
 if (isset($_REQUEST['logout'])) {
 require_once 'www-header.php';
 
 if (isset($_REQUEST['logout'])) {
index 290e680015900ca445bb25ad599e0d3779837f6f..ed41503922ee257561df43266f6a065dae7ccd6b 100644 (file)
@@ -72,7 +72,9 @@ $twig = new \Twig_Environment(
 );
 //$twig->addExtension(new \Twig_Extension_Debug());
 
 );
 //$twig->addExtension(new \Twig_Extension_Debug());
 
-require __DIR__ . '/www-security.php';
+if (!isset($noSecurityCheck) || $noSecurityCheck !== true) {
+    require __DIR__ . '/www-security.php';
+}
 
 function render($tplname, $vars = array())
 {
 
 function render($tplname, $vars = array())
 {