]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Moved constants declaration
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 21 Dec 2010 17:01:03 +0000 (18:01 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:34 +0000 (14:43 +0200)
 - Moved constant declaration from bweb.inc.php to config.inc.php
 - Removed useless comment from bweb.inc.php

gui/bacula-web/bweb.inc.php
gui/bacula-web/config.inc.php

index e12d39b9d626a91d6bdb090c7e30ab21ced5793d..3b5fc635c57629c55367b9499d01c97a2f59dbfd 100644 (file)
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+ 
 */
-// Last Err: 11
-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);
-
 require_once "paths.php";
 require_once "DB.php";                                                                                                                  // Pear DB
 require_once "config.inc.php";
index edc827e5bb640d27847a06477e40a75ded04fdec..abd6a01d0d21d11395bc986e4da45c23c89bf09e 100644 (file)
@@ -1,4 +1,11 @@
 <?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);
+
  // Intervalles in secondes
  define( 'LAST_DAY', 86400 );
  define( 'LAST_WEEK', 604800 );