]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/config.inc.php
bacula-web: Renammed some php filename's under classes folder
[bacula/bacula] / gui / bacula-web / config.inc.php
index 6a28a47f736c1102491152cfa2665626e0db307c..0a5cdb13d4b4ded8b9a3d05494a429b9dbfd4c86 100644 (file)
@@ -1,29 +1,28 @@
 <?php
- // PhPlot (version 5.3.1) 
- // http://www.phplot.com
- $phplot_path = "external_packages/phplot/";
-
- // Smarty (version 2.6.26)
- // http://smarty.php.net
- $smarty_path = "external_packages/smarty/libs/";
-
- // Smarty_gettext (version 0.9)
- // http://www.boom.org.il/smarty/gettext/
- $smarty_gettext_path = "external_packages/smarty_gettext-0.9/"; 
+ define( 'BW_ROOT', getcwd() );        
+ define( 'BW_OBJ', BW_ROOT . '/classes/' ); 
+ define( 'BW_EXTERNAL', BW_OBJ . 'external' );
  
- require_once( $smarty_path . "Smarty.class.php");
- require_once( $phplot_path . "phplot.php");
+ define( 'BW_PHPLOT', BW_EXTERNAL . '/phplot/'  );                                     
+ define( 'BW_SMARTY', BW_EXTERNAL . '/smarty/libs/' );                         
+ define( 'BW_SMARTY_GETTEXT', BW_EXTERNAL . '/smarty_gettext-0.9/' );
  
+ require_once( BW_SMARTY . "Smarty.class.php");                        
+ require_once( BW_PHPLOT . "phplot.php");                              
+ // PEAR-DB classe
  require_once "DB.php";   
- require_once "bgraph.inc.php";
+ // Internal libs
+ require_once BW_OBJ . "cfg/config.class.php";
+ require_once BW_OBJ . "graph/bgraph.class.php";
+ require_once BW_OBJ . "bweb.inc.php";
  
  // Global constants
- define('CONFIG_DIR', "configs");
- define('CONFIG_FILE', "bacula.conf");
- define('BACULA_TYPE_BYTES_FILES', 1);
- define('BACULA_TYPE_FILES_JOBID', 2);
- define('BACULA_TYPE_BYTES_ENDTIME_ALLJOBS', 69);
-
+ define('CONFIG_DIR', BW_ROOT . "/config/");
+ define('CONFIG_FILE', CONFIG_DIR . "config.php");
+ require_once( CONFIG_FILE );
  // Time intervals in secondes
  define( 'LAST_DAY', 86400 );
  define( 'LAST_WEEK', 604800 );