secure.php is not used anymore
authorChristian Weiske <cweiske@cweiske.de>
Tue, 18 Sep 2012 21:29:58 +0000 (23:29 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 18 Sep 2012 21:29:58 +0000 (23:29 +0200)
www/secure.php [deleted file]

diff --git a/www/secure.php b/www/secure.php
deleted file mode 100644 (file)
index 9506614..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/** 
- * Protect page
- */
-namespace phorkie;
-require_once 'www-header.php';
-$_SESSION['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
-if (!isset($_SESSION['identity'])) {
-    header("Location: " . Tools::fullUrl('/login'));
-    exit;
-}
-if ($GLOBALS['phorkie']['auth']['secure'] > 0 &&
-    $GLOBALS['phorkie']['auth']['userlist']) {
-    if (!in_array($_SESSION['identity'], $GLOBALS['phorkie']['users'])) {
-        header('HTTP/1.1 403 Forbidden');
-        $db = new Database();
-        render(
-            'forbidden',
-            array(
-                'recents'     => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'),
-            )
-        );
-        exit;
-    }
-}
-?>