From 31d190a5aaed22cb7bc2c2671fa9ae02b1810d46 Mon Sep 17 00:00:00 2001 From: emanuele Date: Mon, 8 Jul 2013 00:53:10 +0200 Subject: [PATCH] Removed the "simple" permissions management page Signed-off-by: emanuele --- sources/admin/ManagePermissions.php | 27 +- sources/subs/ManagePermissions.subs.php | 281 +++++++---------- themes/default/ManagePermissions.template.php | 298 +----------------- .../languages/ManagePermissions.english.php | 58 ---- 4 files changed, 121 insertions(+), 543 deletions(-) diff --git a/sources/admin/ManagePermissions.php b/sources/admin/ManagePermissions.php index c77d575976..62fd4842ee 100644 --- a/sources/admin/ManagePermissions.php +++ b/sources/admin/ManagePermissions.php @@ -511,23 +511,11 @@ public function action_modify() require_once(SUBSDIR . '/ManagePermissions.subs.php'); $context['group']['id'] = (int) $_GET['group']; - // Are they toggling the view? - if (isset($_GET['view'])) - { - $context['admin_preferences']['pv'] = $_GET['view'] == 'classic' ? 'classic' : 'simple'; - - // Update the users preferences. - require_once(SUBSDIR . '/Admin.subs.php'); - updateAdminPreferences(); - } - - $context['view_type'] = !empty($context['admin_preferences']['pv']) && $context['admin_preferences']['pv'] == 'classic' ? 'classic' : 'simple'; - // It's not likely you'd end up here with this setting disabled. if ($_GET['group'] == 1) redirectexit('action=admin;area=permissions'); - loadAllPermissions($context['view_type']); + loadAllPermissions(); loadPermissionProfiles(); if ($context['group']['id'] > 0) @@ -592,20 +580,13 @@ public function action_modify() { // Create a shortcut for the current permission. $curPerm = &$context['permissions'][$permissionType]['columns'][$position][$permissionGroup]['permissions'][$perm['id']]; - if ($tmp['view'] == 'classic') + if ($perm['has_own_any']) { - if ($perm['has_own_any']) - { - $curPerm['any']['select'] = in_array($perm['id'] . '_any', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_any', $permissions[$permissionType]['denied']) ? 'denied' : 'off'); - $curPerm['own']['select'] = in_array($perm['id'] . '_own', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_own', $permissions[$permissionType]['denied']) ? 'denied' : 'off'); - } - else - $curPerm['select'] = in_array($perm['id'], $permissions[$permissionType]['denied']) ? 'denied' : (in_array($perm['id'], $permissions[$permissionType]['allowed']) ? 'on' : 'off'); + $curPerm['any']['select'] = in_array($perm['id'] . '_any', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_any', $permissions[$permissionType]['denied']) ? 'denied' : 'off'); + $curPerm['own']['select'] = in_array($perm['id'] . '_own', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_own', $permissions[$permissionType]['denied']) ? 'denied' : 'off'); } else - { $curPerm['select'] = in_array($perm['id'], $permissions[$permissionType]['denied']) ? 'denied' : (in_array($perm['id'], $permissions[$permissionType]['allowed']) ? 'on' : 'off'); - } } } } diff --git a/sources/subs/ManagePermissions.subs.php b/sources/subs/ManagePermissions.subs.php index 41d4d3149b..78bdfacd6d 100644 --- a/sources/subs/ManagePermissions.subs.php +++ b/sources/subs/ManagePermissions.subs.php @@ -385,146 +385,119 @@ function loadPermissionProfiles() /** * Load permissions into $context['permissions']. * @internal - * - * @param string $loadType options: 'classic' or 'simple' */ -function loadAllPermissions($loadType = 'classic') +function loadAllPermissions() { global $context, $txt, $modSettings; - // List of all the groups dependant on the currently selected view - for the order so it looks pretty, yea? + // List of all the groups // Note to Mod authors - you don't need to stick your permission group here if you don't mind having it as the last group of the page. $permissionGroups = array( 'membergroup' => array( - 'simple' => array( - 'view_basic_info', - 'disable_censor', - 'use_pm_system', - 'post_calendar', - 'edit_profile', - 'delete_account', - 'use_avatar', - 'moderate_general', - 'administrate', - ), - 'classic' => array( - 'general', - 'pm', - 'calendar', - 'maintenance', - 'member_admin', - 'profile', - ), + 'general', + 'pm', + 'calendar', + 'maintenance', + 'member_admin', + 'profile', ), 'board' => array( - 'simple' => array( - 'make_posts', - 'make_unapproved_posts', - 'post_polls', - 'participate', - 'modify', - 'notification', - 'attach', - 'moderate', - ), - 'classic' => array( - 'general_board', - 'topic', - 'post', - 'poll', - 'notification', - 'attachment', - ), + 'general_board', + 'topic', + 'post', + 'poll', + 'notification', + 'attachment', ), ); /* The format of this list is as follows: 'membergroup' => array( - 'permissions_inside' => array(has_multiple_options, classic_view_group, simple_view_group(_own)*, simple_view_group_any*), + 'permissions_inside' => array(has_multiple_options, view_group), ), 'board' => array( - 'permissions_inside' => array(has_multiple_options, classic_view_group, simple_view_group(_own)*, simple_view_group_any*), + 'permissions_inside' => array(has_multiple_options, view_group), ); */ $permissionList = array( 'membergroup' => array( - 'view_stats' => array(false, 'general', 'view_basic_info'), - 'view_mlist' => array(false, 'general', 'view_basic_info'), - 'who_view' => array(false, 'general', 'view_basic_info'), - 'search_posts' => array(false, 'general', 'view_basic_info'), - 'karma_edit' => array(false, 'general', 'moderate_general'), - 'like_posts' => array(false, 'general', 'moderate_general'), - 'disable_censor' => array(false, 'general', 'disable_censor'), - 'pm_read' => array(false, 'pm', 'use_pm_system'), - 'pm_send' => array(false, 'pm', 'use_pm_system'), - 'pm_draft' => array(false, 'pm', 'use_pm_system'), - 'pm_autosave_draft' => array(false, 'pm', 'use_pm_system'), - 'send_email_to_members' => array(false, 'pm', 'use_pm_system'), - 'calendar_view' => array(false, 'calendar', 'view_basic_info'), - 'calendar_post' => array(false, 'calendar', 'post_calendar'), - 'calendar_edit' => array(true, 'calendar', 'post_calendar', 'moderate_general'), - 'admin_forum' => array(false, 'maintenance', 'administrate'), - 'manage_boards' => array(false, 'maintenance', 'administrate'), - 'manage_attachments' => array(false, 'maintenance', 'administrate'), - 'manage_smileys' => array(false, 'maintenance', 'administrate'), - 'edit_news' => array(false, 'maintenance', 'administrate'), - 'access_mod_center' => array(false, 'maintenance', 'moderate_general'), - 'moderate_forum' => array(false, 'member_admin', 'moderate_general'), - 'manage_membergroups' => array(false, 'member_admin', 'administrate'), - 'manage_permissions' => array(false, 'member_admin', 'administrate'), - 'manage_bans' => array(false, 'member_admin', 'administrate'), - 'send_mail' => array(false, 'member_admin', 'administrate'), - 'issue_warning' => array(false, 'member_admin', 'moderate_general'), - 'profile_view' => array(true, 'profile', 'view_basic_info', 'view_basic_info'), - 'profile_identity' => array(true, 'profile', 'edit_profile', 'moderate_general'), - 'profile_extra' => array(true, 'profile', 'edit_profile', 'moderate_general'), - 'profile_title' => array(true, 'profile', 'edit_profile', 'moderate_general'), - 'profile_remove' => array(true, 'profile', 'delete_account', 'moderate_general'), - 'profile_server_avatar' => array(false, 'profile', 'use_avatar'), - 'profile_upload_avatar' => array(false, 'profile', 'use_avatar'), - 'profile_remote_avatar' => array(false, 'profile', 'use_avatar'), - 'approve_emails' => array(false, 'member_admin', 'administrate'), + 'view_stats' => array(false, 'general'), + 'view_mlist' => array(false, 'general'), + 'who_view' => array(false, 'general'), + 'search_posts' => array(false, 'general'), + 'karma_edit' => array(false, 'general'), + 'like_posts' => array(false, 'general'), + 'disable_censor' => array(false, 'general'), + 'pm_read' => array(false, 'pm'), + 'pm_send' => array(false, 'pm'), + 'pm_draft' => array(false, 'pm'), + 'pm_autosave_draft' => array(false, 'pm'), + 'send_email_to_members' => array(false, 'pm'), + 'calendar_view' => array(false, 'calendar'), + 'calendar_post' => array(false, 'calendar'), + 'calendar_edit' => array(true, 'calendar'), + 'admin_forum' => array(false, 'maintenance'), + 'manage_boards' => array(false, 'maintenance'), + 'manage_attachments' => array(false, 'maintenance'), + 'manage_smileys' => array(false, 'maintenance'), + 'edit_news' => array(false, 'maintenance'), + 'access_mod_center' => array(false, 'maintenance'), + 'moderate_forum' => array(false, 'member_admin'), + 'manage_membergroups' => array(false, 'member_admin'), + 'manage_permissions' => array(false, 'member_admin'), + 'manage_bans' => array(false, 'member_admin'), + 'send_mail' => array(false, 'member_admin'), + 'issue_warning' => array(false, 'member_admin'), + 'profile_view' => array(true, 'profile'), + 'profile_identity' => array(true, 'profile'), + 'profile_extra' => array(true, 'profile'), + 'profile_title' => array(true, 'profile'), + 'profile_remove' => array(true, 'profile'), + 'profile_server_avatar' => array(false, 'profile'), + 'profile_upload_avatar' => array(false, 'profile'), + 'profile_remote_avatar' => array(false, 'profile'), + 'approve_emails' => array(false, 'member_admin'), ), 'board' => array( - 'moderate_board' => array(false, 'general_board', 'moderate'), - 'approve_posts' => array(false, 'general_board', 'moderate'), - 'post_new' => array(false, 'topic', 'make_posts'), - 'post_draft' => array(false, 'topic', 'make_posts'), - 'post_autosave_draft' => array(false, 'topic', 'make_posts'), - 'post_unapproved_topics' => array(false, 'topic', 'make_unapproved_posts'), - 'post_unapproved_replies' => array(true, 'topic', 'make_unapproved_posts', 'make_unapproved_posts'), - 'post_reply' => array(true, 'topic', 'make_posts', 'make_posts'), - 'merge_any' => array(false, 'topic', 'moderate'), - 'split_any' => array(false, 'topic', 'moderate'), - 'send_topic' => array(false, 'topic', 'moderate'), - 'make_sticky' => array(false, 'topic', 'moderate'), - 'move' => array(true, 'topic', 'moderate', 'moderate'), - 'lock' => array(true, 'topic', 'moderate', 'moderate'), - 'remove' => array(true, 'topic', 'modify', 'moderate'), - 'modify_replies' => array(false, 'topic', 'moderate'), - 'delete_replies' => array(false, 'topic', 'moderate'), - 'announce_topic' => array(false, 'topic', 'moderate'), - 'delete' => array(true, 'post', 'modify', 'moderate'), - 'modify' => array(true, 'post', 'modify', 'moderate'), - 'report_any' => array(false, 'post', 'participate'), - 'poll_view' => array(false, 'poll', 'participate'), - 'poll_vote' => array(false, 'poll', 'participate'), - 'poll_post' => array(false, 'poll', 'post_polls'), - 'poll_add' => array(true, 'poll', 'post_polls', 'moderate'), - 'poll_edit' => array(true, 'poll', 'modify', 'moderate'), - 'poll_lock' => array(true, 'poll', 'moderate', 'moderate'), - 'poll_remove' => array(true, 'poll', 'modify', 'moderate'), - 'mark_any_notify' => array(false, 'notification', 'notification'), - 'mark_notify' => array(false, 'notification', 'notification'), - 'view_attachments' => array(false, 'attachment', 'participate'), - 'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'), - 'post_attachment' => array(false, 'attachment', 'attach'), - 'postby_email' => array(false, 'topic', 'make_posts'), - 'like_posts' => array(false, 'topic', 'participate'), + 'moderate_board' => array(false, 'general_board'), + 'approve_posts' => array(false, 'general_board'), + 'post_new' => array(false, 'topic'), + 'post_draft' => array(false, 'topic'), + 'post_autosave_draft' => array(false, 'topic'), + 'post_unapproved_topics' => array(false, 'topic'), + 'post_unapproved_replies' => array(true, 'topic'), + 'post_reply' => array(true, 'topic'), + 'merge_any' => array(false, 'topic'), + 'split_any' => array(false, 'topic'), + 'send_topic' => array(false, 'topic'), + 'make_sticky' => array(false, 'topic'), + 'move' => array(true, 'topic'), + 'lock' => array(true, 'topic'), + 'remove' => array(true, 'topic'), + 'modify_replies' => array(false, 'topic'), + 'delete_replies' => array(false, 'topic'), + 'announce_topic' => array(false, 'topic'), + 'delete' => array(true, 'post'), + 'modify' => array(true, 'post'), + 'report_any' => array(false, 'post'), + 'poll_view' => array(false, 'poll'), + 'poll_vote' => array(false, 'poll'), + 'poll_post' => array(false, 'poll'), + 'poll_add' => array(true, 'poll'), + 'poll_edit' => array(true, 'poll'), + 'poll_lock' => array(true, 'poll'), + 'poll_remove' => array(true, 'poll'), + 'mark_any_notify' => array(false, 'notification'), + 'mark_notify' => array(false, 'notification'), + 'view_attachments' => array(false, 'attachment'), + 'post_unapproved_attachments' => array(false, 'attachment'), + 'post_attachment' => array(false, 'attachment'), + 'postby_email' => array(false, 'topic'), + 'like_posts' => array(false, 'topic'), ), ); - // All permission groups that will be shown in the left column on classic view. + // All permission groups that will be shown in the left column. $leftPermissionGroups = array( 'general', 'calendar', @@ -608,7 +581,6 @@ function loadAllPermissions($loadType = 'classic') { $context['permissions'][$permissionType] = array( 'id' => $permissionType, - 'view' => $loadType, 'columns' => array() ); foreach ($permissionList as $permission => $permissionArray) @@ -618,76 +590,53 @@ function loadAllPermissions($loadType = 'classic') continue; // What groups will this permission be in? - $own_group = $permissionArray[($loadType == 'classic' ? 1 : 2)]; - $any_group = $loadType == 'simple' && !empty($permissionArray[3]) ? $permissionArray[3] : ($loadType == 'simple' && $permissionArray[0] ? $permissionArray[2] : ''); + $own_group = $permissionArray[1]; // First, Do these groups actually exist - if not add them. - if (!isset($permissionGroups[$permissionType][$loadType][$own_group])) - $permissionGroups[$permissionType][$loadType][$own_group] = true; - if (!empty($any_group) && !isset($permissionGroups[$permissionType][$loadType][$any_group])) - $permissionGroups[$permissionType][$loadType][$any_group] = true; + if (!isset($permissionGroups[$permissionType][$own_group])) + $permissionGroups[$permissionType][$own_group] = true; // What column should this be located into? - $position = $loadType == 'classic' && !in_array($own_group, $leftPermissionGroups) ? 1 : 0; + $position = !in_array($own_group, $leftPermissionGroups) ? 1 : 0; // If the groups have not yet been created be sure to create them. - $bothGroups = array('own' => $own_group); $bothGroups = array(); - // For guests, just reset the array. - if (!isset($context['group']['id']) || !($context['group']['id'] == -1 && $any_group)) + // Guests can have only any, registered users both + if (!isset($context['group']['id']) || !($context['group']['id'] == -1)) $bothGroups['own'] = $own_group; - - if ($any_group) - { - $bothGroups['any'] = $any_group; - - } + else + $bothGroups['any'] = $own_group; foreach ($bothGroups as $group) - if (!isset($context['permissions'][$permissionType]['columns'][$position][$group])) + if (!isset($context['permissions'][$permissionType]['columns'][$position][$group]['type'])) $context['permissions'][$permissionType]['columns'][$position][$group] = array( 'type' => $permissionType, 'id' => $group, - 'name' => $loadType == 'simple' ? (isset($txt['permissiongroup_simple_' . $group]) ? $txt['permissiongroup_simple_' . $group] : '') : $txt['permissiongroup_' . $group], + 'name' => $txt['permissiongroup_' . $group], 'icon' => isset($txt['permissionicon_' . $group]) ? $txt['permissionicon_' . $group] : $txt['permissionicon'], 'help' => isset($txt['permissionhelp_' . $group]) ? $txt['permissionhelp_' . $group] : '', 'hidden' => false, 'permissions' => array() ); - // This is where we set up the permission dependant on the view. - if ($loadType == 'classic') - { - $context['permissions'][$permissionType]['columns'][$position][$own_group]['permissions'][$permission] = array( - 'id' => $permission, - 'name' => !isset($relabelPermissions[$permission]) ? $txt['permissionname_' . $permission] : $txt[$relabelPermissions[$permission]], - 'show_help' => isset($txt['permissionhelp_' . $permission]), - 'note' => isset($txt['permissionnote_' . $permission]) ? $txt['permissionnote_' . $permission] : '', - 'has_own_any' => $permissionArray[0], - 'own' => array( - 'id' => $permission . '_own', - 'name' => $permissionArray[0] ? $txt['permissionname_' . $permission . '_own'] : '' - ), - 'any' => array( - 'id' => $permission . '_any', - 'name' => $permissionArray[0] ? $txt['permissionname_' . $permission . '_any'] : '' - ), - 'hidden' => in_array($permission, $hiddenPermissions), - ); - } - else - { - foreach ($bothGroups as $group_type => $group) - { - $context['permissions'][$permissionType]['columns'][$position][$group]['permissions'][$permission . ($permissionArray[0] ? '_' . $group_type : '')] = array( - 'id' => $permission . ($permissionArray[0] ? '_' . $group_type : ''), - 'name' => isset($txt['permissionname_simple_' . $permission . ($permissionArray[0] ? '_' . $group_type : '')]) ? $txt['permissionname_simple_' . $permission . ($permissionArray[0] ? '_' . $group_type : '')] : $txt['permissionname_' . $permission], - 'help_index' => isset($txt['permissionhelp_' . $permission]) ? 'permissionhelp_' . $permission : '', - 'hidden' => in_array($permission, $hiddenPermissions), - ); - } - } + // This is where we set up the permission. + $context['permissions'][$permissionType]['columns'][$position][$own_group]['permissions'][$permission] = array( + 'id' => $permission, + 'name' => !isset($relabelPermissions[$permission]) ? $txt['permissionname_' . $permission] : $txt[$relabelPermissions[$permission]], + 'show_help' => isset($txt['permissionhelp_' . $permission]), + 'note' => isset($txt['permissionnote_' . $permission]) ? $txt['permissionnote_' . $permission] : '', + 'has_own_any' => $permissionArray[0], + 'own' => array( + 'id' => $permission . '_own', + 'name' => $permissionArray[0] ? $txt['permissionname_' . $permission . '_own'] : '' + ), + 'any' => array( + 'id' => $permission . '_any', + 'name' => $permissionArray[0] ? $txt['permissionname_' . $permission . '_any'] : '' + ), + 'hidden' => in_array($permission, $hiddenPermissions), + ); if (in_array($permission, $hiddenPermissions)) { diff --git a/themes/default/ManagePermissions.template.php b/themes/default/ManagePermissions.template.php index c9d3d74aad..01519d6f26 100644 --- a/themes/default/ManagePermissions.template.php +++ b/themes/default/ManagePermissions.template.php @@ -525,19 +525,10 @@ function warnAboutDeny() echo ' -
-
- ', $txt['permissions_change_view'], ': ', ($context['view_type'] == 'simple' ? '*' : ''), '', $txt['permissions_view_simple'], ' | - ', ($context['view_type'] == 'classic' ? '*' : ''), '', $txt['permissions_view_classic'], ' -
-
'; // Draw out the main bits. - if ($context['view_type'] == 'simple') - template_modify_group_simple($context['permission_type']); - else - template_modify_group_classic($context['permission_type']); + template_modify_group_classic($context['permission_type']); echo '
'; @@ -555,10 +546,7 @@ function warnAboutDeny()
'; - if ($context['view_type'] == 'simple') - template_modify_group_simple('board'); - else - template_modify_group_classic('board'); + template_modify_group_classic('board'); echo '
'; @@ -575,288 +563,6 @@ function warnAboutDeny() '; } -// A javascript enabled clean permissions view. -function template_modify_group_simple($type) -{ - global $context, $settings, $scripturl, $txt, $modSettings; - - // Simple only has one column so we only need bother ourself with that one. - $permission_data = &$context['permissions'][$type]['columns'][0]; - - // Short cut for disabling fields we can't change. - $disable_field = $context['profile']['can_modify'] ? '' : 'disabled="disabled" '; - - echo ' - - - - '; - if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) - echo ' - - - '; - else - echo ' - - - '; - - echo ' - - - '; - - foreach ($permission_data as $id_group => $permissionGroup) - { - if (empty($permissionGroup['permissions'])) - continue; - - // Are we likely to have something in this group to display or is it all hidden? - $has_display_content = false; - if (!$permissionGroup['hidden']) - { - // Before we go any further check we are going to have some data to print otherwise we just have a silly heading. - foreach ($permissionGroup['permissions'] as $permission) - if (!$permission['hidden']) - $has_display_content = true; - - if ($has_display_content) - { - echo ' - - '; - - if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) - echo ' - '; - else - echo ' - - - '; - - echo ' - '; - } - } - - $alternate = false; - foreach ($permissionGroup['permissions'] as $permission) - { - // If it's hidden keep the last value. - if ($permission['hidden'] || $permissionGroup['hidden']) - { - echo ' - - - '; - } - else - { - echo ' - - - '; - - if (empty($modSettings['permission_enable_deny']) || $context['group']['id'] == -1) - echo ' - '; - else - echo ' - - - '; - - echo ' - '; - } - $alternate = !$alternate; - } - - if (!$permissionGroup['hidden'] && $has_display_content) - echo ' - - - '; - } - - echo ' - -
 ', $txt['permissions_option_on'], '', $txt['permissions_option_off'], '', $txt['permissions_option_deny'], '
- - * ', $permissionGroup['name'], ' - - -
- -
-
-
- -
-
-
- -
-
-
- -
-
- -
- ', $permission['help_index'] ? '' . $txt['help'] . '' : '', ' - ', $permission['name'], ' - - - - - - - -
- '; -} - // The classic way of looking at permissions. function template_modify_group_classic($type) { diff --git a/themes/default/languages/ManagePermissions.english.php b/themes/default/languages/ManagePermissions.english.php index edea53ae98..a439c07ce2 100644 --- a/themes/default/languages/ManagePermissions.english.php +++ b/themes/default/languages/ManagePermissions.english.php @@ -71,9 +71,6 @@ $txt['permissions_option_off'] = 'X'; $txt['permissions_option_deny'] = 'D'; $txt['permissions_option_desc'] = 'For each permission you can pick either \'Allow\' (A), \'Disallow\' (X), or \'Deny\' (D).

Remember that if you deny a permission, any member - whether moderator or otherwise - that is in that group will be denied that as well.
For this reason, you should use deny carefully, only when necessary. Disallow, on the other hand, denies unless otherwise granted.'; -$txt['permissions_change_view'] = 'Change View'; -$txt['permissions_view_simple'] = 'Simple'; -$txt['permissions_view_classic'] = 'Classic'; $txt['permissiongroup_general'] = 'General'; $txt['permissionname_view_stats'] = 'View forum statistics'; @@ -285,61 +282,6 @@ $txt['permissionname_post_attachment'] = 'Post attachments'; $txt['permissionhelp_post_attachment'] = 'Attachments are files that are attached to posted messages. One message can contain multiple attachments.'; -$txt['permissiongroup_simple_disable_censor'] = 'Word Censor'; -$txt['permissiongroup_simple_view_basic_info'] = 'Use basic forum functionality'; -$txt['permissiongroup_simple_use_pm_system'] = 'Contact members using the personal messaging system'; -$txt['permissiongroup_simple_post_calendar'] = 'Post events onto the calendar'; -$txt['permissiongroup_simple_edit_profile'] = 'Personalize their profile'; -$txt['permissiongroup_simple_delete_account'] = 'Delete their account'; -$txt['permissiongroup_simple_use_avatar'] = 'Select or upload an avatar'; -$txt['permissiongroup_simple_moderate_general'] = 'Moderate the entire forum'; -$txt['permissiongroup_simple_administrate'] = 'Carry out administrative duties'; - -$txt['permissionname_simple_calendar_edit_own'] = 'Edit their own calendar events'; -$txt['permissionname_simple_calendar_edit_any'] = 'Edit other people\'s calendar events'; -$txt['permissionname_simple_profile_view_own'] = 'View their own profile'; -$txt['permissionname_simple_profile_view_any'] = 'View other people\'s profiles'; -$txt['permissionname_simple_profile_identity_own'] = 'Edit their account settings'; -$txt['permissionname_simple_profile_identity_any'] = 'Edit other people\'s account settings'; -$txt['permissionname_simple_profile_extra_own'] = 'Edit their additional profile options'; -$txt['permissionname_simple_profile_extra_any'] = 'Edit other people\'s profile options'; -$txt['permissionname_simple_profile_title_own'] = 'Choose a custom title for themselves'; -$txt['permissionname_simple_profile_title_any'] = 'Edit other people\'s custom titles'; -$txt['permissionname_simple_profile_remove_own'] = 'Delete their own account'; -$txt['permissionname_simple_profile_remove_any'] = 'Delete other user\'s accounts'; - -$txt['permissiongroup_simple_make_unapproved_posts'] = 'Post topics and replies to the board only after they have been approved'; -$txt['permissiongroup_simple_make_posts'] = 'Post topics and replies to the board'; -$txt['permissiongroup_simple_post_polls'] = 'Make new polls'; -$txt['permissiongroup_simple_participate'] = 'View additional board content'; -$txt['permissiongroup_simple_modify'] = 'Modify their posts'; -$txt['permissiongroup_simple_notification'] = 'Request notifications'; -$txt['permissiongroup_simple_attach'] = 'Post attachments'; -$txt['permissiongroup_simple_moderate'] = 'Moderate the board'; - -$txt['permissionname_simple_post_unapproved_replies_own'] = 'Post replies to their own topic - but require approval'; -$txt['permissionname_simple_post_unapproved_replies_any'] = 'Post replies to any topic - but require approval'; -$txt['permissionname_simple_post_reply_own'] = 'Post replies to a topic they started'; -$txt['permissionname_simple_post_reply_any'] = 'Post replies to any topic'; -$txt['permissionname_simple_move_own'] = 'Move their own topics'; -$txt['permissionname_simple_move_any'] = 'Move anyone\'s topic'; -$txt['permissionname_simple_lock_own'] = 'Lock their own topic'; -$txt['permissionname_simple_lock_any'] = 'Lock anyone\'s topic'; -$txt['permissionname_simple_remove_own'] = 'Remove their own topic'; -$txt['permissionname_simple_remove_any'] = 'Remove anyone\'s topic'; -$txt['permissionname_simple_delete_own'] = 'Delete a post that they made'; -$txt['permissionname_simple_delete_any'] = 'Delete a post made by anyone'; -$txt['permissionname_simple_modify_own'] = 'Modify their own post'; -$txt['permissionname_simple_modify_any'] = 'Modify someone else\'s post'; -$txt['permissionname_simple_poll_add_own'] = 'Add a poll to a topic they created'; -$txt['permissionname_simple_poll_add_any'] = 'Add a poll to any topic'; -$txt['permissionname_simple_poll_edit_own'] = 'Edit a poll they created'; -$txt['permissionname_simple_poll_edit_any'] = 'Edit anyone\'s poll'; -$txt['permissionname_simple_poll_lock_own'] = 'Lock their own poll'; -$txt['permissionname_simple_poll_lock_any'] = 'Lock anyone\'s poll'; -$txt['permissionname_simple_poll_remove_own'] = 'Remove a poll they created'; -$txt['permissionname_simple_poll_remove_any'] = 'Remove anyone\'s poll'; - $txt['permissionicon'] = ''; $txt['permission_settings_title'] = 'Permission Settings';