From: Davide Franco Date: Mon, 14 Mar 2011 17:57:46 +0000 (+0100) Subject: bacula-web: php code clean up and removed useless configuration parameter X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=629b82551c537779e1d70806e31407517a047a23;p=bacula%2Fbacula bacula-web: php code clean up and removed useless configuration parameter - Made some php code clean up in index.php - Removed useless IndexReport option in bacula.conf --- diff --git a/gui/bacula-web/configs/bacula.conf b/gui/bacula-web/configs/bacula.conf index 12845b920e..2f8e88debc 100644 --- a/gui/bacula-web/configs/bacula.conf +++ b/gui/bacula-web/configs/bacula.conf @@ -2,9 +2,9 @@ ; root = /bacula root = '/bacula-web' +; This option will not be used from now. ; Show a box with a detailed report at index or Status report -; I'll remove this in future versions. -IndexReport = 0 +; IndexReport = 0 ; Secs since last run. Default 24h. ; Unused in this version diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 914a26e4cf..39543614fe 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -46,6 +46,7 @@ if( $mode == false ) $smarty->assign( "mode", $mode ); +/* // Determine which template to show $indexreport = $dbSql->get_config_param( "IndexReport" ); @@ -54,6 +55,7 @@ if( $indexreport == 0 ) { }else { $smarty->assign( "last_report", "report_select.tpl" ); } +*/ // Assign to template catalogs number $smarty->assign( "dbs", $dbSql->Get_Nb_Catalogs() ); @@ -66,10 +68,6 @@ if ( count($dbSql->dbs) >1 ) { } */ -// generaldata.tpl & last_run_report.tpl ( Last 24 hours report ) -$last24bytes = ""; -$query = ""; - // Stored files number $totalfiles = $dbSql->GetStoredFiles( ALL ); $smarty->assign('stored_files',$totalfiles);