From 55a4246b4ab31663c273e6af1e2be3235d63f250 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 18 Mar 2011 14:35:01 +0100 Subject: [PATCH] bacula-web: Removed paths.php from git - Removed paths.php file from git and moved his content in config.inc.php - Made some code cleanup - Adapted includes in all php script after this change --- gui/bacula-web/backupjob-report.php | 1 - gui/bacula-web/bgraph.inc.php | 1 - gui/bacula-web/bweb.inc.php | 5 ----- gui/bacula-web/config.inc.php | 20 +++++++++++++++++++- gui/bacula-web/index.php | 1 - gui/bacula-web/jobs.php | 1 - gui/bacula-web/paths.php | 14 -------------- gui/bacula-web/pools.php | 1 - gui/bacula-web/report.php | 1 - gui/bacula-web/test.php | 22 +++++----------------- 10 files changed, 24 insertions(+), 43 deletions(-) delete mode 100644 gui/bacula-web/paths.php diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 2857e211a9..5453662a5f 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -1,6 +1,5 @@ \ No newline at end of file diff --git a/gui/bacula-web/pools.php b/gui/bacula-web/pools.php index 3391920d70..90a4958ca4 100644 --- a/gui/bacula-web/pools.php +++ b/gui/bacula-web/pools.php @@ -1,6 +1,5 @@ compile_check = true; - $smarty->debugging = false; - $smarty->force_compile = true; - - $smarty->template_dir = "./templates"; - $smarty->compile_dir = "./templates_c"; - $smarty->config_dir = "./configs"; - + $bw = new Bweb(); + // Check result icon $check_result = array( true => 's_ok.png', false => 's_error.gif' ); @@ -75,7 +63,7 @@ $graph->Render(); // Parse to template - $smarty->assign( 'checks', $check_list ); - $smarty->assign('graph_test', $graph->Get_Image_file() ); - $smarty->display('test.tpl'); + $bw->tpl->assign( 'checks', $check_list ); + $bw->tpl->assign('graph_test', $graph->Get_Image_file() ); + $bw->tpl->display('test.tpl'); ?> -- 2.39.5