Revision 1654
Added by Dietmar over 12 years ago
DEVINFOS | ||
---|---|---|
5 | 5 |
|
6 | 6 |
|
7 | 7 |
|
8 |
22 Mar-2012 Build 1639 |
|
9 |
---------------------- |
|
10 |
Refer: new structure in config.php set by new installation |
|
11 |
backwards compability is given, so const can be defined in /framework/initialize.php |
|
12 |
add const DEBUG to config.php (default = false) |
|
13 |
add const ADMIN_DIRECTORY to config.php (default = admin) |
|
14 |
[code] |
|
15 |
define('DEBUG', false); |
|
16 |
define('DB_TYPE', 'mysql'); |
|
17 |
define('DB_HOST', 'localhost'); |
|
18 |
define('DB_NAME', 'xxxxxx'); |
|
19 |
define('DB_USERNAME', 'xxxxxx'); |
|
20 |
define('DB_PASSWORD', 'xxxxxx'); |
|
21 |
define('TABLE_PREFIX', 'wb_'); |
|
22 |
|
|
23 |
define('WB_URL', 'http://xxxxxxxx.xx'); |
|
24 |
define('ADMIN_DIRECTORY', 'admin'); // no leading/trailing slash or backslash!! A simple directory only!! |
|
25 |
|
|
26 |
require_once(dirname(__FILE__).'/framework/initialize.php'); |
|
27 |
[/code] |
|
28 |
|
|
29 |
|
|
8 | 30 |
09 Mar-2012 Build 1634 |
9 | 31 |
---------------------- |
10 | 32 |
If using the $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] in your module, please add |
11 |
following code to your script |
|
33 |
following code to your script, |
|
34 |
requires: include_once (WB_PATH.'/framework/functions.php'); |
|
12 | 35 |
[code] |
13 |
$search = array('{SERVER_EMAIL}');
|
|
14 |
$replace = array( SERVER_EMAIL);
|
|
15 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = str_replace($search,$replace,$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA']);
|
|
36 |
$aServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : $_SERVER['SERVER_NAME']);
|
|
37 |
$replace = array('SERVER_EMAIL' => $aServerEmail );
|
|
38 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace);
|
|
16 | 39 |
[/code] |
17 | 40 |
|
18 | 41 |
|
Also available in: Unified diff
Fixed SERVER_EMAIL in languages, needs double brackets
Installer redesign Step 2