Separated class library and web interface code Added a common config/database config to be referenced by all subprojects Fixed previous commit
17 lines
464 B
PHP
17 lines
464 B
PHP
<?php
|
|
|
|
$main = HandBrakeCluster_Main::instance();
|
|
$config = $main->config();
|
|
|
|
$lister = new HandBrakeCluster_Rips_SourceLister($config->get('rips.source_dir'));
|
|
$sources = $lister->sources();
|
|
|
|
$sources_cached = array();
|
|
foreach ($sources as $source) {
|
|
$sources_cached[$source->filename()] = HandBrakeCluster_Rips_Source::isCached($source->filename());
|
|
}
|
|
|
|
$this->smarty->assign('sources', $sources);
|
|
$this->smarty->assign('sources_cached', $sources_cached);
|
|
|
|
?>
|