From: Davide Franco Date: Wed, 22 Jun 2011 13:27:13 +0000 (+0200) Subject: bacula-web: Made some code cleanup in index.php X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a990fd526569930d2af4efc99160e8288e98d717;p=bacula%2Fbacula bacula-web: Made some code cleanup in index.php --- diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index c614a686cf..9e912ca06e 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -20,22 +20,11 @@ include_once( 'config.inc.php' ); $dbSql = new Bweb(); -// Assign to template catalogs number -//$dbSql->tpl->assign( "dbs", $dbSql->bwcfg->Count_Catalogs() ); -// Assign dbs -/* -if ( count($dbSql->dbs) >1 ) { - $smarty->assign("dbs", $dbSql->dbs); - $smarty->assign("dbs_now", $_SESSION['DATABASE']); -} -*/ -// Catalog count -$catalog_nb = $dbSql->catalog_nb; -$dbSql->tpl->assign( 'catalog_nb', $catalog_nb ); +// How many catalog configured +$dbSql->tpl->assign( 'catalog_nb', $dbSql->catalog_nb ); // Stored files number -$totalfiles = $dbSql->GetStoredFiles( ALL ); -$dbSql->tpl->assign('stored_files',$totalfiles); +$dbSql->tpl->assign('stored_files', $dbSql->GetStoredFiles( ALL ) ); // Database size $dbSql->tpl->assign('database_size', $dbSql->GetDbSize()); @@ -152,10 +141,6 @@ else { } $dbSql->tpl->assign( 'volume_list', $vol_list ); -//if ($_GET['Full_popup'] == "yes" || $_GET['pop_graph1'] == "yes" || $_GET['pop_graph2'] == "yes") -// $smarty->display('full_popup.tpl'); -//else - // Render template $dbSql->tpl->display('index.tpl'); ?>