update changelog
[phorkie.git] / www / index.php
index d33604d2643846662f8ef2696c7be74d05874df4..54b1e3aa692795e57a0b789fad959f8e91201648 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace Phorkie;
+namespace phorkie;
 /**
  * Show paste creation form
  *
@@ -20,5 +20,15 @@ if ($repopo->process($_POST)) {
 $phork = array(
     '1' => new File(null, null)
 );
-render('index', array('files' => $phork, 'description' => ''));
-?>
\ No newline at end of file
+$db = new Database();
+render(
+    'index',
+    array(
+        'files'       => $phork,
+        'description' => '',
+        'htmlhelper'  => new HtmlHelper(),
+        'recents'     => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'),
+        'dh'          => new \Date_HumanDiff(),
+    )
+);
+?>