<?php
/************************************************************************
- * MXChange v0.2.1 Start: 04/18/2004 *
- * ================ Last change: 04/18/2004 *
+ * Mailer v0.2.1-FINAL Start: 04/18/2004 *
+ * =================== Last change: 04/18/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-admins_edit.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__);
// Set selection data to empty array when it is empty
-if (!isPostRequestElementSet('sel')) setRequestPostElement('sel', array());
+if (!isPostRequestParameterSet('sel')) setPostRequestParameter('sel', array());
// Check if direct admin account was selected
-if (isGetRequestElementSet('admin')) {
- // Secure ID number
- $adminId = bigintval(getRequestElement('admin'));
+if (isGetRequestParameterSet('admin')) {
+ // Secure id number
+ $adminId = bigintval(getRequestParameter('admin'));
// Set required fields
- setRequestPostElement('edit', 1);
- setRequestPostElement('sel', array($adminId => 1));
+ setPostRequestParameter('edit', 1);
+ setPostRequestParameter('sel', array($adminId => 1));
} // END - if
-if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) {
+if ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) {
// Edit account(s)
adminsEditAdminAccount(postRequestArray());
-} elseif ((isPostRequestElementSet('change')) && (count(postRequestElement('login')) > 0)) {
+} elseif ((isPostRequestParameterSet('change')) && (count(postRequestParameter('login')) > 0)) {
// Change admin accounts
adminsChangeAdminAccount(postRequestArray());
-} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) {
+} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) {
// Show admin accounts for deletetion
adminsDeleteAdminAccount(postRequestArray());
} else {
- if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) {
+ if ((isPostRequestParameterSet('remove')) && (countPostSelection() > 0)) {
// Remove accounts now
adminsRemoveAdminAccount(postRequestArray());
} // END - if