X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_login.php;h=df8037e3e41d26195f55e31903338969881b6a77;hb=2df9f7a53f8b1dd5164f87824a324ccb3b6634cb;hp=82a49d2b5525f730c27eec1dffc9613e6c98e651;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/modules/guest/what-sponsor_login.php b/inc/modules/guest/what-sponsor_login.php index 82a49d2b55..df8037e3e4 100644 --- a/inc/modules/guest/what-sponsor_login.php +++ b/inc/modules/guest/what-sponsor_login.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } // END - if // Add description as navigation point @@ -52,9 +52,9 @@ if ((!isExtensionActive('sponsor'))) { } $mode = ''; -if (isGetRequestElementSet('mode')) { +if (isGetRequestElementSet('do')) { // A "special" mode of the login system was requested - switch (getRequestElement('mode')) { + switch (getRequestElement('do')) { case 'activate' : $mode = 'activate'; break; // Activation link requested case 'lost_pass': $mode = 'lost_pass'; break; // Request new password } // END - switch @@ -64,10 +64,10 @@ if (isGetRequestElementSet('mode')) { if (isGetRequestElementSet('hash')) { // Lookup sponsor $result = SQL_QUERY_ESC("SELECT - `id`,`status`,`gender`,`surname`,`family`, - `company`,`position`,`tax_ident`, - `street_nr1`,`street_nr2`,`country`,`zip`,`city`,`email`,`phone`,`fax`,`cell`, - `points_amount` AS `points`,`last_payment`,`last_currency` + `id`, `status`, `gender`, `surname`, `family`, + `company`, `position`, `tax_ident`, + `street_nr1`, `street_nr2`, `country`, `zip`, `city`, `email`, `phone`, `fax`, `cell`, + `points_amount` AS `points`, `last_payment`, `last_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE @@ -148,15 +148,15 @@ LIMIT 1", SQL_FREERESULT($result); } elseif ($mode == 'activate') { // Send activation link again - if (isFormSent()) { + if (isFormSent('login')) { // Check submitted data - if (!isPostRequestElementSet('email')) unsetPostRequestElement('ok'); + if (!isPostRequestElementSet('email')) unsetPostRequestElement('login'); } - if (isFormSent()) { + if (isFormSent('login')) { // Check email $result = SQL_QUERY_ESC("SELECT - `id`,`hash`,`status`,`remote_addr`,`gender`,`surname`,`family`, + `id`, `hash`, `status`, `remote_addr`, `gender`, `surname`, `family`, UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created` FROM `{?_MYSQL_PREFIX?}_sponsor_data` @@ -199,15 +199,15 @@ LIMIT 1", } } elseif ($mode == 'lost_pass') { // Send new password - if (isFormSent()) { + if (isFormSent('login')) { // Check submitted data - if (!isPostRequestElementSet('email')) unsetPostRequestElement('ok'); + if (!isPostRequestElementSet('email')) unsetPostRequestElement('login'); } // END - if - if (isFormSent()) { + if (isFormSent('login')) { // Check email $result = SQL_QUERY_ESC("SELECT - `id`,`hash`,`remote_addr`,`gender`,`surname`,`family`, + `id`, `hash`, `remote_addr`, `gender`, `surname`, `family`, UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created` FROM `{?_MYSQL_PREFIX?}_sponsor_data` @@ -254,7 +254,7 @@ LIMIT 1", // Load form loadTemplate('guest_sponsor_lost'); } -} elseif (isFormSent()) { +} elseif (isFormSent('login')) { // Check status and login data ... $result = SQL_QUERY_ESC("SELECT `status`