X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a73791f16d10ea0e2c477f29d9049d75516aa774..6eef15cdc3bef5971d8ffe95bcbcaff368c87e69:/www/new.php diff --git a/www/new.php b/www/new.php index fc6d5f3..7a70891 100644 --- a/www/new.php +++ b/www/new.php @@ -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')); }