* 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 *
// 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 {
// Remove all (maybe spoofed) unsafe data from array
foreach ($UNSAFE as $remove) {
- unsetPostRequestElement($remove);
+ unsetPostRequestParameter($remove);
} // END - if
// Set last change timestamp
- setRequestPostElement('last_change', 'UNIX_TIMESTAMP()');
+ setPostRequestParameter('last_change', 'UNIX_TIMESTAMP()');
// Save data
$message = saveSponsorData(postRequestArray(), $content);
} else {
// Locked or so?
$STATUS = sponsorTranslateUserStatus($content['status']);
- $OUT = loadTemplate('admin_settings_saved', true, sprintf(getMessage('SPONSOR_ACCOUNT_FAILED'), $STATUS));
+ $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
}
} else {
// Sponsor account not found!
- $OUT = loadTemplate('admin_settings_saved', true, sprintf(getMessage('SPONSOR_ACCOUNT_404'), getSession('sponsorid')));
+ $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsorid')));
}
// Free memory