Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / new.php
index 10c5ab3a359413d93a3633842ce9e214f688f32f..6ec746b421fc8a646ed13583671643acc8fd6885 100644 (file)
@@ -10,12 +10,12 @@ namespace phorkie;
  *
  * Creates and redirects to display page
  */
-$securityLevel = '1';
+$reqWritePermissions = true;
 require_once 'www-header.php';
 
 $repopo = new Repository_Post();
 if ($repopo->process($_POST, $_SESSION)) {
-    redirect($repopo->repo->getLink('display'));
+    redirect($repopo->repo->getLink('display', null, true));
 }
 
 $phork = array(
@@ -28,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(),
     )
 );