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