'; if (!empty($context['board'])) echo ' '; echo ' '; if (!empty($context['board'])) echo ' '; echo ' '; foreach ($context['groups'] as $group) { echo ' '; if (!empty($context['board'])) { echo ' '; } echo ' '; } echo '
', $txt['permissions_boards'], ': ', $context['board']['name'], '
', $txt['membergroups_name'], ' ', $txt['membergroups_members_top'], ' ', $txt['membergroups_permissions'], empty($modSettings['permission_enable_deny']) ? '' : '
' . $txt['permissions_allowed'] . '
' . $txt['permissions_denied'], '
', $txt['permissions_access'], '', $txt['permissions_modify'], '
', $group['name'], $group['id'] == -1 ? ' (?)' : ($group['id'] == 0 ? ' (?)' : ($group['id'] == 1 ? ' (?)' : ($group['id'] == 3 ? ' (?)' : ''))), ' ', $group['can_search'] ? $group['link'] : $group['num_members'], ' '; if (empty($modSettings['permission_enable_deny'])) echo ' ', $group['num_permissions']['allowed']; else echo '
', $group['num_permissions']['allowed'], '
', empty($group['num_permissions']['denied']) || $group['id'] == 1 ? $group['num_permissions']['denied'] : ($group['id'] == -1 ? '' . $group['num_permissions']['denied'] . '' : '' . $group['num_permissions']['denied'] . ''); echo '
'; // Don't show the checkbox for admins and moderators, doesn't make sense! if ($group['id'] != 1 && $group['id'] != 3) echo ' '; echo ' ', $group['allow_modify'] ? '' . $txt['permissions_modify'] . '' : '', ' ', $group['allow_modify'] ? '' : '', '
', $txt['permissions_with_selection'], '...
', $txt['permissions_apply_pre_defined'], ' (?):

'; if (!empty($context['board']) && !empty($context['copy_boards'])) { echo ' ', $txt['permissions_copy_from_board'], ':

'; } echo ' ', $txt['permissions_like_group'], ':

 
'; if (!empty($context['board'])) echo ' '; echo ' '; } function template_by_board() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo ' '; foreach ($context['boards'] as $board) { echo ' '; if (empty($modSettings['permission_enable_by_board'])) echo ' '; else echo ' '; echo ' '; } echo '
', $txt[20], ' ', $txt['permissions_switch'], '
', str_repeat('-', $board['child_level']), ' ' . $board['name'] . '', empty($modSettings['permission_enable_by_board']) ? '' : ' (' . ($board['use_local_permissions'] ? $txt['permissions_local'] : $txt['permissions_global']) . ')', ' ', $txt['permission_mode_normal'], ' ', $txt['permission_mode_no_polls'], ' ', $txt['permission_mode_reply_only'], ' ', $txt['permission_mode_read_only'], '', $txt['permissions_global'], ' ', $txt['permissions_local'], '
'; } function template_modify_group() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if (!empty($modSettings['permission_enable_deny']) && $context['group']['id'] != -1) echo ' '; foreach ($context['permissions'] as $permission_type) { if ($permission_type['show']) { echo ' '; foreach ($permission_type['columns'] as $column) { echo ' '; } } } echo '
', $txt['permissions_option_desc'], '
'; if ($context['local']) echo ' ', $txt['permissions_local_for'], ' \'', $context['group']['name'], '\' ', $txt['permissions_on'], ' \'', $context['board']['name'], '\''; else echo ' ', $permission_type['id'] == 'membergroup' ? $txt['permissions_general'] : $txt['permissions_board'], ' - ', $context['group']['name'], ''; echo '
'; foreach ($column as $permissionGroup) { echo ' '; if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) echo ' '; else echo ' '; echo ' '; if (!empty($permissionGroup['permissions'])) { $alternate = false; foreach ($permissionGroup['permissions'] as $permission) { echo ' '; if ($permission['has_own_any']) { echo ' '; if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) echo ' '; else echo ' '; echo ' '; if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) echo ' '; else echo ' '; echo ' '; } else { echo ' '; if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) echo ' '; else echo ' '; echo ' '; } $alternate = !$alternate; } } echo ' '; } echo '
', $permissionGroup['name'], '
 
', $txt['permissions_option_on'], '
', $txt['permissions_option_off'], '
', $txt['permissions_option_deny'], '
', $permission['show_help'] ? '' . $txt[119] . '' : '', ' ', $permission['name'], '
', $permission['own']['name'], ':
', $permission['any']['name'], ':
', $permission['name'], '
 
 
'; } function template_general_permission_settings() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if ($context['can_change_permissions']) { echo ' '; } echo '
', $txt['permission_settings_title'], '
', $txt['groups_manage_permissions'], ': '; theme_inline_permissions('manage_permissions'); echo '

(?):
(?):
(?):
'; } function template_inline_permissions() { global $context, $settings, $options, $txt, $modSettings; echo '
', $txt['avatar_select_permission'], ''; if (empty($modSettings['permission_enable_deny'])) echo ' '; else echo '
', $txt['permissions_option_desc'], '
'; foreach ($context['member_groups'] as $group) { echo ' '; if (empty($modSettings['permission_enable_deny'])) echo ' '; else echo ' '; echo ' ', $group['name'], ' '; } echo '
', $txt['permissions_option_on'], ' ', $txt['permissions_option_off'], ' ', $txt['permissions_option_deny'], '
'; } ?>