X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a73791f16d10ea0e2c477f29d9049d75516aa774..46e5ed5df53911bd2ae3584ef35f86e5d3094fb3:/www/new.php diff --git a/www/new.php b/www/new.php index fc6d5f3..e2611c0 100644 --- a/www/new.php +++ b/www/new.php @@ -10,13 +10,11 @@ namespace phorkie; * * Creates and redirects to display page */ +$secureAtLevel = '1'; 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')); }