]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_edit.php
A lot has been rewritten, ext-teams added, ext-forced continued:
[mailer.git] / inc / modules / admin / what-admins_edit.php
index 7cd1e14fbbd44694f1ec5f7a35df2af10e62f895..cc6320ec7019fd706ebc1e7559fb0cbbcfaf636a 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -41,10 +41,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // 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 (!isPostRequestParameterSet('sel')) {
+       setPostRequestParameter('sel', array());
+} // END - if
 
 // Check if direct admin account was selected
 if (isGetRequestParameterSet('admin')) {
@@ -59,14 +61,14 @@ if (isGetRequestParameterSet('admin')) {
 if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        // Edit account(s)
        adminsEditAdminAccount(postRequestArray());
-} elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) {
+} elseif ((isFormSent('do_edit')) && (count(postRequestParameter('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