X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=1f37d278e96e684638309c360e83842aa754ce81;hb=d87e2e7b10de60b705c6029d82eec68bac637dae;hp=45c18bfeac8a5b0d89012acaa1258a5ae06f71e3;hpb=d7c7aae61e567ecf3f13c1218550c06a7035f58e;p=mailer.git diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index 45c18bfeac..1f37d278e9 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -1,6 +1,6 @@ '1')); + setRequestPostElement('edit', 1); + setRequestPostElement('sel', array($adminId => 1)); } // END - if -if ((REQUEST_ISSET_POST('edit')) && (countPostSelection() > 0)) { +if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) { // Edit account(s) - adminsEditAdminAccount(REQUEST_POST_ARRAY()); -} elseif ((REQUEST_ISSET_POST('change')) && (count(REQUEST_POST('login')) > 0)) { + adminsEditAdminAccount(postRequestArray()); +} elseif ((isPostRequestElementSet('change')) && (count(postRequestElement('login')) > 0)) { // Change admin accounts - adminsChangeAdminAccount(REQUEST_POST_ARRAY()); -} elseif ((REQUEST_ISSET_POST('del')) && (countPostSelection() > 0)) { + adminsChangeAdminAccount(postRequestArray()); +} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) { // Show admin accounts for deletetion - adminsDeleteAdminAccount(REQUEST_POST_ARRAY()); + adminsDeleteAdminAccount(postRequestArray()); } else { - if ((REQUEST_ISSET_POST('remove')) && (countPostSelection() > 0)) { + if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) { // Remove accounts now - adminsRemoveAdminAccount(REQUEST_POST_ARRAY()); + adminsRemoveAdminAccount(postRequestArray()); } // END - if // List all admin accounts adminsListAdminAccounts(); } -// +// [EOF] ?>