X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f9ade082ba49cf487af31339afa7aeeb0653af57..47a3b51ef8ab7d47bc5492c830bc8905e3fb872e:/www/new.php diff --git a/www/new.php b/www/new.php index 0675b4d..6ec746b 100644 --- a/www/new.php +++ b/www/new.php @@ -10,14 +10,12 @@ namespace phorkie; * * Creates and redirects to display page */ +$reqWritePermissions = true; require_once 'www-header.php'; -if ($GLOBALS['phorkie']['auth']['secure'] > 0) { - include_once 'secure.php'; -} $repopo = new Repository_Post(); if ($repopo->process($_POST, $_SESSION)) { - redirect($repopo->repo->getLink('display')); + redirect($repopo->repo->getLink('display', null, true)); } $phork = array( @@ -30,7 +28,7 @@ render( 'files' => $phork, 'description' => '', 'htmlhelper' => new HtmlHelper(), - 'recents' => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'), + 'recents' => $db->getSearch()->listAll(0, 5, 'modate', 'desc'), 'dh' => new \Date_HumanDiff(), ) );