// Is a userid set?
if (isGetRequestParameterSet('userid')) {
// Action not performed by default
- $ACT = false;
+ $isActive = false;
// Load user's data
if (fetchUserData(getRequestParameter('userid'))) {
} // END - if
// Prepare message
- $message = getMaskedMessage('USER_ACCOUNT_LOCKED', bigintval(getRequestParameter('userid')));
- $ACT = true;
+ $message = getMaskedMessage('ADMIN_USER_ACCOUNT_LOCKED', bigintval(getRequestParameter('userid')));
+ $isActive = true;
} elseif ((isPostRequestParameterSet('unlock')) && (getUserData('status') == 'LOCKED')) {
// Ok, unlock the account!
if (isExtensionInstalledAndNewer('user', '0.3.5')) {
} // END - if
// Prepare message
- $message = getMaskedMessage('USER_ACCOUNT_UNLOCKED', bigintval(getRequestParameter('userid')));
- $ACT = true;
+ $message = getMaskedMessage('ADMIN_USER_ACCOUNT_UNLOCKED', bigintval(getRequestParameter('userid')));
+ $isActive = true;
} elseif (isFormSent('del')) {
// Delete the account
- $ACT = true;
+ $isActive = true;
loadIncludeOnce('inc/modules/admin/what-del_user.php');
} elseif (isPostRequestParameterSet('no')) {
// Do not lock him...
case 'UNCONFIRMED': // Unconfirmed accounts cannot be unlocked!
$content['ok'] = 'del';
- $content['header'] = getMaskedMessage('ADMIN_HEADER_DEL_ACCOUNT', $content['userid']);
- $content['text'] = getMaskedMessage('ADMIN_TEXT_DEL_ACCOUNT', $content['userid']);
+ $content['header'] = getMaskedMessage('ADMIN_HEADER_DELETE_ACCOUNT', $content['userid']);
+ $content['text'] = getMaskedMessage('ADMIN_TEXT_DELETE_ACCOUNT', $content['userid']);
break;
}
loadTemplate('admin_lock_user', false, $content);
} else {
// Account does not exists!
- loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))) . '</div>');
+ loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))) . '</div>');
}
}
if (!empty($url)) {
// Reload and die...
redirectToUrl($url);
- } elseif ($ACT) {
+ } elseif ($isActive) {
// An action was performed...
if (!empty($message)) {
- loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . $message . '</div>');
+ loadTemplate('admin_settings_unsaved', false, $message);
} else {
- loadTemplate('admin_settings_saved', false, '<div class="admin_failed">{--ADMIN_USER_UPDATED--}</div>');
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_UPDATED--}');
}
}
} else {
// Account does not exists!
- loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))) . '</div>');
+ loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
}
} else {
// List all users