X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-config_admins.php;h=a509de3194a6ecff32560d4898228493e6bed0f7;hb=508228c85fba8448d00865b1639cb8cd7a69e457;hp=89a973b41a448e40402111cc62a12ff8a6bf5968;hpb=c78089215285d52d483760699d07a96dfbbe0671;p=mailer.git diff --git a/inc/modules/admin/what-config_admins.php b/inc/modules/admin/what-config_admins.php index 89a973b41a..a509de3194 100644 --- a/inc/modules/admin/what-config_admins.php +++ b/inc/modules/admin/what-config_admins.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Admin-ACLs einstellen * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -45,7 +50,7 @@ if (REQUEST_ISSET_POST('sel')) $SEL = SELECTION_COUNT(REQUEST_POST('sel')); if ((REQUEST_ISSET_POST('edit')) && ($SEL > 0)) { // Edit ACLs - $SW = 2; $OUT = ""; + $OUT = ""; $SW = 2; foreach (REQUEST_POST('sel') as $id => $selected) { // Load data for the ID $result = SQL_QUERY_ESC("SELECT admin_id, action_menu, what_menu, access_mode FROM `{!_MYSQL_PREFIX!}_admins_acls` WHERE id=%s LIMIT 1", @@ -105,7 +110,7 @@ if ((REQUEST_ISSET_POST('edit')) && ($SEL > 0)) { LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_ADMINS_ENTRIES_CHANGED')); } elseif ((REQUEST_ISSET_POST('del')) && ($SEL > 0)) { // Delete ACLs - $SW = 2; $OUT = ""; + $OUT = ""; $SW = 2; foreach (REQUEST_POST('sel') as $id => $selected) { // Load data for the ID $result = SQL_QUERY_ESC("SELECT admin_id, action_menu, what_menu, access_mode FROM `{!_MYSQL_PREFIX!}_admins_acls` WHERE id=%s LIMIT 1", @@ -216,27 +221,25 @@ VALUES ('%s','%s','%s','%s')", } else { // List all ACLs $result_acls = SQL_QUERY("SELECT id, admin_id, action_menu, what_menu, access_mode FROM `{!_MYSQL_PREFIX!}_admins_acls` ORDER BY admin_id, id", __FILE__, __LINE__); - if (SQL_NUMROWS($result_acls) > 0) - { + if (SQL_NUMROWS($result_acls) > 0) { // List ACLs - $SW = 2; $OUT = ""; - while (list($id, $admin, $act, $wht, $mode) = SQL_FETCHROW($result_acls)) - { + $OUT = ""; $SW = 2; + while ($content = SQL_FETCHARRAY($result_acls)) { // Prepare variables - if (empty($act)) $act = "---"; - if (empty($wht)) $wht = "---"; + if (empty($content['action_menu'])) $content['action_menu'] = "---"; + if (empty($content['what_menu'])) $content['what_menu'] = "---"; // Get mode - $mode = constant('ADMINS_'.strtoupper($mode).'_MODE'); + $content['access_mode'] = constant('ADMINS_'.strtoupper($content['access_mode']).'_MODE'); // Prepare data for the row template $content = array( 'sw' => $SW, - 'id' => $id, - 'admin' => GENERATE_AID_LINK($admin), - 'action' => $act, - 'what' => $wht, - 'mode' => $mode, + 'id' => $content['id'], + 'admin' => GENERATE_AID_LINK($content['admin_id']), + 'action' => $content['action_menu'], + 'what' => $content['what_menu'], + 'mode' => $content['access_mode'], ); // Load row template and switch colors