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 . "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 );