* @TODO Add support for ext-country *
* -------------------------------------------------------------------- *
* 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 *
// Fix a notice
$result_main = false;
-if (isGetRequestElementSet('userid')) {
+if (isGetRequestParameterSet('userid')) {
// Load user entry
$result_main = SQL_QUERY_ESC("SELECT
`userid`, `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`,
`userid`=%s
LIMIT 1",
array(
- bigintval(getRequestElement('userid'))
+ bigintval(getRequestParameter('userid'))
), __FILE__, __LINE__);
} // END - if
-if ((SQL_NUMROWS($result_main) == 1) || (!isGetRequestElementSet('userid'))) {
+if ((!isGetRequestParameterSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
// User found
- if (!isGetRequestElementSet('userid')) {
+ if (!isGetRequestParameterSet('userid')) {
// Output selection form with all confirmed user accounts listed
addMemberSelectionBox();
- } elseif (isPostRequestElementSet('edit')) {
+ } elseif (isFormSent('edit')) {
// Ok, change the account...
$updateUser = false; $add = '';
- if ((!isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass2'))) {
+ if ((!isPostRequestParameterSet('pass1')) && (!isPostRequestParameterSet('pass2'))) {
// Don't change the password
$updateUser = true;
- } elseif ((postRequestElement('pass1') == postRequestElement('pass2'))) {
+ } elseif ((postRequestParameter('pass1') == postRequestParameter('pass2'))) {
// Change the password
$updateUser = true;
- $add = ", `password`='" . generateHash(postRequestElement('pass1')) . "'";
+ $add = ", `password`='" . generateHash(postRequestParameter('pass1')) . "'";
}
if ($updateUser === true) {
`userid`=%s
LIMIT 1",
array(
- substr(postRequestElement('gender'), 0, 1),
- postRequestElement('surname'),
- postRequestElement('family'),
- postRequestElement('street_nr'),
- postRequestElement('country'),
- bigintval(postRequestElement('zip')),
- postRequestElement('city'),
- postRequestElement('email'),
- bigintval(getRequestElement('userid')),
+ substr(postRequestParameter('gender'), 0, 1),
+ postRequestParameter('surname'),
+ postRequestParameter('family'),
+ postRequestParameter('street_nr'),
+ postRequestParameter('country'),
+ bigintval(postRequestParameter('zip')),
+ postRequestParameter('city'),
+ postRequestParameter('email'),
+ bigintval(getRequestParameter('userid')),
), __FILE__, __LINE__);
- $content = getMessage('USER_ACCOUNT_SAVED');
+ $content = '{--ADMIN_USER_ACCOUNT_SAVED--}';
} else {
// Problem while saving data
- $content = getMessage('USER_ACCOUNT_NOT_SAVED');
+ $content = '{--ADMIN_USER_ACCOUNT_NOT_SAVED--}';
}
// Load template
}
} else {
// Account does not exists!
- loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', getRequestElement('userid')) . '</div>');
+ loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
}
// Free the result