From a990fd526569930d2af4efc99160e8288e98d717 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Wed, 22 Jun 2011 15:27:13 +0200 Subject: [PATCH] bacula-web: Made some code cleanup in index.php --- gui/bacula-web/index.php | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) 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'); ?> -- 2.39.5