aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-09-17 23:48:19 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-09-17 23:48:19 +0200
commit44a673a5864e2f2b9d14d7c67d9f5baf41f957c9 (patch)
treec7c6da3a58e73b9e8baa655cd9c5bb91fd58dbd1
parentd6d44a3855f93afebd962843cfdfb9952912443e (diff)
downloadphorkie-44a673a5864e2f2b9d14d7c67d9f5baf41f957c9.tar.gz
phorkie-44a673a5864e2f2b9d14d7c67d9f5baf41f957c9.zip
allow people to logout and login in secure mode
-rw-r--r--www/login.php1
-rw-r--r--www/www-header.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/www/login.php b/www/login.php
index 6a13fa2..150cf25 100644
--- a/www/login.php
+++ b/www/login.php
@@ -1,6 +1,7 @@
<?php
namespace phorkie;
$pageRequiresLogin = false;
+$noSecurityCheck = true;
require_once 'www-header.php';
if (isset($_REQUEST['logout'])) {
diff --git a/www/www-header.php b/www/www-header.php
index 290e680..ed41503 100644
--- a/www/www-header.php
+++ b/www/www-header.php
@@ -72,7 +72,9 @@ $twig = new \Twig_Environment(
);
//$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())
{