]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/pools.php
bacula-web: Removed pools and volumes list from main layout
[bacula/bacula] / gui / bacula-web / pools.php
index 62a2de0c86e67cd85333eb6effb08b9f6eea76f6..25839026620a5c154428411d563fe11a13bda9f0 100644 (file)
@@ -1,3 +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");
 
+  $smarty = new Smarty();
+  $dbSql = new Bweb();
+
+  require("lang.php");
+
+  // Smarty configuration
+  $smarty->compile_check = true;
+  $smarty->debugging = false;
+  $smarty->force_compile = true;
+
+  $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');
 ?>