Project

General

Profile

« Previous | Next » 

Revision 1637

Added by darkviper over 12 years ago

made handling of config.php a little bit more easy

View differences:

branches/2.8.x/CHANGELOG
12 12
===============================================================================
13 13

  
14 14

  
15
13 Mar-2012 Build 1637 Werner v.d.Decken(DarkViper)
16
! made handling of config.php a little bit more easy
15 17
09 Mar-2012 Build 1636 Dietmar Woellbrink (Luisehahne)
16 18
+ add missing language variables for the theme handling
17 19
09 Mar-2012 Build 1635 Dietmar Woellbrink (Luisehahne)
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1636');
54
if(!defined('REVISION')) define('REVISION', '1637');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/framework/initialize.php
19 19
/* -------------------------------------------------------- */
20 20
// Must include code to stop this file being accessed directly
21 21
require_once(dirname(__FILE__).'/globalExceptionHandler.php');
22
if(!defined('WB_PATH')) { throw new IllegalFileException(); }
22
if(!defined('WB_URL')) { throw new IllegalFileException(); }
23 23
/* -------------------------------------------------------- */
24 24
/**
25 25
 * sanitize $_SERVER['HTTP_REFERER']
......
50 50
		$_SERVER['HTTP_REFERER'] = $sTmpReferer;
51 51
	}
52 52

  
53
if( !defined('ADMIN_URL')) { define('ADMIN_URL', WB_URL.'/admin'); }
54
if( !defined('WB_PATH')) { define('WB_PATH', dirname(dirname(__FILE__))); }
55
if( !defined('ADMIN_PATH')) { define('ADMIN_PATH', WB_PATH.'/admin'); }
53 56

  
54 57
if (file_exists(WB_PATH.'/framework/class.database.php')) {
55 58
	// sanitize $_SERVER['HTTP_REFERER']
branches/2.8.x/wb/install/save.php
291 291
"define('DB_PASSWORD', '$database_password');\n".
292 292
"define('TABLE_PREFIX', '$table_prefix');\n".
293 293
"\n".
294
"define('WB_PATH', dirname(__FILE__));\n".
295 294
"define('WB_URL', '$wb_url');\n".
296
"define('ADMIN_PATH', WB_PATH.'/admin');\n".
297
"define('ADMIN_URL', WB_URL.'/admin');\n".
298 295
"\n".
299
"require_once(WB_PATH.'/framework/initialize.php');\n".
300
"\n".
301
"";
296
"require_once(dirname(__FILE__).'/framework/initialize.php');\n".
297
"\n";
302 298

  
303 299
$config_filename = '../config.php';
304 300
// Check if the file exists and is writable first.

Also available in: Unified diff