allow people to logout and login in secure mode
[phorkie.git] / www / forbidden.php
index 3646b0a4c589ef5b622eb777bab959e31eba34b6..6c44099e80211bef5ecf416c1c85611d9686f5f8 100644 (file)
@@ -1,15 +1,14 @@
 <?php
+namespace phorkie;
 /**
- * Access Denied page
+ * Show an access denied error
  */
-namespace phorkie;
-require_once 'www-header.php';
 
-$db = new Database();
 render(
     'forbidden',
     array(
-        'recents'     => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'),
+        'identity' => isset($_SESSION['identity']) ? $_SESSION['identity'] : null
     )
 );
+exit();
 ?>