// Set config entry
setConfigEntry('timezone', 'Europe/Berlin');
-// And init timezone
+// Init some things
FILTER_INIT_TIMEZONE(array());
+FILTER_INIT_RANDOMIZER();
+FILTER_INIT_RANDOM_NUMBER();
// Init variables
$GLOBALS['install_mysql'] = array();
setGetRequestElement('install_page', 3);
} // END - if
- if ((!isPostRequestElementSet('smtp_pass1')) && (isPostRequestElementSet('smtp_pass2'))) {
+ if ((!isPostRequestElementSet('smtp_password1')) && (isPostRequestElementSet('smtp_password2'))) {
// Password is empty
addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD1_EMPTY--}</div>');
setGetRequestElement('install_page', 3);
} // END - if
- if ((isPostRequestElementSet('smtp_pass1')) && (!isPostRequestElementSet('smtp_pass2'))) {
+ if ((isPostRequestElementSet('smtp_password1')) && (!isPostRequestElementSet('smtp_password2'))) {
// Password repeat is empty
addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD2_EMPTY--}</div>');
setGetRequestElement('install_page', 3);
} // END - if
- if (postRequestElement('smtp_pass1') != postRequestElement('smtp_pass1')) {
+ if (postRequestElement('smtp_password1') != postRequestElement('smtp_password1')) {
// Passwords are not matching
addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASS_MISMATCH--}</div>');
setGetRequestElement('install_page', 3);
// Is the mailer installed or no admin registered so far?
if ((!isInstalled()) || (!isAdminRegistered())) {
// Construct include file name
- $inc = 'inc/install/install_page_' . getRequestElement('install_page');
+ $inc = 'inc/install/install_page_' . getRequestElement('install_page') . '.php';
// Is the include file there?
if (isIncludeReadable($inc)) {
} else {
// Not found, may be invalid page
logDebugMessage(__FILE__, __LINE__, sprintf("Wrong install_page=%s detected", getRequestElement('install_page')));
- addTemplateToInstallContent('admin_settings_unsaved', '{--WRONG_PAGE--}');
+ addTemplateToInstallContent('admin_settings_unsaved', '{%message,INSTALLER_WRONG_PAGE=' . getRequestElement('install_page') . '%}');
}
} else {
// Already installed!