From: Davide Franco Date: Fri, 18 Mar 2011 13:35:01 +0000 (+0100) Subject: bacula-web: Removed paths.php from git X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55a4246b4ab31663c273e6af1e2be3235d63f250;p=bacula%2Fbacula 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 --- 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'); ?>