Files
handbrake-cluster-webui/webui/index.php
Ben Roberts 76f2c4790d Reorganised code layout
Separated class library and web interface code
Added a common config/database config to be referenced by all
subprojects

Fixed previous commit
2010-08-14 15:36:31 +01:00

21 lines
391 B
PHP

<?php
define('HBCFile', 'index');
require '_inc.php';
try {
$main = HandBrakeCluster_Main::instance();
$smarty = $main->smarty();
$page = new HandBrakeCluster_Page($smarty, $main->request());
if ($page->evaluate()) {
$smarty->display('index.tpl');
}
} catch (HandBrakeCluster_Exception $e) {
die("Uncaught Exception: " . $e->getMessage());
}
?>