Added perl to the list of geshi types
[phorkie.git] / www / index.php
index 9a03b77c91e0ad223309d43857bbae9828d9a3a2..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' => ''));
+$db = new Database();
+render(
+    'index',
+    array(
+        'files'       => $phork,
+        'description' => '',
+        'htmlhelper'  => new HtmlHelper(),
+        'recents'     => $db->getSearch()->listAll(0, 5, 'crdate', 'desc'),
+        'dh'          => new \Date_HumanDiff(),
+    )
+);
 ?>