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
This commit is contained in:
20
webui/index.php
Normal file
20
webui/index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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());
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user