Files
media-listing/public/index.php

22 lines
625 B
PHP

<?php
define('ML_File', 'index');
require_once('../private/config.php');
require_once(SihnonFramework_Lib . 'SihnonFramework/Main.class.php');
try {
Sihnon_Main::registerAutoloadClasses('SihnonFramework', SihnonFramework_Lib, 'MediaListing', Sihnon_Main::makeAbsolutePath('../source/lib/'));
$main = MediaListing_Main::instance();
$smarty = $main->smarty();
$page = new MediaListing_Page($smarty, $main->request());
if ($page->evaluate()) {
$smarty->display('index.tpl');
}
} catch (Sihnon_Exception $e) {
die("Uncaught " . get_class($e) . ": " . $e->getMessage());
}
?>