* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// How far is last change on his profile away from now?
if ((($content['last_update'] + getProfileLock()) > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
// You cannot change your account
// How far is last change on his profile away from now?
if ((($content['last_update'] + getProfileLock()) > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
// You cannot change your account
- $content['change'] = displayMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>', TRUE);
+ $content['change'] = returnMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>');
} else {
// He is allowed to change his profile
$content['change'] = loadTemplate('member_mydata_button', TRUE);
} else {
// He is allowed to change his profile
$content['change'] = loadTemplate('member_mydata_button', TRUE);
case 'edit': // Edit data
if (isExtensionActive('country', TRUE)) {
// New way
case 'edit': // Edit data
if (isExtensionActive('country', TRUE)) {
// New way
if (postRequestElement('email') != $content['email']) {
// Yes, but is it maybe blacklisted?
$filterData = array(
if (postRequestElement('email') != $content['email']) {
// Yes, but is it maybe blacklisted?
$filterData = array(
);
$filterData = runFilterChain('pre_update_user_data', $filterData);
// Is it blacklisted?
if ($filterData['init_done'] === FALSE) {
);
$filterData = runFilterChain('pre_update_user_data', $filterData);
// Is it blacklisted?
if ($filterData['init_done'] === FALSE) {
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `notified`='N',`last_update`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
+ sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `notified`='N',`last_update`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
array(getMemberId()), __FILE__, __LINE__);
$url = 'modules.php?module=login&what=mydata&code=' . getCode('PROFILE_UPDATED');
break;
array(getMemberId()), __FILE__, __LINE__);
$url = 'modules.php?module=login&what=mydata&code=' . getCode('PROFILE_UPDATED');
break;