X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=8f45314ccc77ca581cd723ea75c7af4cfe486267;hb=de86872d161d669a054aa8ccbc949b46eeb42e1b;hp=eb06ab2e8a5b80baf1ff29e8a84753e40d1a2a85;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index eb06ab2e8a..8f45314ccc 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -44,29 +44,31 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { 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('change')) && (count(postRequestParameter('login')) > 0)) { +} elseif ((isFormSent('do_edit')) && (count(postRequestElement('login')) > 0)) { // Change admin accounts adminsChangeAdminAccount(postRequestArray()); } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) { // Show admin accounts for deletetion adminsDeleteAdminAccount(postRequestArray()); } else { - if ((isFormSent('remove')) && (ifPostContainsSelections())) { + if ((isFormSent('do_delete')) && (ifPostContainsSelections())) { // Remove accounts now adminsRemoveAdminAccount(postRequestArray()); } // END - if