2 define( 'BW_ROOT', getcwd() );
3 define( 'BW_OBJ', BW_ROOT . '/includes/' );
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 . "cfg/config.class.php";
18 require_once BW_OBJ . "graph/bgraph.class.php";
19 require_once BW_OBJ . "bweb.inc.php";
22 define('CONFIG_DIR', BW_ROOT . "/config/");
23 define('CONFIG_FILE', CONFIG_DIR . "config.php");
24 require_once( CONFIG_FILE );
26 // Time intervals in secondes
27 define( 'LAST_DAY', 86400 );
28 define( 'LAST_WEEK', 604800 );
29 define( 'LAST_MONTH', 2678400 );
33 define( 'J_NOT_RUNNING', 'C' );
34 define( 'J_RUNNING', 'R' );
35 define( 'J_BLOCKED', 'B' );
36 define( 'J_COMPLETED', 'T' );
37 define( 'J_COMPLETED_ERROR', 'E' );
38 define( 'J_NO_FATAL_ERROR', 'e' );
39 define( 'J_FATAL', 'f' );
40 define( 'J_CANCELED', 'A' );
41 define( 'J_WAITING_CLIENT', 'F' );
42 define( 'J_WAITING_SD', 'S' );
43 define( 'J_WAITING_NEW_MEDIA', 'm' );
44 define( 'J_WAITING_MOUNT_MEDIA', 'M' );
45 define( 'J_WAITING_STORAGE_RES', 's' );
46 define( 'J_WAITING_JOB_RES', 'j' );
47 define( 'J_WAITING_CLIENT_RES', 'c' );
48 define( 'J_WAITING_MAX_JOBS', 'd' );
49 define( 'J_WAITING_START_TIME', 't' );
50 define( 'J_WAITING_HIGH_PR_JOB', 'p' );