]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/pools.php
bacula-web: Improved countJobs() function in bweb class
[bacula/bacula] / gui / bacula-web / pools.php
index 0a2c682c98ae9a62c362897c397308a2769abd18..4fe3cd8b66173648410ea0e7d660a0ed92bbb7d5 100644 (file)
@@ -1,24 +1,26 @@
 <?php
-  session_start();
-  require_once ("paths.php");
-  require_once ($smarty_path."Smarty.class.php");
-  require_once ("bweb.inc.php");
-  require_once ("config.inc.php");
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| This program is free software; you can redistribute it and/or           |
+| modify it under the terms of the GNU General Public License             |
+| as published by the Free Software Foundation; either version 2          |
+| of the License, or (at your option) any later version.                  |
+|                                                                         |
+| This program is distributed in the hope that it will be useful,         |
+| but WITHOUT ANY WARRANTY; without even the implied warranty of          |
+| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
+| GNU General Public License for more details.                            |
++-------------------------------------------------------------------------+ 
+*/
+ session_start();
+ include_once( 'config.inc.php' );
 
-  $smarty = new Smarty();
-  $dbSql = new Bweb();
+ $dbSql = new Bweb();
 
-  // Smarty configuration
-  $smarty->compile_check = true;
-  $smarty->debugging = false;
-  $smarty->force_compile = true;
+ // Get volumes list (pools.tpl)
+ $dbSql->tpl->assign('pools',$dbSql->GetVolumeList() );
 
-  $smarty->template_dir = "./templates";
-  $smarty->compile_dir = "./templates_c";
-  $smarty->config_dir     = "./configs";
-
-  // Get volumes list (pools.tpl)
-  $smarty->assign('pools',$dbSql->GetVolumeList() );
-
-  $smarty->display('pools.tpl');
+ $dbSql->tpl->display('pools.tpl');
 ?>