- define('MAIN_TITLE', 'Your mail-exchanger title');
- define('SLOGAN' , 'Your cool slogan here');
- define('WEBMASTER' , 'you@some-hoster.tld.invalid');
-} else {
- // Problem in application detected
- debug_report_bug('Wether we are not installing nor config-local.php is created!');
+ setConfigEntry('MAIN_TITLE', 'Your mail-exchanger title');
+ setConfigEntry('SLOGAN' , 'Your cool slogan here');
+ setConfigEntry('WEBMASTER' , 'you@some-hoster.example');
+
+ // Set output mode here
+ setConfigEntry('OUTPUT_MODE', 'render');
+}
+
+// Check if the user setups his database login stuff...
+if ((empty($GLOBALS['mysql']['login'])) && (!isInstalling()) && (!isInstallationPhase()) && (!isGetRequestElementSet('installing')) && (isInstalled())) {
+ // No login entered and outside installation mode
+ outputHtml('<strong>{--MAILER_WARNING--}:</strong>');
+ if (isInstalled()) {
+ // You have changed my configuration file!
+ reportBug(__FILE__, __LINE__, '{--DIE_CONFIG_CHANGED_YOU--}');
+ } else {
+ // Please run the installation script (maybe again)
+ reportBug(__FILE__, __LINE__, '{--DIE_RUN_INSTALLER_MYSQL--}');
+ }
+} elseif ((!isInstalling()) && (!isInstallationPhase()) && (empty($GLOBALS['mysql']['password'])) && (getConfig('WARN_NO_PASS') == 'Y')) {
+ // No database password entered
+ displayMessage('<div class="warning">{--MAILER_WARNING--}:</div> {--WARN_NULL_PASSWORD--}');