Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

permissions_phpbb.php

Zuletzt modifiziert: 09.10.2024, 12:54 - Dateigröße: 8.32 KiB


 001  <?php
 002  /**
 003  *
 004  * This file is part of the phpBB Forum Software package.
 005  *
 006  * @copyright (c) phpBB Limited <https://www.phpbb.com>
 007  * @license GNU General Public License, version 2 (GPL-2.0)
 008  *
 009  * For full copyright and license information, please see
 010  * the docs/CREDITS.txt file.
 011  *
 012  */
 013   
 014  /**
 015  * DO NOT CHANGE
 016  */
 017  if (!defined('IN_PHPBB'))
 018  {
 019      exit;
 020  }
 021   
 022  if (empty($lang) || !is_array($lang))
 023  {
 024      $lang = array();
 025  }
 026   
 027  // DEVELOPERS PLEASE NOTE
 028  //
 029  // All language files should use UTF-8 as their encoding and the files must not contain a BOM.
 030  //
 031  // Placeholders can now contain order information, e.g. instead of
 032  // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
 033  // translators to re-order the output of data while ensuring it remains correct
 034  //
 035  // You do not need this where single placeholders are used, e.g. 'Message %d' is fine
 036  // equally where a string contains only two placeholders which are used to wrap text
 037  // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
 038   
 039  /**
 040  *    EXTENSION-DEVELOPERS PLEASE NOTE
 041  *
 042  *    You are able to put your permission sets into your extension.
 043  *    The permissions logic should be added via the 'core.permissions' event.
 044  *    You can easily add new permission categories, types and permissions, by
 045  *    simply merging them into the respective arrays.
 046  *    The respective language strings should be added into a language file, that
 047  *    start with 'permissions_', so they are automatically loaded within the ACP.
 048  */
 049   
 050  $lang = array_merge($lang, array(
 051      'ACL_CAT_ACTIONS'        => 'Actions',
 052      'ACL_CAT_CONTENT'        => 'Content',
 053      'ACL_CAT_FORUMS'        => 'Forums',
 054      'ACL_CAT_MISC'            => 'Misc',
 055      'ACL_CAT_PERMISSIONS'    => 'Permissions',
 056      'ACL_CAT_PM'            => 'Private messages',
 057      'ACL_CAT_POLLS'            => 'Polls',
 058      'ACL_CAT_POST'            => 'Post',
 059      'ACL_CAT_POST_ACTIONS'    => 'Post actions',
 060      'ACL_CAT_POSTING'        => 'Posting',
 061      'ACL_CAT_PROFILE'        => 'Profile',
 062      'ACL_CAT_SETTINGS'        => 'Settings',
 063      'ACL_CAT_TOPIC_ACTIONS'    => 'Topic actions',
 064      'ACL_CAT_USER_GROUP'    => 'Users &amp; Groups',
 065  ));
 066   
 067  // User Permissions
 068  $lang = array_merge($lang, array(
 069      'ACL_U_VIEWPROFILE'    => 'Can view profiles, memberlist and online list',
 070      'ACL_U_CHGNAME'        => 'Can change username',
 071      'ACL_U_CHGPASSWD'    => 'Can change password',
 072      'ACL_U_CHGEMAIL'    => 'Can change email address',
 073      'ACL_U_CHGAVATAR'    => 'Can change avatar',
 074      'ACL_U_CHGGRP'        => 'Can change default usergroup',
 075      'ACL_U_CHGPROFILEINFO'    => 'Can change profile field information',
 076   
 077      'ACL_U_ATTACH'        => 'Can attach files',
 078      'ACL_U_DOWNLOAD'    => 'Can download files',
 079      'ACL_U_SAVEDRAFTS'    => 'Can save drafts',
 080      'ACL_U_CHGCENSORS'    => 'Can disable word censors',
 081      'ACL_U_SIG'            => 'Can use signature',
 082   
 083      'ACL_U_SENDPM'        => 'Can send private messages',
 084      'ACL_U_MASSPM'        => 'Can send messages to multiple users',
 085      'ACL_U_MASSPM_GROUP'=> 'Can send messages to groups',
 086      'ACL_U_READPM'        => 'Can read private messages',
 087      'ACL_U_PM_EDIT'        => 'Can edit own private messages',
 088      'ACL_U_PM_DELETE'    => 'Can remove private messages from own folder',
 089      'ACL_U_PM_FORWARD'    => 'Can forward private messages',
 090      'ACL_U_PM_EMAILPM'    => 'Can email private messages',
 091      'ACL_U_PM_PRINTPM'    => 'Can print private messages',
 092      'ACL_U_PM_ATTACH'    => 'Can attach files in private messages',
 093      'ACL_U_PM_DOWNLOAD'    => 'Can download files in private messages',
 094      'ACL_U_PM_BBCODE'    => 'Can use BBCode in private messages',
 095      'ACL_U_PM_SMILIES'    => 'Can use smilies in private messages',
 096      'ACL_U_PM_IMG'        => 'Can use [img] BBCode tag in private messages',
 097      'ACL_U_PM_FLASH'    => 'Can use [flash] BBCode tag in private messages',
 098   
 099      'ACL_U_SENDEMAIL'    => 'Can send emails',
 100      'ACL_U_SENDIM'        => 'Can send instant messages',
 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_READ'        => 'Can read forum',
 111      'ACL_F_SEARCH'        => 'Can search the forum',
 112      'ACL_F_SUBSCRIBE'    => 'Can subscribe forum',
 113      'ACL_F_PRINT'        => 'Can print topics',
 114      'ACL_F_EMAIL'        => 'Can email topics',
 115      'ACL_F_BUMP'        => 'Can bump topics',
 116      'ACL_F_USER_LOCK'    => 'Can lock own topics',
 117      'ACL_F_DOWNLOAD'    => 'Can download files',
 118      'ACL_F_REPORT'        => 'Can report posts',
 119   
 120      'ACL_F_POST'        => 'Can start new topics',
 121      'ACL_F_STICKY'        => 'Can post stickies',
 122      'ACL_F_ANNOUNCE'    => 'Can post announcements',
 123      'ACL_F_REPLY'        => 'Can reply to topics',
 124      'ACL_F_EDIT'        => 'Can edit own posts',
 125      'ACL_F_DELETE'        => 'Can permanently delete own posts',
 126      'ACL_F_SOFTDELETE'    => 'Can soft delete own posts<br /><em>Moderators, who have the approve posts permission, can restore soft deleted posts.</em>',
 127      'ACL_F_IGNOREFLOOD' => 'Can ignore flood limit',
 128      'ACL_F_POSTCOUNT'    => 'Increment post counter<br /><em>Please note that this setting only affects new posts.</em>',
 129      'ACL_F_NOAPPROVE'    => 'Can post without approval',
 130   
 131      'ACL_F_ATTACH'        => 'Can attach files',
 132      'ACL_F_ICONS'        => 'Can use topic/post icons',
 133      'ACL_F_BBCODE'        => 'Can use BBCode',
 134      'ACL_F_FLASH'        => 'Can use [flash] BBCode tag',
 135      'ACL_F_IMG'            => 'Can use [img] BBCode tag',
 136      'ACL_F_SIGS'        => 'Can use signatures',
 137      'ACL_F_SMILIES'        => 'Can use smilies',
 138   
 139      'ACL_F_POLL'        => 'Can create polls',
 140      'ACL_F_VOTE'        => 'Can vote in polls',
 141      'ACL_F_VOTECHG'        => 'Can change existing vote',
 142  ));
 143   
 144  // Moderator Permissions
 145  $lang = array_merge($lang, array(
 146      'ACL_M_EDIT'        => 'Can edit posts',
 147      'ACL_M_DELETE'        => 'Can permanently delete posts',
 148      'ACL_M_SOFTDELETE'    => 'Can soft delete posts<br /><em>Moderators, who have the approve posts permission, can restore soft deleted posts.</em>',
 149      'ACL_M_APPROVE'        => 'Can approve and restore posts',
 150      'ACL_M_REPORT'        => 'Can close and delete reports',
 151      'ACL_M_CHGPOSTER'    => 'Can change post author',
 152   
 153      'ACL_M_MOVE'    => 'Can move topics',
 154      'ACL_M_LOCK'    => 'Can lock topics',
 155      'ACL_M_SPLIT'    => 'Can split topics',
 156      'ACL_M_MERGE'    => 'Can merge topics',
 157   
 158      'ACL_M_INFO'    => 'Can view post details',
 159      'ACL_M_WARN'    => 'Can issue warnings<br /><em>This setting is only assigned globally. It is not forum based.</em>', // This moderator setting is only global (and not local)
 160      'ACL_M_BAN'        => 'Can manage bans<br /><em>This setting is only assigned globally. It is not forum based.</em>', // This moderator setting is only global (and not local)
 161  ));
 162   
 163  // Admin Permissions
 164  $lang = array_merge($lang, array(
 165      'ACL_A_BOARD'        => 'Can alter board settings/check for updates',
 166      'ACL_A_SERVER'        => 'Can alter server/communication settings',
 167      'ACL_A_JABBER'        => 'Can alter Jabber settings',
 168      'ACL_A_PHPINFO'        => 'Can view php settings',
 169   
 170      'ACL_A_FORUM'        => 'Can manage forums',
 171      'ACL_A_FORUMADD'    => 'Can add new forums',
 172      'ACL_A_FORUMDEL'    => 'Can delete forums',
 173      'ACL_A_PRUNE'        => 'Can prune forums',
 174   
 175      'ACL_A_ICONS'        => 'Can alter topic/post icons and smilies',
 176      'ACL_A_WORDS'        => 'Can alter word censors',
 177      'ACL_A_BBCODE'        => 'Can define BBCode tags',
 178      'ACL_A_ATTACH'        => 'Can alter attachment related settings',
 179   
 180      'ACL_A_USER'        => 'Can manage users<br /><em>This also includes seeing the users browser agent within the viewonline list.</em>',
 181      'ACL_A_USERDEL'        => 'Can delete/prune users',
 182      'ACL_A_GROUP'        => 'Can manage groups',
 183      'ACL_A_GROUPADD'    => 'Can add new groups',
 184      'ACL_A_GROUPDEL'    => 'Can delete groups',
 185      'ACL_A_RANKS'        => 'Can manage ranks',
 186      'ACL_A_PROFILE'        => 'Can manage custom profile fields',
 187      'ACL_A_NAMES'        => 'Can manage disallowed names',
 188      'ACL_A_BAN'            => 'Can manage bans',
 189   
 190      'ACL_A_VIEWAUTH'    => 'Can view permission masks',
 191      'ACL_A_AUTHGROUPS'    => 'Can alter permissions for individual groups',
 192      'ACL_A_AUTHUSERS'    => 'Can alter permissions for individual users',
 193      'ACL_A_FAUTH'        => 'Can alter forum permission class',
 194      'ACL_A_MAUTH'        => 'Can alter moderator permission class',
 195      'ACL_A_AAUTH'        => 'Can alter admin permission class',
 196      'ACL_A_UAUTH'        => 'Can alter user permission class',
 197      'ACL_A_ROLES'        => 'Can manage roles',
 198      'ACL_A_SWITCHPERM'    => 'Can use others permissions',
 199   
 200      'ACL_A_STYLES'        => 'Can manage styles',
 201      'ACL_A_EXTENSIONS'    => 'Can manage extensions',
 202      'ACL_A_VIEWLOGS'    => 'Can view logs',
 203      'ACL_A_CLEARLOGS'    => 'Can clear logs',
 204      'ACL_A_MODULES'        => 'Can manage modules',
 205      'ACL_A_LANGUAGE'    => 'Can manage language packs',
 206      'ACL_A_EMAIL'        => 'Can send mass email',
 207      'ACL_A_BOTS'        => 'Can manage bots',
 208      'ACL_A_REASONS'        => 'Can manage report/denial reasons',
 209      'ACL_A_BACKUP'        => 'Can backup/restore database',
 210      'ACL_A_SEARCH'        => 'Can manage search backends and settings',
 211  ));
 212