|
|
4c79b5 |
|
|
|
4c79b5 |
/**
|
|
|
4c79b5 |
* acp_permissions_phpbb (phpBB Permission Set) [English]
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* @package language
|
|
|
4c79b5 |
* @version $Id: permissions_phpbb.php 8911 2008-09-23 13:03:33Z acydburn $
|
|
|
4c79b5 |
* @copyright (c) 2005 phpBB Group
|
|
|
4c79b5 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
|
4c79b5 |
*/
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/**
|
|
|
4c79b5 |
* DO NOT CHANGE
|
|
|
4c79b5 |
*/
|
|
|
4c79b5 |
if (!defined('IN_PHPBB'))
|
|
|
4c79b5 |
{
|
|
|
4c79b5 |
exit;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if (empty($lang) || !is_array($lang))
|
|
|
4c79b5 |
{
|
|
|
4c79b5 |
$lang = array();
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// DEVELOPERS PLEASE NOTE
|
|
|
4c79b5 |
//
|
|
|
4c79b5 |
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
|
|
|
4c79b5 |
//
|
|
|
4c79b5 |
// Placeholders can now contain order information, e.g. instead of
|
|
|
4c79b5 |
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
|
|
|
4c79b5 |
// translators to re-order the output of data while ensuring it remains correct
|
|
|
4c79b5 |
//
|
|
|
4c79b5 |
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
|
|
|
4c79b5 |
// equally where a string contains only two placeholders which are used to wrap text
|
|
|
4c79b5 |
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
|
|
|
4c79b5 |
|
|
|
4c79b5 |
/**
|
|
|
4c79b5 |
* MODDERS PLEASE NOTE
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* You are able to put your permission sets into a separate file too by
|
|
|
4c79b5 |
* prefixing the new file with permissions_ and putting it into the acp
|
|
|
4c79b5 |
* language folder.
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* An example of how the file could look like:
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* if (empty($lang) || !is_array($lang))
|
|
|
4c79b5 |
* {
|
|
|
4c79b5 |
* $lang = array();
|
|
|
4c79b5 |
* }
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* // Adding new category
|
|
|
4c79b5 |
* $lang['permission_cat']['bugs'] = 'Bugs';
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* // Adding new permission set
|
|
|
4c79b5 |
* $lang['permission_type']['bug_'] = 'Bug Permissions';
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
* // Adding the permissions
|
|
|
4c79b5 |
* $lang = array_merge($lang, array(
|
|
|
4c79b5 |
* 'acl_bug_view' => array('lang' => 'Can view bug reports', 'cat' => 'bugs'),
|
|
|
4c79b5 |
* 'acl_bug_post' => array('lang' => 'Can post bugs', 'cat' => 'post'), // Using a phpBB category here
|
|
|
4c79b5 |
* ));
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
*
|
|
|
4c79b5 |
*/
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// Define categories and permission types
|
|
|
4c79b5 |
$lang = array_merge($lang, array(
|
|
|
4c79b5 |
'permission_cat' => array(
|
|
|
4c79b5 |
'actions' => 'Actions',
|
|
|
4c79b5 |
'content' => 'Content',
|
|
|
4c79b5 |
'forums' => 'Forums',
|
|
|
4c79b5 |
'misc' => 'Misc',
|
|
|
4c79b5 |
'permissions' => 'Permissions',
|
|
|
4c79b5 |
'pm' => 'Private messages',
|
|
|
4c79b5 |
'polls' => 'Polls',
|
|
|
4c79b5 |
'post' => 'Post',
|
|
|
4c79b5 |
'post_actions' => 'Post actions',
|
|
|
4c79b5 |
'posting' => 'Posting',
|
|
|
4c79b5 |
'profile' => 'Profile',
|
|
|
4c79b5 |
'settings' => 'Settings',
|
|
|
4c79b5 |
'topic_actions' => 'Topic actions',
|
|
|
4c79b5 |
'user_group' => 'Users & Groups',
|
|
|
4c79b5 |
),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// With defining 'global' here we are able to specify what is printed out if the permission is within the global scope.
|
|
|
4c79b5 |
'permission_type' => array(
|
|
|
4c79b5 |
'u_' => 'User permissions',
|
|
|
4c79b5 |
'a_' => 'Admin permissions',
|
|
|
4c79b5 |
'm_' => 'Moderator permissions',
|
|
|
4c79b5 |
'f_' => 'Forum permissions',
|
|
|
4c79b5 |
'global' => array(
|
|
|
4c79b5 |
'm_' => 'Global moderator permissions',
|
|
|
4c79b5 |
),
|
|
|
4c79b5 |
),
|
|
|
4c79b5 |
));
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// User Permissions
|
|
|
4c79b5 |
$lang = array_merge($lang, array(
|
|
|
4c79b5 |
'acl_u_viewprofile' => array('lang' => 'Can view profiles, memberlist and online list', 'cat' => 'profile'),
|
|
|
4c79b5 |
'acl_u_chgname' => array('lang' => 'Can change username', 'cat' => 'profile'),
|
|
|
4c79b5 |
'acl_u_chgpasswd' => array('lang' => 'Can change password', 'cat' => 'profile'),
|
|
|
4c79b5 |
'acl_u_chgemail' => array('lang' => 'Can change e-mail address', 'cat' => 'profile'),
|
|
|
4c79b5 |
'acl_u_chgavatar' => array('lang' => 'Can change avatar', 'cat' => 'profile'),
|
|
|
4c79b5 |
'acl_u_chggrp' => array('lang' => 'Can change default usergroup', 'cat' => 'profile'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_u_attach' => array('lang' => 'Can attach files', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_u_download' => array('lang' => 'Can download files', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_u_savedrafts' => array('lang' => 'Can save drafts', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_u_chgcensors' => array('lang' => 'Can disable word censors', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_u_sig' => array('lang' => 'Can use signature', 'cat' => 'post'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_u_sendpm' => array('lang' => 'Can send private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_masspm' => array('lang' => 'Can send messages to multiple users', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_masspm_group'=> array('lang' => 'Can send messages to groups', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_readpm' => array('lang' => 'Can read private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_edit' => array('lang' => 'Can edit own private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_delete' => array('lang' => 'Can remove private messages from own folder', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_forward' => array('lang' => 'Can forward private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_emailpm' => array('lang' => 'Can e-mail private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_printpm' => array('lang' => 'Can print private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_attach' => array('lang' => 'Can attach files in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_download' => array('lang' => 'Can download files in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_bbcode' => array('lang' => 'Can post BBCode in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_smilies' => array('lang' => 'Can post smilies in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_img' => array('lang' => 'Can post images in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
'acl_u_pm_flash' => array('lang' => 'Can post Flash in private messages', 'cat' => 'pm'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_u_sendemail' => array('lang' => 'Can send e-mails', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_u_sendim' => array('lang' => 'Can send instant messages', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_u_ignoreflood' => array('lang' => 'Can ignore flood limit', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_u_hideonline' => array('lang' => 'Can hide online status', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_u_viewonline' => array('lang' => 'Can view hidden online users', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_u_search' => array('lang' => 'Can search board', 'cat' => 'misc'),
|
|
|
4c79b5 |
));
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// Forum Permissions
|
|
|
4c79b5 |
$lang = array_merge($lang, array(
|
|
|
4c79b5 |
'acl_f_list' => array('lang' => 'Can see forum', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_read' => array('lang' => 'Can read forum', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_post' => array('lang' => 'Can start new topics', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_reply' => array('lang' => 'Can reply to topics', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_icons' => array('lang' => 'Can use topic/post icons', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_announce' => array('lang' => 'Can post announcements', 'cat' => 'post'),
|
|
|
4c79b5 |
'acl_f_sticky' => array('lang' => 'Can post stickies', 'cat' => 'post'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_f_poll' => array('lang' => 'Can create polls', 'cat' => 'polls'),
|
|
|
4c79b5 |
'acl_f_vote' => array('lang' => 'Can vote in polls', 'cat' => 'polls'),
|
|
|
4c79b5 |
'acl_f_votechg' => array('lang' => 'Can change existing vote', 'cat' => 'polls'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_f_attach' => array('lang' => 'Can attach files', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_download' => array('lang' => 'Can download files', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_sigs' => array('lang' => 'Can use signatures', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_bbcode' => array('lang' => 'Can post BBCode', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_smilies' => array('lang' => 'Can post smilies', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_img' => array('lang' => 'Can post images', 'cat' => 'content'),
|
|
|
4c79b5 |
'acl_f_flash' => array('lang' => 'Can post Flash', 'cat' => 'content'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_f_edit' => array('lang' => 'Can edit own posts', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_delete' => array('lang' => 'Can delete own posts', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_user_lock' => array('lang' => 'Can lock own topics', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_bump' => array('lang' => 'Can bump topics', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_report' => array('lang' => 'Can report posts', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_subscribe' => array('lang' => 'Can subscribe forum', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_print' => array('lang' => 'Can print topics', 'cat' => 'actions'),
|
|
|
4c79b5 |
'acl_f_email' => array('lang' => 'Can e-mail topics', 'cat' => 'actions'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_f_search' => array('lang' => 'Can search the forum', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_f_ignoreflood' => array('lang' => 'Can ignore flood limit', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_f_postcount' => array('lang' => 'Increment post counter Please note that this setting only affects new posts.', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_f_noapprove' => array('lang' => 'Can post without approval', 'cat' => 'misc'),
|
|
|
4c79b5 |
));
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// Moderator Permissions
|
|
|
4c79b5 |
$lang = array_merge($lang, array(
|
|
|
4c79b5 |
'acl_m_edit' => array('lang' => 'Can edit posts', 'cat' => 'post_actions'),
|
|
|
4c79b5 |
'acl_m_delete' => array('lang' => 'Can delete posts', 'cat' => 'post_actions'),
|
|
|
4c79b5 |
'acl_m_approve' => array('lang' => 'Can approve posts', 'cat' => 'post_actions'),
|
|
|
4c79b5 |
'acl_m_report' => array('lang' => 'Can close and delete reports', 'cat' => 'post_actions'),
|
|
|
4c79b5 |
'acl_m_chgposter' => array('lang' => 'Can change post author', 'cat' => 'post_actions'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_m_move' => array('lang' => 'Can move topics', 'cat' => 'topic_actions'),
|
|
|
4c79b5 |
'acl_m_lock' => array('lang' => 'Can lock topics', 'cat' => 'topic_actions'),
|
|
|
4c79b5 |
'acl_m_split' => array('lang' => 'Can split topics', 'cat' => 'topic_actions'),
|
|
|
4c79b5 |
'acl_m_merge' => array('lang' => 'Can merge topics', 'cat' => 'topic_actions'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_m_info' => array('lang' => 'Can view post details', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_m_warn' => array('lang' => 'Can issue warnings This setting is only assigned globally. It is not forum based.', 'cat' => 'misc'), // This moderator setting is only global (and not local)
|
|
|
4c79b5 |
'acl_m_ban' => array('lang' => 'Can manage bans This setting is only assigned globally. It is not forum based.', 'cat' => 'misc'), // This moderator setting is only global (and not local)
|
|
|
4c79b5 |
));
|
|
|
4c79b5 |
|
|
|
4c79b5 |
// Admin Permissions
|
|
|
4c79b5 |
$lang = array_merge($lang, array(
|
|
|
4c79b5 |
'acl_a_board' => array('lang' => 'Can alter board settings/check for updates', 'cat' => 'settings'),
|
|
|
4c79b5 |
'acl_a_server' => array('lang' => 'Can alter server/communication settings', 'cat' => 'settings'),
|
|
|
4c79b5 |
'acl_a_jabber' => array('lang' => 'Can alter Jabber settings', 'cat' => 'settings'),
|
|
|
4c79b5 |
'acl_a_phpinfo' => array('lang' => 'Can view php settings', 'cat' => 'settings'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_a_forum' => array('lang' => 'Can manage forums', 'cat' => 'forums'),
|
|
|
4c79b5 |
'acl_a_forumadd' => array('lang' => 'Can add new forums', 'cat' => 'forums'),
|
|
|
4c79b5 |
'acl_a_forumdel' => array('lang' => 'Can delete forums', 'cat' => 'forums'),
|
|
|
4c79b5 |
'acl_a_prune' => array('lang' => 'Can prune forums', 'cat' => 'forums'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_a_icons' => array('lang' => 'Can alter topic/post icons and smilies', 'cat' => 'posting'),
|
|
|
4c79b5 |
'acl_a_words' => array('lang' => 'Can alter word censors', 'cat' => 'posting'),
|
|
|
4c79b5 |
'acl_a_bbcode' => array('lang' => 'Can define BBCode tags', 'cat' => 'posting'),
|
|
|
4c79b5 |
'acl_a_attach' => array('lang' => 'Can alter attachment related settings', 'cat' => 'posting'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_a_user' => array('lang' => 'Can manage users This also includes seeing the users browser agent within the viewonline list.', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_userdel' => array('lang' => 'Can delete/prune users', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_group' => array('lang' => 'Can manage groups', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_groupadd' => array('lang' => 'Can add new groups', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_groupdel' => array('lang' => 'Can delete groups', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_ranks' => array('lang' => 'Can manage ranks', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_profile' => array('lang' => 'Can manage custom profile fields', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_names' => array('lang' => 'Can manage disallowed names', 'cat' => 'user_group'),
|
|
|
4c79b5 |
'acl_a_ban' => array('lang' => 'Can manage bans', 'cat' => 'user_group'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_a_viewauth' => array('lang' => 'Can view permission masks', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_authgroups' => array('lang' => 'Can alter permissions for individual groups', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_authusers' => array('lang' => 'Can alter permissions for individual users', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_fauth' => array('lang' => 'Can alter forum permission class', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_mauth' => array('lang' => 'Can alter moderator permission class', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_aauth' => array('lang' => 'Can alter admin permission class', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_uauth' => array('lang' => 'Can alter user permission class', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_roles' => array('lang' => 'Can manage roles', 'cat' => 'permissions'),
|
|
|
4c79b5 |
'acl_a_switchperm' => array('lang' => 'Can use others permissions', 'cat' => 'permissions'),
|
|
|
4c79b5 |
|
|
|
4c79b5 |
'acl_a_styles' => array('lang' => 'Can manage styles', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_viewlogs' => array('lang' => 'Can view logs', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_clearlogs' => array('lang' => 'Can clear logs', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_modules' => array('lang' => 'Can manage modules', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_language' => array('lang' => 'Can manage language packs', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_email' => array('lang' => 'Can send mass e-mail', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_bots' => array('lang' => 'Can manage bots', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_reasons' => array('lang' => 'Can manage report/denial reasons', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_backup' => array('lang' => 'Can backup/restore database', 'cat' => 'misc'),
|
|
|
4c79b5 |
'acl_a_search' => array('lang' => 'Can manage search backends and settings', 'cat' => 'misc'),
|
|
|
4c79b5 |
));
|
|
|
4c79b5 |
|
|
|
4c79b5 |
?>
|