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:
2010-08-14 14:55:37 +01:00
parent 5aa4bf11c7
commit 76f2c4790d
70 changed files with 52 additions and 9 deletions

20
webui/index.php Normal file
View 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());
}
?>