X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor%2Fsettings.php;h=acdedf406624c3093ee421a1e7d57a3667ba2607;hb=a74f393a0565f0c7c59d3a4d95bc23562bdb7610;hp=238d8e6bb745ed6673f6646fc2023a4ed99ed9b2;hpb=ca378407a00fb80cafe270a4a4424f1e5636e08b;p=mailer.git diff --git a/inc/modules/sponsor/settings.php b/inc/modules/sponsor/settings.php index 238d8e6bb7..acdedf4066 100644 --- a/inc/modules/sponsor/settings.php +++ b/inc/modules/sponsor/settings.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -71,10 +72,10 @@ if (SQL_NUMROWS($result) == 1) { // Check if form was submitted or not if (isFormSent()) { // Check passwords - if (!isPostRequestElementSet('password')) { + if (!isPostRequestParameterSet('password')) { // No current password entered $message = SPONSOR_NO_CURRENT_PASSWORD_ENTERED; - } elseif (md5(postRequestElement('password')) != getSession('sponsorpass')) { + } elseif (md5(postRequestParameter('password')) != getSession('sponsorpass')) { // Entered password didn't match password in DB $message = SPONSOR_CURRENT_PASSWORD_DIDNOT_MATCH_DB; } else { @@ -87,11 +88,11 @@ if (SQL_NUMROWS($result) == 1) { // Remove all (maybe spoofed) unsafe data from array foreach ($UNSAFE as $remove) { - unsetPostRequestElement($remove); + unsetPostRequestParameter($remove); } // END - if // Set last change timestamp - setPostRequestElement('last_change', 'UNIX_TIMESTAMP()'); + setPostRequestParameter('last_change', 'UNIX_TIMESTAMP()'); // Save data $message = saveSponsorData(postRequestArray(), $content);