1 |
1634
|
Luisehahne
|
WebsiteBaker 2.8.3 Developing Instructions/Informations
|
2 |
|
|
=======================================================
|
3 |
|
|
|
4 |
1635
|
Luisehahne
|
$Id: DEVINFOS 1634 2012-03-09 02:20:16Z Luisehahne $
|
5 |
1634
|
Luisehahne
|
|
6 |
|
|
|
7 |
1635
|
Luisehahne
|
|
8 |
1654
|
Luisehahne
|
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 |
|
|
|
30 |
1635
|
Luisehahne
|
09 Mar-2012 Build 1634
|
31 |
|
|
----------------------
|
32 |
|
|
If using the $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] in your module, please add
|
33 |
1654
|
Luisehahne
|
following code to your script,
|
34 |
|
|
requires: include_once (WB_PATH.'/framework/functions.php');
|
35 |
1634
|
Luisehahne
|
[code]
|
36 |
1654
|
Luisehahne
|
$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);
|
39 |
1634
|
Luisehahne
|
[/code]
|
40 |
|
|
|