www/config.php.dist

Wed, 06 Dec 2023 20:26:00 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 06 Dec 2023 20:26:00 +0100
changeset 855
2d328a2a4025
parent 185
4c25db9e8102
permissions
-rw-r--r--

Fixed init scripts names in Makefile. Update crontasks to use the database to check the log entries for products.

<?php

/*
 * Check for development server
 */
if (isset($_SERVER['SERVER_NAME']) && ( strcmp($_SERVER['SERVER_NAME'], "seaport.mbse.ym") == 0))  {

	define ('DBASE_NAME', 'bms_dev');
	define ('DBASE_HOST', 'lx02');
	define ('DBASE_USER', 'bms_dev');
	define ('DBASE_PASS', 'bms_dev');
	define ('DBASE_CHARSET', 'utf8');

	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 {

        define ('DBASE_NAME', 'bms_dev');
	define ('DBASE_HOST', 'lx02');
	define ('DBASE_USER', 'bms_dev');
	define ('DBASE_PASS', 'bms_dev');
	define ('DBASE_CHARSET', 'utf8');

	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' );

}

mercurial