X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/cdaa5e28290fe0e9e73ca3a0557ee021a7ab404b..53e6e11d2b3ffd73abdd166c3a3d983479fc3040:/www/index.php diff --git a/www/index.php b/www/index.php index 9a03b77..54b1e3a 100644 --- a/www/index.php +++ b/www/index.php @@ -1,5 +1,5 @@ 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(), + ) +); ?>