1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 15:05:43 +02:00

Prelim administrators management layout ...

git-svn-id: file:///svn/phpbb/trunk@2789 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-07-29 18:08:58 +00:00
parent 33a9c6df9f
commit cf60a775f4
2 changed files with 71 additions and 82 deletions

View File

@ -258,42 +258,14 @@ if ( !empty($forum_id) || $mode == 'administrators' )
case 'administrators': case 'administrators':
$where_user_sql = ''; $sql = "SELECT group_id, group_name
if ( !empty($HTTP_POST_VARS['users']) ) FROM " . GROUPS_TABLE;
$result = $db->sql_query($sql);
$group_list = '';
while ( $row = $db->sql_fetchrow($result) )
{ {
if ( is_array($HTTP_POST_VARS['users']) ) $group_list .= '<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>';
{
foreach ($HTTP_POST_VARS['users'] as $user_id)
{
$where_user_sql .= ( ( $where_user_sql != '' ) ? ', ' : '' ) . intval($user_id);
}
}
else
{
$where_user_sql = intval($HTTP_POST_VARS['users']);
}
$where_user_sql = " AND u.user_id IN ($where_user_sql)";
}
$discrete_user_sql = ( empty($HTTP_POST_VARS['discrete']) || empty($HTTP_POST_VARS['users']) || is_array($HTTP_POST_VARS['users']) ) ? ' DISTINCT ' : 'ao.auth_option, ';
$where_groups_sql = '';
if ( !empty($HTTP_POST_VARS['groups']) )
{
if ( is_array($HTTP_POST_VARS['groups']) )
{
foreach ($HTTP_POST_VARS['groups'] as $group_id)
{
$where_groups_sql .= ( ( $where_groups_sql != '' ) ? ', ' : '' ) . intval($group_idf);
}
}
else
{
$where_groups_sql = intval($HTTP_POST_VARS['groups']);
}
$where_groups_sql = " AND g.group_id IN ($where_groups_sql)";
} }
?> ?>
@ -335,6 +307,17 @@ if ( !empty($forum_id) || $mode == 'administrators' )
} }
else else
{ {
$where_user_sql = '';
if ( !empty($HTTP_POST_VARS['users']) )
{
foreach ($HTTP_POST_VARS['users'] as $user_id)
{
$where_user_sql .= ( ( $where_user_sql != '' ) ? ', ' : '' ) . intval($user_id);
}
$where_user_sql = " AND u.user_id IN ($where_user_sql)";
}
$sql = "SELECT auth_option $sql = "SELECT auth_option
FROM " . ACL_OPTIONS_TABLE . " FROM " . ACL_OPTIONS_TABLE . "
WHERE auth_type LIKE 'admin'"; WHERE auth_type LIKE 'admin'";
@ -414,17 +397,6 @@ if ( !empty($forum_id) || $mode == 'administrators' )
</tr> </tr>
</table> </table>
<h1><?php echo $lang['Groups']; ?></h1> <h1><?php echo $lang['Groups']; ?></h1>
<form method="post" name="admingroups" action="<?php echo "admin_permissions.$phpEx$SID&amp;mode=$mode"; ?>"><table width="45%" class="bg" cellspacing="1" cellpadding="4" border="0" align="center"> <form method="post" name="admingroups" action="<?php echo "admin_permissions.$phpEx$SID&amp;mode=$mode"; ?>"><table width="45%" class="bg" cellspacing="1" cellpadding="4" border="0" align="center">
@ -462,6 +434,24 @@ if ( !empty($forum_id) || $mode == 'administrators' )
} }
else else
{ {
$where_groups_sql = '';
if ( !empty($HTTP_POST_VARS['groups']) )
{
if ( is_array($HTTP_POST_VARS['groups']) )
{
foreach ($HTTP_POST_VARS['groups'] as $group_id)
{
$where_groups_sql .= ( ( $where_groups_sql != '' ) ? ', ' : '' ) . intval($group_id);
}
}
else
{
$where_groups_sql = intval($HTTP_POST_VARS['groups']);
}
$where_groups_sql = " AND g.group_id IN ($where_groups_sql)";
}
$sql = "SELECT auth_option $sql = "SELECT auth_option
FROM " . ACL_OPTIONS_TABLE . " FROM " . ACL_OPTIONS_TABLE . "
WHERE auth_type LIKE 'admin'"; WHERE auth_type LIKE 'admin'";
@ -534,7 +524,7 @@ if ( !empty($forum_id) || $mode == 'administrators' )
<th><?php echo $lang['Add_groups']; ?></th> <th><?php echo $lang['Add_groups']; ?></th>
</tr> </tr>
<tr> <tr>
<td class="row1" align="center"><textarea cols="40" rows="3" name="newuser"></textarea></td> <td class="row1" align="center"><select name="newgroup" multiple="multiple" size="3"><?php echo $group_list; ?></select></td>
</tr> </tr>
<tr> <tr>
<td class="cat" align="center"> <input type="submit" name="addgroup" value="<?php echo $lang['Submit']; ?>" class="mainoption" />&nbsp; <input type="reset" value="<?php echo $lang['Reset']; ?>" class="liteoption" /></td> <td class="cat" align="center"> <input type="submit" name="addgroup" value="<?php echo $lang['Submit']; ?>" class="mainoption" />&nbsp; <input type="reset" value="<?php echo $lang['Reset']; ?>" class="liteoption" /></td>

View File

@ -31,11 +31,12 @@ $lang['No_frames'] = 'Sorry, your browser does not support frames';
// in the modules[][] arrays in each module file // in the modules[][] arrays in each module file
// //
$lang['Return_to'] = 'Return to ...'; $lang['Return_to'] = 'Return to ...';
$lang['General'] = 'General Admin'; $lang['General_cat'] = 'General Admin';
$lang['Users'] = 'User Admin'; $lang['DB_cat'] = 'Database Admin';
$lang['Groups'] = 'Group Admin'; $lang['Users_cat'] = 'User Admin';
$lang['Forums'] = 'Forum Admin'; $lang['Groups_cat'] = 'Group Admin';
$lang['Styles'] = 'Styles Admin'; $lang['Forums_cat'] = 'Forum Admin';
$lang['Styles_cat'] = 'Styles Admin';
$lang['Avatar_settings'] = 'Avatar Settings'; $lang['Avatar_settings'] = 'Avatar Settings';
$lang['Cookie_settings'] = 'Cookie Settings'; $lang['Cookie_settings'] = 'Cookie Settings';
@ -57,13 +58,15 @@ $lang['Word_Censor'] = 'Word Censors';
$lang['Export'] = 'Export'; $lang['Export'] = 'Export';
$lang['Create_new'] = 'Create'; $lang['Create_new'] = 'Create';
$lang['Add_new'] = 'Add'; $lang['Add_new'] = 'Add';
$lang['DB'] = 'Database Utils';
$lang['DB_Backup'] = 'DB Backup'; $lang['DB_Backup'] = 'DB Backup';
$lang['DB_Restore'] = 'DB Restore'; $lang['DB_Restore'] = 'DB Restore';
$lang['Basic_Config'] = 'Basic Configuration'; $lang['Basic_Config'] = 'Basic Configuration';
$lang['Administrators'] = 'Administrators'; $lang['Administrators'] = 'Administrators';
$lang['View_admin_log'] = 'Admin log'; $lang['View_admin_log'] = 'Admin log';
$lang['Users'] = 'Users';
$lang['Groups'] = 'Groups';
// //
// Logging // Logging
// //
@ -196,7 +199,12 @@ $lang['Permissions_explain'] = 'Here you can alter which users and groups can ac
$lang['Moderators'] = 'Moderators'; $lang['Moderators'] = 'Moderators';
$lang['Moderators_explain'] = 'Here you can assign users and groups as forum moderators. You can give users or groups individual access to certain moderator functions as you set fit. Moderators have additional power in a given forum and by default can post and reply even when a forum or topic is locked.'; $lang['Moderators_explain'] = 'Here you can assign users and groups as forum moderators. You can give users or groups individual access to certain moderator functions as you set fit. Moderators have additional power in a given forum and by default can post and reply even when a forum or topic is locked.';
$lang['Administrators_explain'] = 'Here you can assign administrator rights to users or groups. All users with admin permissions can view the administration panel. However you can limit users or groups to only certain functions, these are; forum, user, group, post, banning, permissions, emailing, backup, search re-indexing, styles addition and editing and general configuration.'; $lang['Administrators_explain'] = 'Here you can assign administrator rights to users or groups. All users with admin permissions can view the administration panel. However you can limit selected users or groups to only certain sections if you wish by clicking <i>Advanced</i>.';
$lang['Manage_users'] = 'Manage Users';
$lang['Add_users'] = 'Add Users';
$lang['Manage_groups'] = 'Manage Groups';
$lang['Add_groups'] = 'Add Groups';
$lang['Admin_group'] = 'Administrators'; $lang['Admin_group'] = 'Administrators';
$lang['Reg_group'] = 'All registered'; $lang['Reg_group'] = 'All registered';
@ -206,19 +214,26 @@ $lang['Disallowed_users'] = 'Disallowed users';
$lang['Allowed_groups'] = 'Allowed groups'; $lang['Allowed_groups'] = 'Allowed groups';
$lang['Disallowed_groups'] = 'Disallowed groups'; $lang['Disallowed_groups'] = 'Disallowed groups';
$lang['Remove_selected'] = 'Remove selected';
$lang['Advanced'] = 'Advanced'; $lang['Advanced'] = 'Advanced';
$lang['acl_admin_general'] = 'Can admin general settings'; $lang['User_can_admin'] = 'User can admin ... ';
$lang['acl_admin_user'] = 'Can admin users'; $lang['Group_can_admin'] = 'Group can admin ... ';
$lang['acl_admin_group'] = 'Can admin groups'; $lang['Allow'] = 'Allow';
$lang['acl_admin_forum'] = 'Can admin forums'; $lang['Deny'] = 'Deny';
$lang['acl_admin_post'] = 'Can admin posts';
$lang['acl_admin_ban'] = 'Can admin bans'; $lang['acl_admin_general'] = 'General Settings';
$lang['acl_admin_auth'] = 'Can admin permissions'; $lang['acl_admin_user'] = 'Users';
$lang['acl_admin_email'] = 'Can admin email'; $lang['acl_admin_group'] = 'Groups';
$lang['acl_admin_styles'] = 'Can admin styles'; $lang['acl_admin_forum'] = 'Forums';
$lang['acl_admin_backup'] = 'Can admin backups'; $lang['acl_admin_post'] = 'Posts';
$lang['acl_admin_clearlogs'] = 'Can clear admin logs'; $lang['acl_admin_ban'] = 'Banning';
$lang['acl_admin_auth'] = 'Permissions';
$lang['acl_admin_email'] = 'Email';
$lang['acl_admin_styles'] = 'Styles';
$lang['acl_admin_backup'] = 'Backups';
$lang['acl_admin_clearlogs'] = 'Clear Admin Log';
$lang['Select_a_User'] = 'Select a User'; $lang['Select_a_User'] = 'Select a User';
$lang['Select_a_Group'] = 'Select a Group'; $lang['Select_a_Group'] = 'Select a Group';
@ -236,12 +251,6 @@ $lang['Forum_auth_explain'] = 'Here you can alter the authorisation levels of ea
$lang['Simple_mode'] = 'Simple Mode'; $lang['Simple_mode'] = 'Simple Mode';
$lang['Advanced_mode'] = 'Advanced Mode'; $lang['Advanced_mode'] = 'Advanced Mode';
$lang['Moderator_status'] = 'Moderator status';
$lang['Allowed_Access'] = 'Allowed Access';
$lang['Disallowed_Access'] = 'Disallowed Access';
$lang['Is_Moderator'] = 'Is Moderator';
$lang['Not_Moderator'] = 'Not Moderator';
$lang['Conflict_warning'] = 'Authorisation Conflict Warning'; $lang['Conflict_warning'] = 'Authorisation Conflict Warning';
$lang['Conflict_access_userauth'] = 'This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.'; $lang['Conflict_access_userauth'] = 'This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.';
@ -261,15 +270,6 @@ $lang['Announce'] = 'Announce';
$lang['Vote'] = 'Vote'; $lang['Vote'] = 'Vote';
$lang['Pollcreate'] = 'Poll create'; $lang['Pollcreate'] = 'Poll create';
$lang['Permissions'] = 'Permissions';
$lang['Simple_Permission'] = 'Simple Permission';
$lang['User_Level'] = 'User Level';
$lang['Auth_User'] = 'User';
$lang['Auth_Admin'] = 'Administrator';
$lang['Group_memberships'] = 'Usergroup memberships';
$lang['Usergroup_members'] = 'This group has the following members';
$lang['Auth_updated'] = 'Permissions have been updated'; $lang['Auth_updated'] = 'Permissions have been updated';
@ -502,8 +502,7 @@ $lang['Click_return_forumadmin'] = 'Click %sHere%s to return to Forum Administra
// //
// Smiley Management // Smiley Management
// //
$lang['smiley_title'] = 'Smiles Editing Utility'; $lang['Emoticons_explain'] = 'From this page you can add, remove and edit the emoticons or smileys your users may use in their posts and private messages.';
$lang['smile_desc'] = 'From this page you can add, remove and edit the emoticons or smileys your users can use in their posts and private messages.';
$lang['smiley_config'] = 'Smiley Configuration'; $lang['smiley_config'] = 'Smiley Configuration';
$lang['smiley_code'] = 'Smiley Code'; $lang['smiley_code'] = 'Smiley Code';