]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/settings.php
ext-validator introduces, several HTML cleanups, fixes for e.g. user email link,...
[mailer.git] / inc / modules / sponsor / settings.php
index 238d8e6bb745ed6673f6646fc2023a4ed99ed9b2..acdedf406624c3093ee421a1e7d57a3667ba2607 100644 (file)
@@ -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);