FIX: Removed forbidden page, added to secure.php
[phorkie.git] / www / edit.php
index 226b774e056f5040c6306a1e11aa942662b69341..20e779386a422494db506fcd4b144ab45641f7a4 100644 (file)
@@ -5,14 +5,14 @@ namespace phorkie;
  */
 require_once 'www-header.php';
 if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
-    require_once 'secure.php';
+    include_once 'secure.php';
 }
 
 $repo = new Repository();
 $repo->loadFromRequest();
 
 $repopo = new Repository_Post($repo);
-if ($repopo->process($_POST)) {
+if ($repopo->process($_POST, $_SESSION)) {
     redirect($repo->getLink('display'));
 }