// How far is last change on his profile away from now?
if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
- $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0);
+ $content['update_check'] = sprintf(getMessage('MEMBER_PROFILE_LOCKED'), generateDateTime($content['update_check'] + getConfig('profile_lock'), 0));
+
// You cannot change your account
loadTemplate('member_mydata_locked', false, $content);
} else {
// Free result
SQL_FREERESULT($result);
- $content['last_change'] = $content['last_update'] + getConfig('profile_lock');
+ $content['update_check'] = $content['last_update'] + getConfig('profile_lock');
// How far is last change on his profile away from now?
- if (($content['last_change'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
- $content['last_change'] = generateDateTime($content['last_change'] + getConfig('profile_lock'), 0);
+ if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
+ $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0);
// You cannot change your account
- loadTemplate('member_mydata_locked');
+ loadTemplate('member_mydata_locked', false, $content);
} elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
// Invalid email address!
loadTemplate('admin_settings_saved', false, getMessage('INVALID_EMAIL_ADDRESS_ENTERED'));