]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Made some code cleanup in index.php
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 22 Jun 2011 13:27:13 +0000 (15:27 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:14 +0000 (14:49 +0200)
gui/bacula-web/index.php

index c614a686cfcf1c92862080deefbcf29313ce8c2a..9e912ca06eca4ede8af55b3e6603601aa0401a9b 100644 (file)
@@ -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');
 ?>