X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=897adebc57d8c35d5f5947fdd8b1f224f2b7017a;hb=5f53ccec1071ab7ab0134f928c2caf3fd3d1a14f;hp=7a82068c1d2decd918f7208eeb3ae822b8163e05;hpb=67f963c379c88db465c1d4b7c6390adf422db280;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 7a82068c1d..897adebc57 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Funktionen fuer die Installationsroutine * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -36,7 +31,7 @@ ************************************************************************/ // Some security stuff... -if ((!defined('__SECURITY')) || (!isInstallationPhase())) { +if ((!defined('__SECURITY')) || (!isInstaller())) { die(); } // END - if @@ -46,8 +41,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 +62,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('
{--INSTALLER_SMTP_PASSWORD1_EMPTY--}
'); 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('
{--INSTALLER_SMTP_PASSWORD2_EMPTY--}
'); 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('
{--INSTALLER_SMTP_PASS_MISMATCH--}
'); setGetRequestElement('install_page', 3); @@ -95,7 +92,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) { loadIncludeOnce($inc); } else { // Not found, may be invalid page - logDebugMessage(__FILE__, __LINE__, sprintf("Wrong install_page=%s detected", getRequestElement('install_page'))); + logDebugMessage(__FILE__, __LINE__, sprintf('Wrong install_page=%s detected', getRequestElement('install_page'))); addTemplateToInstallContent('admin_settings_unsaved', '{%message,INSTALLER_WRONG_PAGE=' . getRequestElement('install_page') . '%}'); } } else {