]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_edit.php
Renamed function so it might be more understandable
[mailer.git] / inc / modules / admin / what-admins_edit.php
index 4a638719c96f01766b712fcbceeabeb1b11c9456..e779bc00e44c3d2b25aa12d08c18e497048df717 100644 (file)
  * $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                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 // 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 (!isPostRequestElementSet('sel')) setRequestPostElement('sel', array());
+if (!isPostRequestParameterSet('sel')) setPostRequestParameter('sel', array());
 
 // Check if direct admin account was selected
-if (isGetRequestElementSet('admin')) {
+if (isGetRequestParameterSet('admin')) {
        // Secure id number
-       $adminId = bigintval(getRequestElement('admin'));
+       $adminId = bigintval(getRequestParameter('admin'));
 
        // Set required fields
-       setRequestPostElement('edit', 1);
-       setRequestPostElement('sel', array($adminId => 1));
+       setPostRequestParameter('edit', 1);
+       setPostRequestParameter('sel', array($adminId => 1));
 } // END - if
 
-if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) {
+if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        // Edit account(s)
        adminsEditAdminAccount(postRequestArray());
-} elseif ((isPostRequestElementSet('change')) && (count(postRequestElement('login')) > 0)) {
+} elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) {
        // Change admin accounts
        adminsChangeAdminAccount(postRequestArray());
-} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
        // Show admin accounts for deletetion
        adminsDeleteAdminAccount(postRequestArray());
 } else {
-       if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) {
+       if ((isFormSent('remove')) && (ifPostContainsSelections())) {
                // Remove accounts now
                adminsRemoveAdminAccount(postRequestArray());
        } // END - if