]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/config.inc.php
cula-web: Renamed configs folder to config
[bacula/bacula] / gui / bacula-web / config.inc.php
1 <?php
2  define( 'BW_ROOT', getcwd() ); 
3  define( 'BW_OBJ', BW_ROOT . '/classes/' ); 
4  define( 'BW_EXTERNAL', BW_OBJ . 'external' );
5  
6  define( 'BW_PHPLOT', BW_EXTERNAL . '/phplot/'  );                                      
7  define( 'BW_SMARTY', BW_EXTERNAL . '/smarty/libs/' );                          
8  define( 'BW_SMARTY_GETTEXT', BW_EXTERNAL . '/smarty_gettext-0.9/' );
9  
10  require_once( BW_SMARTY . "Smarty.class.php");                 
11  require_once( BW_PHPLOT . "phplot.php");                               
12  
13  // PEAR-DB classe
14  require_once "DB.php";   
15  
16  // Internal libs
17  require_once BW_OBJ . "cfg/config.classe.php";
18  require_once BW_OBJ . "graph/bgraph.inc.php";
19  require_once BW_OBJ . "bweb.inc.php";
20  
21  // Global constants
22  define('CONFIG_DIR', BW_ROOT . "/config/");
23  define('CONFIG_FILE', CONFIG_DIR . "bacula.conf");
24  
25  // Time intervals in secondes
26  define( 'LAST_DAY', 86400 );
27  define( 'LAST_WEEK', 604800 );
28  define( 'LAST_MONTH', 2678400 );
29  define( 'ALL', -1 );
30 ?>