1 <?php |
1 <?php |
2 |
2 |
3 /* |
3 /* |
4 * Check for development server |
4 * Check for development server |
5 */ |
5 */ |
6 if ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0) { |
6 if (isset($_SERVER['SERVER_NAME']) && ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0)) { |
7 |
7 |
8 define ('DBASE_NAME', 'bms_dev'); |
8 define ('DBASE_NAME', 'bms_dev'); |
9 define ('DBASE_HOST', 'lx02'); |
9 define ('DBASE_HOST', 'lx02'); |
10 define ('DBASE_USER', 'bms_dev'); |
10 define ('DBASE_USER', 'bms_dev'); |
11 define ('DBASE_PASS', 'bms_dev'); |
11 define ('DBASE_PASS', 'bms_dev'); |
12 define ('DBASE_CHARSET', 'utf8'); |
12 define ('DBASE_CHARSET', 'utf8'); |
13 |
13 |
14 define ('EMAIL_FROM', 'noreply@mbse.ym'); |
14 define ('EMAIL_FROM', 'noreply@mbse.ym'); |
|
15 |
|
16 define ('MQTT_HOST', 'localhost'); |
|
17 define ('MQTT_PORT', 1883 ); |
|
18 define ('MQTT_USER', 'mqtt_user' ); |
|
19 define ('MQTT_PASS', 'mqtt_pass' ); |
15 |
20 |
16 setlocale ( LC_TIME , 'nl_NL' ); |
21 setlocale ( LC_TIME , 'nl_NL' ); |
17 |
22 |
18 } else { |
23 } else { |
19 |
24 |
23 define ('DBASE_PASS', 'bms_dev'); |
28 define ('DBASE_PASS', 'bms_dev'); |
24 define ('DBASE_CHARSET', 'utf8'); |
29 define ('DBASE_CHARSET', 'utf8'); |
25 |
30 |
26 define ('EMAIL_FROM', 'noreply@mbse.ym'); |
31 define ('EMAIL_FROM', 'noreply@mbse.ym'); |
27 |
32 |
|
33 define ('MQTT_HOST', 'localhost'); |
|
34 define ('MQTT_PORT', 1883 ); |
|
35 define ('MQTT_USER', 'mqtt_user' ); |
|
36 define ('MQTT_PASS', 'mqtt_pass' ); |
|
37 |
28 setlocale ( LC_TIME , 'nl_NL' ); |
38 setlocale ( LC_TIME , 'nl_NL' ); |
29 |
39 |
30 } |
40 } |
31 |
41 |