rename "secureAtLevel" variable since it does not define a level at all
[phorkie.git] / www / new.php
index fc6d5f38b196b9810e9af438cd5b8ba377e80293..7a708917ef45912a6be54cb6e82e069bdbc90858 100644 (file)
@@ -10,13 +10,11 @@ namespace phorkie;
  *
  * Creates and redirects to display page
  */
+$reqWritePermissions = true;
 require_once 'www-header.php';
-if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
-    require_once 'secure.php';
-}
 
 $repopo = new Repository_Post();
-if ($repopo->process($_POST)) {
+if ($repopo->process($_POST, $_SESSION)) {
     redirect($repopo->repo->getLink('display'));
 }