* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
* *
* 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 *
* *
* 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 *
// 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 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__);
'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']),
'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']
- ),
- $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__);
$content['admins_selection'] = generateOptionList('admins', 'id', 'login', '', 'default_acl');
$content['action_selection'] = adminMenuSelectionBox_DEPRECATED('action');
$content['what_selection'] = adminMenuSelectionBox_DEPRECATED('what');
$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);
// Load template for adding new ACL
loadTemplate('admin_add_admins_acl', false, $content);