2 define( 'BW_ROOT', getcwd() );
3 define( 'BW_OBJ', BW_ROOT . '/classes/' );
4 define( 'BW_EXTERNAL', BW_OBJ . 'external' );
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/' );
10 require_once( BW_SMARTY . "Smarty.class.php");
11 require_once( BW_PHPLOT . "phplot.php");
14 require_once "DB.php";
17 require_once BW_OBJ . "graph/bgraph.inc.php";
18 require_once "bweb.inc.php";
21 define('CONFIG_DIR', BW_ROOT . "/configs/");
22 define('CONFIG_FILE', CONFIG_DIR . "bacula.conf");
24 // Time intervals in secondes
25 define( 'LAST_DAY', 86400 );
26 define( 'LAST_WEEK', 604800 );
27 define( 'LAST_MONTH', 2678400 );