X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=8da2ac029298eafe51c457a65eb16212b32d2539;hp=e0528331ae3be7fd0ed6ab9b7a8c913767d25495;hb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;hpb=81bfbcd72e424060ea1223b49ad92fcfa150f361 diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index e0528331ae..8da2ac0292 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -17,7 +17,7 @@ * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * - * Copyright (c) 2003 - 2008 by Roland Haeder * + * Copyright (c) 2003 - 2009 by Roland Haeder * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,45 +37,44 @@ ************************************************************************/ // Some security stuff... -if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; - require($INC); +if ((!defined('__SECURITY')) || (!isAdmin())) { + die(); } // Add description as navigation point -ADD_DESCR('admin', __FILE__); +addMenuDescription('admin', __FILE__); // Set selection data to empty array when it is empty -if (!REQUEST_ISSET_POST('sel')) REQUEST_SET_POST('sel', array()); +if (!isPostRequestElementSet('sel')) setRequestPostElement('sel', array()); // Check if direct admin account was selected -if (REQUEST_ISSET_GET('admin')) { +if (isGetRequestElementSet('admin')) { // Secure ID number - $aid = bigintval(REQUEST_GET('admin')); + $adminId = bigintval(getRequestElement('admin')); // Set required fields - REQUEST_SET_POST('edit', '1'); - REQUEST_SET_POST(array('sel', $aid), '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] ?>