]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_edit.php
Rewrites/fixes for handling config entries in SQLs
[mailer.git] / inc / modules / admin / what-admins_edit.php
index 1f37d278e96e684638309c360e83842aa754ce81..05747bc21edfd18a0604869df6bc6b6525897c2a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 04/18/2004 *
- * ================                             Last change: 04/18/2004 *
+ * ===================                          Last change: 04/18/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-admins_edit.php                             *
@@ -18,6 +18,7 @@
  * 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 *
@@ -45,29 +46,29 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addMenuDescription('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')) && (countPostSelection() > 0)) {
        // 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('del')) && (countPostSelection() > 0)) {
        // Show admin accounts for deletetion
        adminsDeleteAdminAccount(postRequestArray());
 } else {
-       if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) {
+       if ((isFormSent('remove')) && (countPostSelection() > 0)) {
                // Remove accounts now
                adminsRemoveAdminAccount(postRequestArray());
        } // END - if