X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=8ac0ecb36ee12375da83e3c02265c08dac657b22;hb=928e9aedd8248545a9fef27c75a5ba016ad1d61b;hp=33cc174e1b5acdc91d033eb9fce72481982fffb0;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6;p=mailer.git diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index 33cc174e1b..8ac0ecb36e 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -14,11 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * 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 * @@ -39,35 +38,37 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +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 ((isPostRequestParameterSet('edit')) && (countPostSelection() > 0)) { +if ((isFormSent('edit')) && (ifPostContainsSelections())) { // Edit account(s) adminsEditAdminAccount(postRequestArray()); -} elseif ((isPostRequestParameterSet('change')) && (count(postRequestParameter('login')) > 0)) { +} elseif ((isFormSent('do_edit')) && (ifPostContainsSelections('login'))) { // Change admin accounts adminsChangeAdminAccount(postRequestArray()); -} elseif ((isPostRequestParameterSet('del')) && (countPostSelection() > 0)) { +} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) { // Show admin accounts for deletetion adminsDeleteAdminAccount(postRequestArray()); } else { - if ((isPostRequestParameterSet('remove')) && (countPostSelection() > 0)) { + if ((isFormSent('do_delete')) && (ifPostContainsSelections())) { // Remove accounts now adminsRemoveAdminAccount(postRequestArray()); } // END - if