Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 148 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * DO NOT CHANGE |
| 16 | */ |
| 17 | if (!defined('IN_PHPBB')) |
| 18 | { |
| 19 | exit; |
| 20 | } |
| 21 | |
| 22 | if (empty($lang) || !is_array($lang)) |
| 23 | { |
| 24 | $lang = array(); |
| 25 | } |
| 26 | |
| 27 | // DEVELOPERS PLEASE NOTE |
| 28 | // |
| 29 | // All language files should use UTF-8 as their encoding and the files must not contain a BOM. |
| 30 | // |
| 31 | // Placeholders can now contain order information, e.g. instead of |
| 32 | // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows |
| 33 | // translators to re-order the output of data while ensuring it remains correct |
| 34 | // |
| 35 | // You do not need this where single placeholders are used, e.g. 'Message %d' is fine |
| 36 | // equally where a string contains only two placeholders which are used to wrap text |
| 37 | // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine |
| 38 | |
| 39 | /** |
| 40 | * EXTENSION-DEVELOPERS PLEASE NOTE |
| 41 | * |
| 42 | * You are able to put your permission sets into your extension. |
| 43 | * The permissions logic should be added via the 'core.permissions' event. |
| 44 | * You can easily add new permission categories, types and permissions, by |
| 45 | * simply merging them into the respective arrays. |
| 46 | * The respective language strings should be added into a language file, that |
| 47 | * start with 'permissions_', so they are automatically loaded within the ACP. |
| 48 | */ |
| 49 | |
| 50 | $lang = array_merge($lang, array( |
| 51 | 'ACL_CAT_ACTIONS' => 'Actions', |
| 52 | 'ACL_CAT_CONTENT' => 'Content', |
| 53 | 'ACL_CAT_FORUMS' => 'Forums', |
| 54 | 'ACL_CAT_MISC' => 'Misc', |
| 55 | 'ACL_CAT_PERMISSIONS' => 'Permissions', |
| 56 | 'ACL_CAT_PM' => 'Private messages', |
| 57 | 'ACL_CAT_POLLS' => 'Polls', |
| 58 | 'ACL_CAT_POST' => 'Post', |
| 59 | 'ACL_CAT_POST_ACTIONS' => 'Post actions', |
| 60 | 'ACL_CAT_POSTING' => 'Posting', |
| 61 | 'ACL_CAT_PROFILE' => 'Profile', |
| 62 | 'ACL_CAT_SETTINGS' => 'Settings', |
| 63 | 'ACL_CAT_TOPIC_ACTIONS' => 'Topic actions', |
| 64 | 'ACL_CAT_USER_GROUP' => 'Users & Groups', |
| 65 | )); |
| 66 | |
| 67 | // User Permissions |
| 68 | $lang = array_merge($lang, array( |
| 69 | 'ACL_U_VIEWPROFILE' => 'Can view profiles, memberlist and online list', |
| 70 | 'ACL_U_CHGNAME' => 'Can change username', |
| 71 | 'ACL_U_CHGPASSWD' => 'Can change password', |
| 72 | 'ACL_U_CHGEMAIL' => 'Can change email address', |
| 73 | 'ACL_U_CHGAVATAR' => 'Can change avatar', |
| 74 | 'ACL_U_CHGGRP' => 'Can change default usergroup', |
| 75 | 'ACL_U_CHGPROFILEINFO' => 'Can change profile field information', |
| 76 | |
| 77 | 'ACL_U_ATTACH' => 'Can attach files', |
| 78 | 'ACL_U_DOWNLOAD' => 'Can download files', |
| 79 | 'ACL_U_MENTION' => 'Can mention users and groups', |
| 80 | 'ACL_U_SAVEDRAFTS' => 'Can save drafts', |
| 81 | 'ACL_U_CHGCENSORS' => 'Can disable word censors', |
| 82 | 'ACL_U_SIG' => 'Can use signature', |
| 83 | 'ACL_U_EMOJI' => 'Can use emoji and rich text characters in topic title', |
| 84 | |
| 85 | 'ACL_U_SENDPM' => 'Can send private messages', |
| 86 | 'ACL_U_MASSPM' => 'Can send private messages to multiple users', |
| 87 | 'ACL_U_MASSPM_GROUP'=> 'Can send private messages to groups', |
| 88 | 'ACL_U_READPM' => 'Can read private messages', |
| 89 | 'ACL_U_PM_EDIT' => 'Can edit own private messages', |
| 90 | 'ACL_U_PM_DELETE' => 'Can remove private messages from own folder', |
| 91 | 'ACL_U_PM_FORWARD' => 'Can forward private messages', |
| 92 | 'ACL_U_PM_EMAILPM' => 'Can email private messages', |
| 93 | 'ACL_U_PM_PRINTPM' => 'Can print private messages', |
| 94 | 'ACL_U_PM_ATTACH' => 'Can attach files in private messages', |
| 95 | 'ACL_U_PM_DOWNLOAD' => 'Can download files in private messages', |
| 96 | 'ACL_U_PM_BBCODE' => 'Can use BBCode in private messages', |
| 97 | 'ACL_U_PM_SMILIES' => 'Can use smilies in private messages', |
| 98 | 'ACL_U_PM_IMG' => 'Can use [img] BBCode tag in private messages', |
| 99 | |
| 100 | 'ACL_U_SENDEMAIL' => 'Can send emails', |
| 101 | 'ACL_U_IGNOREFLOOD' => 'Can ignore flood limit', |
| 102 | 'ACL_U_HIDEONLINE' => 'Can hide online status', |
| 103 | 'ACL_U_VIEWONLINE' => 'Can view hidden online users', |
| 104 | 'ACL_U_SEARCH' => 'Can search board', |
| 105 | )); |
| 106 | |
| 107 | // Forum Permissions |
| 108 | $lang = array_merge($lang, array( |
| 109 | 'ACL_F_LIST' => 'Can see forum', |
| 110 | 'ACL_F_LIST_TOPICS' => 'Can see topics', |
| 111 | 'ACL_F_READ' => 'Can read forum', |
| 112 | 'ACL_F_SEARCH' => 'Can search the forum', |
| 113 | 'ACL_F_SUBSCRIBE' => 'Can subscribe forum', |
| 114 | 'ACL_F_PRINT' => 'Can print topics', |
| 115 | 'ACL_F_EMAIL' => 'Can email topics', |
| 116 | 'ACL_F_BUMP' => 'Can bump topics', |
| 117 | 'ACL_F_USER_LOCK' => 'Can lock own topics', |
| 118 | 'ACL_F_DOWNLOAD' => 'Can download files', |
| 119 | 'ACL_F_REPORT' => 'Can report posts', |
| 120 | |
| 121 | 'ACL_F_POST' => 'Can start new topics', |
| 122 | 'ACL_F_STICKY' => 'Can post stickies', |
| 123 | 'ACL_F_ANNOUNCE' => 'Can post announcements', |
| 124 | 'ACL_F_ANNOUNCE_GLOBAL' => 'Can post global announcements', |
| 125 | 'ACL_F_MENTION' => 'Can mention users and groups', |
| 126 | 'ACL_F_REPLY' => 'Can reply to topics', |
| 127 | 'ACL_F_EDIT' => 'Can edit own posts', |
| 128 | 'ACL_F_DELETE' => 'Can permanently delete own posts', |
| 129 | 'ACL_F_SOFTDELETE' => 'Can soft delete own posts<br /><em>Moderators, who have the approve posts permission, can restore soft deleted posts.</em>', |
| 130 | 'ACL_F_IGNOREFLOOD' => 'Can ignore flood limit', |
| 131 | 'ACL_F_POSTCOUNT' => 'Increment post counter<br /><em>Please note that this setting only affects new posts.</em>', |
| 132 | 'ACL_F_NOAPPROVE' => 'Can post without approval', |
| 133 | |
| 134 | 'ACL_F_ATTACH' => 'Can attach files', |
| 135 | 'ACL_F_ICONS' => 'Can use topic/post icons', |
| 136 | 'ACL_F_BBCODE' => 'Can use BBCode', |
| 137 | 'ACL_F_IMG' => 'Can use [img] BBCode tag', |
| 138 | 'ACL_F_SIGS' => 'Can use signatures', |
| 139 | 'ACL_F_SMILIES' => 'Can use smilies', |
| 140 | |
| 141 | 'ACL_F_POLL' => 'Can create polls', |
| 142 | 'ACL_F_VOTE' => 'Can vote in polls', |
| 143 | 'ACL_F_VOTECHG' => 'Can change existing vote', |
| 144 | )); |
| 145 | |
| 146 | // Moderator Permissions |
| 147 | $lang = array_merge($lang, array( |
| 148 | 'ACL_M_EDIT' => 'Can edit posts', |
| 149 | 'ACL_M_DELETE' => 'Can permanently delete posts', |
| 150 | 'ACL_M_SOFTDELETE' => 'Can soft delete posts<br /><em>Moderators, who have the approve posts permission, can restore soft deleted posts.</em>', |
| 151 | 'ACL_M_APPROVE' => 'Can approve and restore posts', |
| 152 | 'ACL_M_REPORT' => 'Can close and delete reports', |
| 153 | 'ACL_M_CHGPOSTER' => 'Can change post author', |
| 154 | |
| 155 | 'ACL_M_MOVE' => 'Can move topics', |
| 156 | 'ACL_M_LOCK' => 'Can lock topics', |
| 157 | 'ACL_M_SPLIT' => 'Can split topics', |
| 158 | 'ACL_M_MERGE' => 'Can merge topics', |
| 159 | |
| 160 | 'ACL_M_INFO' => 'Can view post details', |
| 161 | 'ACL_M_WARN' => 'Can issue warnings', |
| 162 | 'ACL_M_PM_REPORT' => 'Can close and delete reports of private messages', |
| 163 | 'ACL_M_BAN' => 'Can manage bans', |
| 164 | )); |
| 165 | |
| 166 | // Admin Permissions |
| 167 | $lang = array_merge($lang, array( |
| 168 | 'ACL_A_BOARD' => 'Can alter board settings/check for updates', |
| 169 | 'ACL_A_SERVER' => 'Can alter server/communication settings', |
| 170 | 'ACL_A_PHPINFO' => 'Can view php settings', |
| 171 | |
| 172 | 'ACL_A_FORUM' => 'Can manage forums', |
| 173 | 'ACL_A_FORUMADD' => 'Can add new forums', |
| 174 | 'ACL_A_FORUMDEL' => 'Can delete forums', |
| 175 | 'ACL_A_PRUNE' => 'Can prune forums', |
| 176 | |
| 177 | 'ACL_A_ICONS' => 'Can alter topic/post icons and smilies', |
| 178 | 'ACL_A_WORDS' => 'Can alter word censors', |
| 179 | 'ACL_A_BBCODE' => 'Can define BBCode tags', |
| 180 | 'ACL_A_ATTACH' => 'Can alter attachment related settings', |
| 181 | |
| 182 | 'ACL_A_USER' => 'Can manage users<br /><em>This also includes seeing the users browser agent within the viewonline list.</em>', |
| 183 | 'ACL_A_USERDEL' => 'Can delete/prune users', |
| 184 | 'ACL_A_GROUP' => 'Can manage groups', |
| 185 | 'ACL_A_GROUPADD' => 'Can add new groups', |
| 186 | 'ACL_A_GROUPDEL' => 'Can delete groups', |
| 187 | 'ACL_A_RANKS' => 'Can manage ranks', |
| 188 | 'ACL_A_PROFILE' => 'Can manage custom profile fields', |
| 189 | 'ACL_A_NAMES' => 'Can manage disallowed names', |
| 190 | 'ACL_A_BAN' => 'Can manage bans', |
| 191 | |
| 192 | 'ACL_A_VIEWAUTH' => 'Can view permission masks', |
| 193 | 'ACL_A_AUTHGROUPS' => 'Can alter permissions for individual groups', |
| 194 | 'ACL_A_AUTHUSERS' => 'Can alter permissions for individual users', |
| 195 | 'ACL_A_FAUTH' => 'Can alter forum permission class', |
| 196 | 'ACL_A_MAUTH' => 'Can alter moderator permission class', |
| 197 | 'ACL_A_AAUTH' => 'Can alter admin permission class', |
| 198 | 'ACL_A_UAUTH' => 'Can alter user permission class', |
| 199 | 'ACL_A_ROLES' => 'Can manage roles', |
| 200 | 'ACL_A_SWITCHPERM' => 'Can use others permissions', |
| 201 | |
| 202 | 'ACL_A_STORAGE' => 'Can manage storages', |
| 203 | 'ACL_A_STYLES' => 'Can manage styles', |
| 204 | 'ACL_A_EXTENSIONS' => 'Can manage extensions', |
| 205 | 'ACL_A_VIEWLOGS' => 'Can view logs', |
| 206 | 'ACL_A_CLEARLOGS' => 'Can clear logs', |
| 207 | 'ACL_A_MODULES' => 'Can manage modules', |
| 208 | 'ACL_A_LANGUAGE' => 'Can manage language packs', |
| 209 | 'ACL_A_EMAIL' => 'Can send mass email', |
| 210 | 'ACL_A_BOTS' => 'Can manage bots', |
| 211 | 'ACL_A_REASONS' => 'Can manage report/denial reasons', |
| 212 | 'ACL_A_BACKUP' => 'Can backup/restore database', |
| 213 | 'ACL_A_SEARCH' => 'Can manage search backends and settings', |
| 214 | )); |