X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-login.php;h=deb31075c91ff622f5e3152e9f0ded0ce674a6b3;hb=330dbb3e2b34450cd1665497506455e195a0a166;hp=f2c6938e8784ff7a0e76f501174082d67fb3c797;hpb=e46fa203829954370ce793156c78ce5c4600d020;p=mailer.git diff --git a/inc/modules/guest/what-login.php b/inc/modules/guest/what-login.php index f2c6938e87..deb31075c9 100644 --- a/inc/modules/guest/what-login.php +++ b/inc/modules/guest/what-login.php @@ -15,11 +15,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,13 +39,13 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Add description as navigation point -addMenuDescription('guest', __FILE__); +addYouAreHereLink('guest', __FILE__); if ((!isExtensionActive('user')) && (!isAdmin())) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user')); + displayMessage(generateExtensionInactiveNotInstalledMessage('user')); return; } // END - if @@ -64,7 +62,7 @@ if ((isMemberIdSet()) && (isSessionVariableSet('u_hash'))) { $userid = getMemberId(); } elseif ((isPostRequestParameterSet('id')) && (isPostRequestParameterSet('password')) && (isFormSent())) { // Set userid and crypt password when login data was submitted - if (isExtensionActive('nickname')) { + if ((isExtensionActive('nickname')) && (isNicknameUsed(postRequestParameter('id')))) { // Nickname entered $userid = SQL_ESCAPE(postRequestParameter('id')); } else { @@ -123,7 +121,7 @@ if (!empty($errorCode)) { // @TODO Move this HTML code into a template $content['message'] = ' - ' . getMessageFromErrorCode($errorCode) . ' + ' . getMessageFromErrorCode($errorCode) . ' '; } // END - if