]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bank_package.php
'what' files should be loaded only once
[mailer.git] / inc / modules / admin / what-list_bank_package.php
index bb2fa1fbb1d76aee1f895375d1abe16a6a7f8b18..33e0b206c093b74183e57cf377013f40aaea5a79 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -45,16 +45,17 @@ addYouAreHereLink('admin', __FILE__);
 
 // Check if there is enougth selected
 $show = true;
-if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id'))) && (count(postRequestParameter('id')) > 0)) {
+if ((isPostRequestElementSet('id')) && (is_array(postRequestElement('id'))) && (count(postRequestElement('id')) > 0)) {
        // Okay, which button was pressed?
        if (isFormSent('change')) {
                // Change permissions
-               adminChangeActivationStatus(postRequestParameter('id'), 'bank_packages', 'package_active');
+               adminChangeActivationStatus(postRequestElement('id'), 'bank_packages', 'package_active');
        } elseif (isFormSent('edit')) {
                // Delete entries (with confirmation)
                adminEditEntriesConfirm(
-                       postRequestParameter('id'),
-                       'bank_packages',
+                       array('id'),
+                       array('bank_packages'),
+                       postRequestElement('id'),
                        array(
                                'id',
                                'title',
@@ -111,18 +112,20 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))
        } elseif (isFormSent('do_edit')) {
                // Delete entries (with confirmation)
                adminEditEntriesConfirm(
-                       postRequestParameter('id'),
-                       'bank_packages',
+                       array('id'),
+                       array('bank_packages'),
+                       postRequestElement('id'),
                        array(),
                        array(),
                        array(),
-                       true
+                       array(true)
                );
        } elseif (isFormSent('delete')) {
                // Delete entries (with confirmation)
                adminDeleteEntriesConfirm(
-                       postRequestParameter('id'),
-                       'bank_packages',
+                       array('id'),
+                       array('bank_packages'),
+                       postRequestElement('id'),
                        array(
                                'id',
                                'title',
@@ -146,12 +149,13 @@ if ((isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))
        } elseif (isFormSent('do_delete')) {
                // Delete entries (with confirmation)
                adminDeleteEntriesConfirm(
-                       postRequestParameter('id'),
-                       'bank_packages',
+                       array('id'),
+                       array('bank_packages'),
+                       postRequestElement('id'),
                        array(),
                        array(),
                        array(),
-                       true
+                       array(true)
                );
        }
 } // END - if
@@ -161,7 +165,7 @@ if ($show === false) return;
 
 // Load all banking packages from DB
 $result = SQL_QUERY("SELECT
-       `id`, `title`, `description`, `account_fee`, `package_active`, `interest_plus`, `interest_minus`
+       `id`,`title`,`description`,`account_fee`,`package_active`,`interest_plus`,`interest_minus`
 FROM
        `{?_MYSQL_PREFIX?}_bank_packages`
 ORDER BY