<?php
/************************************************************************
- * MXChange v0.2.1 Start: 09/28/2003 *
- * =============== Last change: 06/10/2004 *
+ * Mailer v0.2.1-FINAL Start: 09/28/2003 *
+ * =================== Last change: 06/10/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-del_user.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* 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 *
addMenuDescription('admin', __FILE__);
// User exists..
-if ((isFormSent()) || ((isPostRequestElementSet('del')) && (isPostRequestElementSet(('reason'))))) {
+if ((isFormSent()) || ((isFormSent('del')) && (isPostRequestParameterSet('reason')))) {
// Is the account there?
- if (fetchUserData(getRequestElement('userid'))) {
+ if (fetchUserData(getRequestParameter('userid'))) {
// Delete user account
- deleteUserAccount(getRequestElement('userid'), postRequestElement('reason'));
+ 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\">".sprintf(getMessage('ADMIN_MEMBER_404'), getRequestElement('userid'))."</div>");
+ loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
}
-} elseif (isPostRequestElementSet('no')) {
+} elseif (isPostRequestParameterSet('no')) {
// Do not delete him...
- redirectToUrl(adminCreateUserLink(getRequestElement('userid')));
-} elseif (!isGetRequestElementSet('userid')) {
+ redirectToUrl(adminCreateUserLink(getRequestParameter('userid')));
+} elseif (!isGetRequestParameterSet('userid')) {
// Output selection form with all confirmed user accounts listed
addMemberSelectionBox();
} else {
// Realy want to delete?
- if (fetchUserData(getRequestElement('userid'))) {
+ if (fetchUserData(getRequestParameter('userid'))) {
// Prepare content
$content = array(
- 'email' => generateEmailLink(getUserData('email'), 'user_data'),
- 'surname' => getUserData('surname'),
- 'family' => getUserData('family'),
- 'header' => sprintf(getMessage('ADMIN_HEADER_DEL_ACCOUNT'), getRequestElement('userid')),
- 'text' => sprintf(getMessage('ADMIN_TEXT_DEL_ACCOUNT'), getRequestElement('userid')),
- 'userid' => getRequestElement('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\">".sprintf(getMessage('ADMIN_MEMBER_404'), getRequestElement('userid'))."</div>");
+ loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
}
}