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', "configs");
22 define('CONFIG_FILE', "bacula.conf");
23 define('BACULA_TYPE_BYTES_FILES', 1);
24 define('BACULA_TYPE_FILES_JOBID', 2);
25 define('BACULA_TYPE_BYTES_ENDTIME_ALLJOBS', 69);
27 // Time intervals in secondes
28 define( 'LAST_DAY', 86400 );
29 define( 'LAST_WEEK', 604800 );
30 define( 'LAST_MONTH', 2678400 );