mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
Permit, Prevent options ... I wonder if any other board will miraculously gain these ...
git-svn-id: file:///svn/phpbb/trunk@2848 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
71468f8071
commit
a7cda845fa
@ -157,6 +157,8 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators
|
||||
|
||||
<p><?php echo $lang['Permissions_extra_explain']; ?></p>
|
||||
|
||||
<p><?php echo $lang['Permissions_extra2_explain']; ?></p>
|
||||
|
||||
<?php
|
||||
|
||||
switch ( $mode )
|
||||
@ -338,7 +340,7 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators
|
||||
case 'user':
|
||||
$l_type = 'User';
|
||||
|
||||
$sql = ( empty($HTTP_POST_VARS['new']) ) ? "SELECT u.user_id AS id, u.username AS name, o.auth_option, a.auth_allow_deny FROM " . USERS_TABLE . " u, " . ACL_USERS_TABLE . " a, " . ACL_OPTIONS_TABLE . " o WHERE o.auth_type LIKE '$type_sql' AND a.auth_option_id = o.auth_option_id $forum_sql AND u.user_id = a.user_id AND u.user_id IN ($where_sql) ORDER BY u.username, u.user_regdate ASC" : "SELECT user_id AS id, username AS name FROM " . USERS_TABLE . " WHERE username IN ($where_sql) ORDER BY username, user_regdate ASC";
|
||||
$sql = ( empty($HTTP_POST_VARS['new']) ) ? "SELECT u.user_id AS id, u.username AS name, u.user_founder, o.auth_option, a.auth_allow_deny FROM " . USERS_TABLE . " u, " . ACL_USERS_TABLE . " a, " . ACL_OPTIONS_TABLE . " o WHERE o.auth_type LIKE '$type_sql' AND a.auth_option_id = o.auth_option_id $forum_sql AND u.user_id = a.user_id AND u.user_id IN ($where_sql) ORDER BY u.username, u.user_regdate ASC" : "SELECT user_id AS id, username AS name, u.user_founder FROM " . USERS_TABLE . " WHERE username IN ($where_sql) ORDER BY username, user_regdate ASC";
|
||||
break;
|
||||
}
|
||||
|
||||
@ -364,8 +366,10 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators
|
||||
<form method="post" action="<?php echo "admin_permissions.$phpEx$SID&mode=$mode"; ?>"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||
<tr>
|
||||
<th> <?php echo $lang[$l_type . $l_can]; ?> </th>
|
||||
<th> <?php echo $lang['Permit']; ?> </th>
|
||||
<th> <?php echo $lang['Allow']; ?> </th>
|
||||
<th> <?php echo $lang['Deny']; ?> </th>
|
||||
<th> <?php echo $lang['Prevent']; ?> </th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
@ -375,14 +379,18 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators
|
||||
|
||||
$l_can_cell = ( !empty($lang['acl_' . $type_sql . '_' . $auth_options[$i]['auth_option']]) ) ? $lang['acl_' . $type_sql . '_' . $auth_options[$i]['auth_option']] : $auth_options[$i]['auth_option'];
|
||||
|
||||
$can_type = ( !empty($auth[$auth_options[$i]['auth_option']]) ) ? ' checked="checked"' : '';
|
||||
$cannot_type = ( empty($auth[$auth_options[$i]['auth_option']]) ) ? ' checked="checked"' : '';
|
||||
$permit_type = ( $auth[$auth_options[$i]['auth_option']] == ACL_PERMIT ) ? ' checked="checked"' : '';
|
||||
$allow_type = ( $auth[$auth_options[$i]['auth_option']] == ACL_ALLOW ) ? ' checked="checked"' : '';
|
||||
$deny_type = ( $auth[$auth_options[$i]['auth_option']] == ACL_DENY ) ? ' checked="checked"' : '';
|
||||
$prevent_type = ( $auth[$auth_options[$i]['auth_option']] == ACL_PREVENT ) ? ' checked="checked"' : '';
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="<?php echo $row_class; ?>"><?php echo $l_can_cell; ?></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="1"<?php echo $can_type; ?> /></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="0"<?php echo $cannot_type; ?> /></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="<?php echo ACL_PERMIT; ?>"<?php echo $permit_type; ?> /></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="<?php echo ACL_ALLOW; ?>"<?php echo $allow_type; ?> /></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="<?php echo ACL_DENY; ?>"<?php echo $deny_type; ?> /></td>
|
||||
<td class="<?php echo $row_class; ?>" align="center"><input type="radio" name="option[<?php echo $type_sql; ?>][<?php echo $auth_options[$i]['auth_option_id']; ?>]" value="<?php echo ACL_PREVENT; ?>"<?php echo $prevent_type; ?> /></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
@ -390,13 +398,13 @@ if ( !empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<th colspan="3"><?php echo $lang['Applies_to_' . $l_type]; ?></th>
|
||||
<th colspan="5"><?php echo $lang['Applies_to_' . $l_type]; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" colspan="3"><textarea cols="40" rows="3"><?php echo trim($ug); ?></textarea></td>
|
||||
<td class="row1" colspan="5" align="center"><textarea cols="40" rows="3"><?php echo trim($ug); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cat" colspan="3" align="center"><input class="mainoption" type="submit" name="update" value="<?php echo $lang['Update']; ?>" /> <input class="liteoption" type="submit" name="cancel" value="<?php echo $lang['Cancel']; ?>" /><input type="hidden" name="f" value="<?php echo $forum_id; ?>" /><input type="hidden" name="type" value="<?php echo $HTTP_POST_VARS['type']; ?>" /><?php echo $ug_hidden; ?></td>
|
||||
<td class="cat" colspan="5" align="center"><input class="mainoption" type="submit" name="update" value="<?php echo $lang['Update']; ?>" /> <input class="liteoption" type="submit" name="cancel" value="<?php echo $lang['Cancel']; ?>" /><input type="hidden" name="f" value="<?php echo $forum_id; ?>" /><input type="hidden" name="type" value="<?php echo $HTTP_POST_VARS['type']; ?>" /><?php echo $ug_hidden; ?></td>
|
||||
</tr>
|
||||
</table></form>
|
||||
|
||||
|
@ -219,7 +219,8 @@ $lang['Restore_Error_no_file'] = 'No file was uploaded';
|
||||
$lang['Permissions'] = 'Permissions';
|
||||
$lang['Permissions_explain'] = 'Here you can alter which users and groups can access which forums. Permissions can be set for individual operations such as; reading, posting, voting, etc via the <i>Advanced</i> form. This page only applies to forum permissions. To assign moderators or define administrators please use the appropriate page (see left hand side menu).';
|
||||
|
||||
$lang['Permissions_extra_explain'] = 'Permissions are based on a DENY ALLOW system. By default users are denied access to all operations, to do anything users have to be granted ALLOW access. If you subsequently DENY a user access to an operation they will be denied even if they belong to a group that grants them ALLOW status. The same applies to usergroups, setting an operation to DENY will deny all users of that group access even if they are granted ALLOW as users.';
|
||||
$lang['Permissions_extra_explain'] = 'Permissions are based on a; PERMIT, ALLOW, DENY, PREVENT system. By default users and groups are set to DENY access to all operations, to do anything users or groups have to be granted ALLOW access. When conflicts exist, e.g. a user having ALLOW permissions to a function belongs to a group that is set to DENY such a function the user setting takes precidence, i.e. in this case the user would be ALLOWed access to this function. Similarly a user denied access to a function will be denied even if they belong to a group that grants them access.';
|
||||
$lang['Permissions_extra2_explain'] = 'There may be times when you want to deny (or allow) access to a group no matter what their individual user settings are, this is what PERMIT and PREVENT are for. By setting a user (or more likely a group) to one of these will PERMIT (ALLOW) or PREVENT (DENY) access to a function no matter what their user settings are. You may find this useful for things such as "banned" groups, etc. doing away with any need to check for individual user permissions.';
|
||||
|
||||
$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 via the <i>Advanced</i> form. Moderators have additional power in a given forum and by default can post and reply even when a forum or topic is locked.';
|
||||
@ -229,11 +230,6 @@ $lang['Super_Moderators_explain'] = 'Here you can assign users and groups as sup
|
||||
|
||||
$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['ADMINISTRATORS'] = 'ADMINISTRATORS';
|
||||
$lang['SUPER_MODERATORS'] = 'SUPER MODERATORS';
|
||||
$lang['REGISTERED'] = 'REGISTERED USERS';
|
||||
$lang['GUESTS'] = 'GUESTS';
|
||||
|
||||
$lang['Manage_users'] = 'Manage Users';
|
||||
$lang['Add_users'] = 'Add Users';
|
||||
$lang['Manage_groups'] = 'Manage Groups';
|
||||
@ -260,7 +256,9 @@ $lang['User_can_admin'] = 'User can admin ... ';
|
||||
$lang['Group_can_admin'] = 'Group can admin ... ';
|
||||
|
||||
$lang['Allow'] = 'Allow';
|
||||
$lang['Permit'] = 'Permit';
|
||||
$lang['Deny'] = 'Deny';
|
||||
$lang['Prevent'] = 'Prevent';
|
||||
|
||||
$lang['acl_admin_general'] = 'General Settings';
|
||||
$lang['acl_admin_user'] = 'Users';
|
||||
@ -338,7 +336,7 @@ $lang['Permanent'] = 'Permanent';
|
||||
$lang['30_Mins'] = '30 Minutes';
|
||||
$lang['1_Hour'] = '1 Hour';
|
||||
$lang['6_Hours'] = '6 Hours';
|
||||
$lang['Other'] = 'Other';
|
||||
$lang['Other'] = 'Other ->';
|
||||
$lang['Ban_reason'] = 'Reason for ban';
|
||||
|
||||
$lang['Ban_username_explain'] = 'You can ban multiple users in one go by entering each name on a new line. Use the <u>Find a Username</u> facility to look up and add one or more users automatically.';
|
||||
|
@ -113,6 +113,13 @@ $lang['Admin_panel'] = 'Go to Administration Panel';
|
||||
$lang['Board_disable'] = 'Sorry but this board is currently unavailable';
|
||||
$lang['Board_unavailable'] = 'Sorry but the board is temporarily unavailable, please try again in a few minutes';
|
||||
|
||||
$lang['ADMINISTRATORS'] = 'ADMINISTRATORS';
|
||||
$lang['SUPER_MODERATORS'] = 'SUPER MODERATORS';
|
||||
$lang['MODERATORS'] = 'MODERATORS';
|
||||
$lang['REGISTERED'] = 'REGISTERED USERS';
|
||||
$lang['INACTIVE'] = 'INACTIVE USERS';
|
||||
$lang['GUESTS'] = 'GUESTS';
|
||||
|
||||
//
|
||||
// Global Header strings
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user