{--INSTALLER_SMTP_HOSTNAME_EMPTY--}');
setGetRequestElement('install_page', 3);
} // END - if
if ((!isPostRequestElementSet('smtp_pass1')) && (isPostRequestElementSet('smtp_pass2'))) {
// Password is empty
addToInstallContent('
{--INSTALLER_SMTP_PASSWORD1_EMPTY--}
');
setGetRequestElement('install_page', 3);
} // END - if
if ((isPostRequestElementSet('smtp_pass1')) && (!isPostRequestElementSet('smtp_pass2'))) {
// Password repeat is empty
addToInstallContent('
{--INSTALLER_SMTP_PASSWORD2_EMPTY--}
');
setGetRequestElement('install_page', 3);
} // END - if
if (postRequestElement('smtp_pass1') != postRequestElement('smtp_pass1')) {
// Passwords are not matching
addToInstallContent('
{--INSTALLER_SMTP_PASS_MISMATCH--}
');
setGetRequestElement('install_page', 3);
} // END - if
} // END - if
// 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');
// Is the include file there?
if (isIncludeReadable($inc)) {
// Then load it
loadIncludeOnce($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--}');
}
} else {
// Already installed!
addFatalMessage(__FILE__, __LINE__, '{--MAILER_ALREADY_INSTALLED--}');
}
// [EOF]
?>