]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
MINOR: Small code improvements
[mailer.git] / inc / install-inc.php
index 7a82068c1d2decd918f7208eeb3ae822b8163e05..5782a99fd2e56b512117a0ddac82bf2f2977d2ff 100644 (file)
@@ -46,8 +46,10 @@ loadExtension('timezone', 'test');
 // 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();
@@ -65,19 +67,19 @@ if ((isGetRequestElementSet('install_page') && (getRequestElement('install_page'
                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);