]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_admins_acls.php
Admin menu prepared for AJAX requests:
[mailer.git] / inc / modules / admin / what-list_admins_acls.php
index a5bbe08847a692f825bd44b2ae6abcd346635bb7..65c605e1b348cd2a28fda0806b2cd288ad2c3dbf 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 *
@@ -50,6 +50,8 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
                // Load data for the id
                $result = SQL_QUERY_ESC("SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
+
+               // Load all data
                $content = SQL_FETCHARRAY($result);
 
                // Free result
@@ -61,15 +63,6 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
                        'admins_selection' => generateOptionList('admins', 'id', 'login', $content['admin_id'], 'default_acl'),
                        'action_selection' => adminMenuSelectionBox_DEPRECATED('action', $content['action_menu'], $content['id']),
                        'what_selection'   => adminMenuSelectionBox_DEPRECATED('what', $content['what_menu'], $content['id']),
-                       'mode_options'     => generateOptionList(
-                               '/ARRAY/',
-                               array('allow', 'deny'),
-                               array(
-                                       '{--ADMIN_ADMINS_ACCESS_MODE_ALLOW--}',
-                                       '{--ADMIN_ADMINS_ACCESS_MODE_DENY--}'
-                               ),
-                               $content['access_mode']
-                       ),
                );
 
                // Load row template
@@ -206,7 +199,7 @@ VALUES (%s,'%s','%s','%s')",
        displayMessage($content);
 } else {
        // List all ACLs
-       $result = SQL_QUERY('SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC, `id` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`,`admin_id`,`action_menu`,`what_menu`,`access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC,`id` ASC', __FILE__, __LINE__);
 
        // Entries found?
        if (!SQL_HASZERONUMS($result)) {
@@ -231,14 +224,6 @@ VALUES (%s,'%s','%s','%s')",
        $content['admins_selection'] = generateOptionList('admins', 'id', 'login', '', 'default_acl');
        $content['action_selection'] = adminMenuSelectionBox_DEPRECATED('action');
        $content['what_selection']   = adminMenuSelectionBox_DEPRECATED('what');
-       $content['mode_options']     = generateOptionList(
-               '/ARRAY/',
-               array('allow', 'deny'),
-               array(
-                       '{--ADMIN_ADMINS_ACCESS_MODE_ALLOW--}',
-                       '{--ADMIN_ADMINS_ACCESS_MODE_DENY--}'
-               )
-       );
 
        // Load template for adding new ACL
        loadTemplate('admin_add_admins_acl', false, $content);