]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/config.inc.php
cula-web: Renamed configs folder to config
[bacula/bacula] / gui / bacula-web / config.inc.php
index 6d7c74265afed6c5341b8121b55519e3feb0e406..3bf2354924b547b73d91be1ed0285dcc5002614b 100644 (file)
@@ -1,5 +1,30 @@
 <?php
+ define( 'BW_ROOT', getcwd() );        
+ define( 'BW_OBJ', BW_ROOT . '/classes/' ); 
+ define( 'BW_EXTERNAL', BW_OBJ . 'external' );
+ define( 'BW_PHPLOT', BW_EXTERNAL . '/phplot/'  );                                     
+ define( 'BW_SMARTY', BW_EXTERNAL . '/smarty/libs/' );                         
+ define( 'BW_SMARTY_GETTEXT', BW_EXTERNAL . '/smarty_gettext-0.9/' );
+ require_once( BW_SMARTY . "Smarty.class.php");                        
+ require_once( BW_PHPLOT . "phplot.php");                              
+ // PEAR-DB classe
+ require_once "DB.php";   
+ // Internal libs
+ require_once BW_OBJ . "cfg/config.classe.php";
+ require_once BW_OBJ . "graph/bgraph.inc.php";
+ require_once BW_OBJ . "bweb.inc.php";
+ // Global constants
+ define('CONFIG_DIR', BW_ROOT . "/config/");
+ define('CONFIG_FILE', CONFIG_DIR . "bacula.conf");
+ // Time intervals in secondes
  define( 'LAST_DAY', 86400 );
  define( 'LAST_WEEK', 604800 );
  define( 'LAST_MONTH', 2678400 );
+ define( 'ALL', -1 );
 ?>