X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/5935a357efd7be14481b21560347f70116891e16..d5901a1fcc8b79f9a23bd3888ef2f281f07b9459:/www/new.php diff --git a/www/new.php b/www/new.php index 8d1a231..965f534 100644 --- a/www/new.php +++ b/www/new.php @@ -10,10 +10,8 @@ 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, $_SESSION)) { @@ -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(), ) );