addMenuDescription('admin', __FILE__);
// User exists..
-if ((isFormSent()) || ((isFormSent('del')) && (isPostRequestParameterSet(('reason'))))) {
+if ((isFormSent()) || ((isFormSent('del')) && (isPostRequestParameterSet('reason')))) {
// Is the account there?
if (fetchUserData(getRequestParameter('userid'))) {
// Delete user account
deleteUserAccount(getRequestParameter('userid'), postRequestParameter('reason'));
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_DEL_COMPLETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_DELETE_COMPLETED--}');
} 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'))));
}
} elseif (isPostRequestParameterSet('no')) {
// Do not delete him...
if (fetchUserData(getRequestParameter('userid'))) {
// Prepare content
$content = array(
- 'email' => generateEmailLink(getUserData('email'), 'user_data'),
- 'surname' => getUserData('surname'),
- 'family' => getUserData('family'),
- 'header' => getMaskedMessage('ADMIN_HEADER_DEL_ACCOUNT', bigintval(getRequestParameter('userid'))),
- 'text' => getMaskedMessage('ADMIN_TEXT_DEL_ACCOUNT', bigintval(getRequestParameter('userid'))),
- 'userid' => bigintval(getRequestParameter('userid'))
+ 'email' => generateEmailLink(getUserData('email'), 'user_data'),
+ 'userid' => bigintval(getRequestParameter('userid'))
);
// Display form
loadTemplate('admin_del_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'))));
}
}