* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
addYouAreHereLink('admin', __FILE__);
// Set selection data to empty array when it is empty
-if (!isPostRequestParameterSet('sel')) {
- setPostRequestParameter('sel', array());
+if (!isPostRequestElementSet('sel')) {
+ setPostRequestElement('sel', array());
} // END - if
// Check if direct admin account was selected
-if (isGetRequestParameterSet('admin')) {
+if (isGetRequestElementSet('admin')) {
// Secure id number
- $adminId = bigintval(getRequestParameter('admin'));
+ $adminId = bigintval(getRequestElement('admin'));
// Set required fields
- setPostRequestParameter('edit', 1);
- setPostRequestParameter('sel', array($adminId => 1));
+ setPostRequestElement('edit', 1);
+ setPostRequestElement('sel', array($adminId => 1));
} // END - if
if ((isFormSent('edit')) && (ifPostContainsSelections())) {
// Edit account(s)
adminsEditAdminAccount(postRequestArray());
-} elseif ((isFormSent('do_edit')) && (count(postRequestParameter('login')) > 0)) {
+} elseif ((isFormSent('do_edit')) && (ifPostContainsSelections('login'))) {
// Change admin accounts
adminsChangeAdminAccount(postRequestArray());
} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {