X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_admins_acls.php;h=65c605e1b348cd2a28fda0806b2cd288ad2c3dbf;hb=5c159f0b199d12742dcd65d5d638cb504ee93c66;hp=a5bbe08847a692f825bd44b2ae6abcd346635bb7;hpb=2379934be6a196a54f4155bb8e24c49b20736969;p=mailer.git diff --git a/inc/modules/admin/what-list_admins_acls.php b/inc/modules/admin/what-list_admins_acls.php index a5bbe08847..65c605e1b3 100644 --- a/inc/modules/admin/what-list_admins_acls.php +++ b/inc/modules/admin/what-list_admins_acls.php @@ -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);