diff -r 3dbe1d2265ed -r 4c25db9e8102 www/config.php.dist --- a/www/config.php.dist Wed Jan 09 16:19:26 2019 +0100 +++ b/www/config.php.dist Thu Jan 10 20:22:06 2019 +0100 @@ -3,7 +3,7 @@ /* * Check for development server */ -if ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0) { +if (isset($_SERVER['SERVER_NAME']) && ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0)) { define ('DBASE_NAME', 'bms_dev'); define ('DBASE_HOST', 'lx02'); @@ -13,6 +13,11 @@ define ('EMAIL_FROM', 'noreply@mbse.ym'); + define ('MQTT_HOST', 'localhost'); + define ('MQTT_PORT', 1883 ); + define ('MQTT_USER', 'mqtt_user' ); + define ('MQTT_PASS', 'mqtt_pass' ); + setlocale ( LC_TIME , 'nl_NL' ); } else { @@ -25,6 +30,11 @@ define ('EMAIL_FROM', 'noreply@mbse.ym'); + define ('MQTT_HOST', 'localhost'); + define ('MQTT_PORT', 1883 ); + define ('MQTT_USER', 'mqtt_user' ); + define ('MQTT_PASS', 'mqtt_pass' ); + setlocale ( LC_TIME , 'nl_NL' ); }