mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
Group related updates
git-svn-id: file:///svn/phpbb/trunk@3455 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a6bf34acf6
commit
e0a71f56ce
@ -56,66 +56,10 @@ switch ($action)
|
||||
case 'edit':
|
||||
case 'addgroup':
|
||||
|
||||
if (isset($_POST['submit']))
|
||||
{
|
||||
$group_name = (!empty($_POST['group_name'])) ? $_POST['group_name'] : '';
|
||||
$group_description = (!empty($_POST['group_description'])) ? $_POST['group_description'] : '';
|
||||
$group_type = (!empty($_POST['group_type'])) ? $_POST['group_type'] : '';
|
||||
$group_color = (!empty($_POST['group_color'])) ? $_POST['group_color'] : '';
|
||||
$group_rank = (!empty($_POST['group_rank'])) ? $_POST['group_rank'] : '';
|
||||
$error = '';
|
||||
|
||||
$force_color = (!empty($_POST['force_color'])) ? true : false;
|
||||
|
||||
// Check data
|
||||
|
||||
if ($group_color != '')
|
||||
{
|
||||
$color_sql = (!$force_color) ? "AND user_colour = ''" : '';
|
||||
switch (SQL_LAYER)
|
||||
{
|
||||
case 'mysql':
|
||||
case 'mysql4':
|
||||
$sql = "SELECT user_id
|
||||
FROM " . USER_GROUP_TABLE . "
|
||||
WHERE group_id = $group_id";
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
if ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$user_id_sql = '';
|
||||
do
|
||||
{
|
||||
$user_id_sql .= (($user_id_sql != '') ? ', ' : '') . $row['user_id'];
|
||||
}
|
||||
while ($row = $db->sql_fetchrow($result));
|
||||
|
||||
$sql = "UPDATE " . USERS_TABLE . "
|
||||
SET user_colour = '$group_color'
|
||||
WHERE user_id IN ($user_id_sql)
|
||||
$color_sql";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
unset($user_id_sql);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$sql = "UPDATE " . USERS_TABLE . "
|
||||
SET user_colour = '$group_color'
|
||||
WHERE user_id IN (
|
||||
SELECT user_id
|
||||
FROM " . USER_GROUP_TABLE . "
|
||||
WHERE group_id = $group_id)
|
||||
$color_sql";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
trigger_error('Done');
|
||||
}
|
||||
}
|
||||
|
||||
if ($action == 'edit' && empty($_POST['submit']))
|
||||
// Grab data, even when submitting updates
|
||||
if ($action == 'edit')
|
||||
{
|
||||
$sql = "SELECT *
|
||||
FROM " . GROUPS_TABLE . "
|
||||
@ -127,6 +71,124 @@ switch ($action)
|
||||
trigger_error($user->lang['NO_GROUP']);
|
||||
}
|
||||
}
|
||||
|
||||
// Did we submit?
|
||||
if (isset($_POST['submit']) || isset($_POST['submitprefs']))
|
||||
{
|
||||
if (isset($_POST['submit']))
|
||||
{
|
||||
if ($group_type != GROUP_SPECIAL)
|
||||
{
|
||||
$group_name = (!empty($_POST['group_name'])) ? htmlspecialchars($_POST['group_name']) : '';
|
||||
$group_type = (!empty($_POST['group_type'])) ? intval($_POST['group_type']) : '';
|
||||
}
|
||||
$group_description = (!empty($_POST['group_description'])) ? htmlspecialchars($_POST['group_description']) : '';
|
||||
$group_colour = (!empty($_POST['group_colour'])) ? htmlspecialchars($_POST['group_colour']) : '';
|
||||
$group_rank = (isset($_POST['group_rank'])) ? intval($_POST['group_rank']) : '';
|
||||
$group_avatar = (!empty($_POST['group_avatar'])) ? htmlspecialchars($_POST['group_avatar']) : '';
|
||||
|
||||
// Check data
|
||||
if ($group_name == '' || strlen($group_name) > 40)
|
||||
{
|
||||
$error .= (($error != '') ? '<br />' : '') . (($group_name == '') ? $user->lang['GROUP_ERR_USERNAME'] : $user->lang['GROUP_ERR_USER_LONG']);
|
||||
}
|
||||
if (strlen($group_description) > 255)
|
||||
{
|
||||
$error .= (($error != '') ? '<br />' : '') . $user->lang['GROUP_ERR_DESC_LONG'];
|
||||
}
|
||||
if ($group_type < GROUP_OPEN || $group_type > GROUP_FREE)
|
||||
{
|
||||
$error .= (($error != '') ? '<br />' : '') . $user->lang['GROUP_ERR_TYPE'];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$user_lang = (!empty($_POST['user_lang'])) ? htmlspecialchars($_POST['user_lang']) : '';
|
||||
$user_tz = (isset($_POST['user_tz'])) ? doubleval($_POST['user_tz']) : '';
|
||||
$user_dst = (isset($_POST['user_dst'])) ? intval($_POST['user_dst']) : '';
|
||||
}
|
||||
|
||||
// Update DB
|
||||
if (!$error)
|
||||
{
|
||||
// Update group preferences
|
||||
$sql = "UPDATE " . GROUPS_TABLE . "
|
||||
SET group_name = '$group_name', group_description = '$group_description', group_type = $group_type, group_rank = $group_rank, group_colour = '$group_colour'
|
||||
WHERE group_id = $group_id";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$user_sql = '';
|
||||
$user_sql .= (isset($_POST['submit'])) ? ((($user_sql != '') ? ', ' : '') . "user_colour = '$group_colour'") : '';
|
||||
$user_sql .= (isset($_POST['submit']) && $group_rank != -1) ? ((($user_sql != '') ? ', ' : '') . "user_rank = $group_rank") : '';
|
||||
$user_sql .= (isset($_POST['submitprefs']) && $user_lang != -1) ? ((($user_sql != '') ? ', ' : '') . "user_lang = '$user_lang'") : '';
|
||||
$user_sql .= (isset($_POST['submitprefs']) && $user_tz != -14) ? ((($user_sql != '') ? ', ' : '') . "user_timezone = $user_tz") : '';
|
||||
$user_sql .= (isset($_POST['submitprefs']) && $user_dst != -1) ? ((($user_sql != '') ? ', ' : '') . "user_dst = $user_dst") : '';
|
||||
|
||||
// Update group members preferences
|
||||
switch (SQL_LAYER)
|
||||
{
|
||||
case 'mysql':
|
||||
case 'mysql4':
|
||||
// batchwise? 500 at a time or so maybe? try to reduce memory useage
|
||||
$more = true;
|
||||
$start = 0;
|
||||
do
|
||||
{
|
||||
$sql = "SELECT user_id
|
||||
FROM " . USER_GROUP_TABLE . "
|
||||
WHERE group_id = $group_id
|
||||
LIMIT $start, 500";
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
if ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$user_count = 0;
|
||||
$user_id_sql = '';
|
||||
do
|
||||
{
|
||||
$user_id_sql .= (($user_id_sql != '') ? ', ' : '') . $row['user_id'];
|
||||
$user_count++;
|
||||
}
|
||||
while ($row = $db->sql_fetchrow($result));
|
||||
|
||||
$sql = "UPDATE " . USERS_TABLE . "
|
||||
SET $user_sql
|
||||
WHERE user_id IN ($user_id_sql)";
|
||||
$db->sql_query($sql);
|
||||
|
||||
if ($user_count == 500)
|
||||
{
|
||||
$start += 500;
|
||||
}
|
||||
else
|
||||
{
|
||||
$more = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$more = false;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
unset($user_id_sql);
|
||||
}
|
||||
while ($more);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$sql = "UPDATE " . USERS_TABLE . "
|
||||
SET $user_sql
|
||||
WHERE user_id IN (
|
||||
SELECT user_id
|
||||
FROM " . USER_GROUP_TABLE . "
|
||||
WHERE group_id = $group_id)";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
trigger_error($user->lang['GROUP_UPDATED']);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -158,9 +220,6 @@ switch ($action)
|
||||
$type_hidden = ($group_type == GROUP_HIDDEN) ? ' checked="checked"' : '';
|
||||
$type_free = ($group_type == GROUP_FREE) ? ' checked="checked"' : '';
|
||||
|
||||
$force_color_yes = (!isset($force_color) || $force_color) ? ' checked="checked"' : '';
|
||||
$force_color_no = (isset($force_color) && !$force_color) ? ' checked="checked"' : '';
|
||||
|
||||
?>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
@ -168,17 +227,31 @@ switch ($action)
|
||||
|
||||
function swatch()
|
||||
{
|
||||
window.open('./swatch.php?form=settings&name=group_color', '_swatch', 'HEIGHT=115,resizable=yes,scrollbars=no,WIDTH=636');
|
||||
window.open('./swatch.php?form=settings&name=group_colour', '_swatch', 'HEIGHT=115,resizable=yes,scrollbars=no,WIDTH=636');
|
||||
return false;
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<form name="settings" method="post" action="admin_groups.<?php echo "$phpEx$SID&action=edit&g=$group_id"; ?>"><table class="bg" width="90%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||
<form name="settings" method="post" action="admin_groups.<?php echo "$phpEx$SID&action=$action&g=$group_id"; ?>"><table class="bg" width="90%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||
<tr>
|
||||
<th colspan="2"><?php echo $user->lang['GROUP_DETAILS']; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
if ($error != '')
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="row1" colspan="2" align="center"><span style="color:red"><?php echo $error; ?></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_NAME']; ?>:</td>
|
||||
<td class="row1"><?php
|
||||
@ -222,27 +295,18 @@ function swatch()
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_COLOR']; ?>:<br /><span class="gensmall"><?php echo sprintf($user->lang['GROUP_COLOR_EXPLAIN'], '<a href="swatch.html" onclick="swatch();return false" target="_swatch">', '</a>'); ?></span></td>
|
||||
<td class="row1" nowrap="nowrap"><input type="text" name="group_color" value="<?php echo (!empty($group_color)) ? $group_color : ''; ?>" size="6" maxlength="6" /> <input type="radio" name="force_color" value="1"<?php echo $force_color_yes; ?> /> <?php echo $user->lang['FORCE_COLOR']; ?> <input type="radio" name="force_color" value="0"<?php echo $force_color_no; ?> /> <?php echo $user->lang['USER_COLOR']; ?></td>
|
||||
<td class="row1" nowrap="nowrap"><input type="text" name="group_colour" value="<?php echo (!empty($group_colour)) ? $group_colour : ''; ?>" size="6" maxlength="6" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_RANK']; ?>:</td>
|
||||
<td class="row1"><select name="group_rank"><?php echo $rank_options; ?></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_AVATAR']; ?>:<br /><span class="gensmall"><?php echo $user->lang['GROUP_AVATAR_EXPLAIN']; ?></span></td>
|
||||
<td class="row1"> </td>
|
||||
</tr>
|
||||
</tr -->
|
||||
<tr>
|
||||
<td class="cat" colspan="2" align="center"><?php
|
||||
|
||||
if ($group_type == GROUP_SPECIAL)
|
||||
{
|
||||
|
||||
?><input type="hidden" name="group_type" value="<?php echo GROUP_SPECIAL; ?>" /><?php
|
||||
|
||||
}
|
||||
|
||||
?><input class="mainoption" type="submit" name="submit" value="<?php echo $user->lang['SUBMIT']; ?>" /> <input class="liteoption" type="reset" value="<?php echo $user->lang['RESET']; ?>" /></td>
|
||||
<td class="cat" colspan="2" align="center"><input class="mainoption" type="submit" name="submit" value="<?php echo $user->lang['SUBMIT']; ?>" /> <input class="liteoption" type="reset" value="<?php echo $user->lang['RESET']; ?>" /></td>
|
||||
</tr>
|
||||
</table></form>
|
||||
|
||||
@ -256,15 +320,15 @@ function swatch()
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_LANG']; ?>:</td>
|
||||
<td class="row1"><select name="tz"><?php echo '<option value="-1" selected="selected">' . $user->lang['USER_DEFAULT'] . '</option>' . language_select(); ?></select></td>
|
||||
<td class="row1"><select name="user_lang"><?php echo '<option value="-1" selected="selected">' . $user->lang['USER_DEFAULT'] . '</option>' . language_select(); ?></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_TIMEZONE']; ?>:</td>
|
||||
<td class="row1"><select name="tz"><?php echo '<option value="-1" selected="selected">' . $user->lang['USER_DEFAULT'] . '</option>' . tz_select(); ?></select></td>
|
||||
<td class="row1"><select name="user_tz"><?php echo '<option value="-14" selected="selected">' . $user->lang['USER_DEFAULT'] . '</option>' . tz_select(); ?></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row2"><?php echo $user->lang['GROUP_DST']; ?>:</td>
|
||||
<td class="row1" nowrap="nowrap"><input type="radio" name="dst" value="0" /> <?php echo $user->lang['DISABLED']; ?> <input type="radio" name="dst" value="1" /> <?php echo $user->lang['ENABLED']; ?> <input type="radio" name="dst" value="-1" checked="checked" /> <?php echo $user->lang['USER_DEFAULT']; ?></td>
|
||||
<td class="row1" nowrap="nowrap"><input type="radio" name="user_dst" value="0" /> <?php echo $user->lang['DISABLED']; ?> <input type="radio" name="user_dst" value="1" /> <?php echo $user->lang['ENABLED']; ?> <input type="radio" name="user_dst" value="-1" checked="checked" /> <?php echo $user->lang['USER_DEFAULT']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="cat" colspan="2" align="center"><?php
|
||||
@ -276,7 +340,7 @@ function swatch()
|
||||
|
||||
}
|
||||
|
||||
?><input class="mainoption" type="submit" name="submit" value="<?php echo $user->lang['SUBMIT']; ?>" /> <input class="liteoption" type="reset" value="<?php echo $user->lang['RESET']; ?>" /></td>
|
||||
?><input class="mainoption" type="submit" name="submitprefs" value="<?php echo $user->lang['SUBMIT']; ?>" /> <input class="liteoption" type="reset" value="<?php echo $user->lang['RESET']; ?>" /></td>
|
||||
</tr>
|
||||
</table></form>
|
||||
|
||||
|
@ -193,6 +193,7 @@ CREATE TABLE phpbb_groups (
|
||||
group_name varchar(40) NOT NULL,
|
||||
group_avatar varchar(100),
|
||||
group_avatar_type tinyint(4),
|
||||
group_rank int(11) DEFAULT '0',
|
||||
group_colour varchar(6) DEFAULT '' NOT NULL,
|
||||
group_description varchar(255) NOT NULL,
|
||||
PRIMARY KEY (group_id)
|
||||
|
@ -126,6 +126,7 @@ $lang = array_merge($lang, array(
|
||||
'RUN_AS_EVT'=> 'Run as Event',
|
||||
'RUN_AS_CRN'=> 'Run as Cron',
|
||||
|
||||
|
||||
'WELCOME_PHPBB' => 'Welcome to phpBB',
|
||||
'ADMIN_INTRO' => 'Thank you for choosing phpBB as your forum solution. This screen will give you a quick overview of all the various statistics of your board. The links on the left hand side of this screen allow you to control every aspect of your forum experience. Each page will have instructions on how to use the tools.',
|
||||
'FORUM_STATS' => 'Forum Statistics',
|
||||
@ -154,6 +155,7 @@ $lang = array_merge($lang, array(
|
||||
'IP' => 'User IP',
|
||||
'ACTION'=> 'Action',
|
||||
|
||||
|
||||
'Database_Utilities' => 'Database Utilities',
|
||||
'Restore' => 'Restore',
|
||||
'Backup' => 'Backup',
|
||||
@ -187,6 +189,7 @@ $lang = array_merge($lang, array(
|
||||
'Compress_unsupported' => 'The version of PHP installed on this server does not support the type of compression used for your backup. Please use a compression method listed on the previous page.',
|
||||
'Restore_Error_no_file' => 'No file was uploaded',
|
||||
|
||||
|
||||
'ACL_EXPLAIN' => 'Permissions are based on an ALLOW / INHERIT / DENY system with all options being denied by default. The precedent is DENY > ALLOW > INHERIT for any combination of user or group settings. The INHERIT setting causes permissions granted elsewhere for the option being used in place of a specific ALLOW / DENY setting here.',
|
||||
'PERMISSIONS_EXPLAIN' => 'Here you can alter which users and groups can access which forums. To assign moderators or define administrators please use the appropriate page (see left hand side menu).',
|
||||
'MODERATORS' => 'Moderators',
|
||||
@ -319,6 +322,7 @@ $lang = array_merge($lang, array(
|
||||
'Confirm_prune_users' => 'Are you sure you wish to prune the selected users?',
|
||||
'Success_user_prune' => 'The selected users have been pruned successfully',
|
||||
|
||||
|
||||
'BAN_EXPLAIN' => 'Here you can control the banning of users by name, IP or email address. These methods prevent a user reaching any part of the board. You can give a short (255 character) reason for the ban if you wish. This will be displayed in the admin log. The length of a ban can also be specified. If you want the ban to end on a specific date rather than after a set time period select <u>Until</u> for the ban length and enter a date in yyyy-mm-dd format.',
|
||||
'BAN_LENGTH' => 'Length of ban',
|
||||
'PERMANENT' => 'Permanent',
|
||||
@ -347,6 +351,7 @@ $lang = array_merge($lang, array(
|
||||
'NO_BANNED_EMAIL' => 'No banned email addresses',
|
||||
'BAN_UPDATE_SUCESSFUL' => 'The banlist has been updated successfully',
|
||||
|
||||
|
||||
'COOKIE_SETTINGS_EXPLAIN' => 'These details define the data used to send cookies to your users browsers. In most cases the default values for the cookie settings should be sufficient. If you do need to change any do so with care, incorrect settings can prevent users logging in.',
|
||||
'Cookie_domain' => 'Cookie domain',
|
||||
'Cookie_name' => 'Cookie name',
|
||||
@ -355,6 +360,7 @@ $lang = array_merge($lang, array(
|
||||
'Cookie_secure_explain' => 'If your server is running via SSL set this to enabled else leave as disabled',
|
||||
'Session_length' => 'Session length [ seconds ]',
|
||||
|
||||
|
||||
'AVATAR_SETTINGS_EXPLAIN' => 'Avatars are generally small, unique images a user can associate with themselves. Depending on the style they are usually displayed below the username when viewing topics. Here you can determine how users can define their avatars. Please note that in order to upload avatars you need to have created the directory you name below and ensure it can be written to by the web server. Please also note that filesize limits are only imposed on uploaded avatars, they do not apply to remotely linked images.',
|
||||
'Allow_local' => 'Enable gallery avatars',
|
||||
'Allow_remote' => 'Enable remote avatars',
|
||||
@ -369,6 +375,7 @@ $lang = array_merge($lang, array(
|
||||
'Avatar_gallery_path' => 'Avatar Gallery Path',
|
||||
'Avatar_gallery_path_explain' => 'Path under your phpBB root dir for pre-loaded images, e.g. images/avatars/gallery',
|
||||
|
||||
|
||||
'SERVER_SETTINGS_EXPLAIN' => 'Here you define server and domain dependant settings. Please ensure the data you enter is accurate, errors will result in emails containing incorrect information. When entering the domain name remember it does include http:// or other protocol term. Only alter the port number if you know your server uses a different value, port 80 is correct in most cases.',
|
||||
'Server_name' => 'Domain Name',
|
||||
'Server_name_explain' => 'The domain name this board runs from',
|
||||
@ -377,6 +384,7 @@ $lang = array_merge($lang, array(
|
||||
'Server_port' => 'Server Port',
|
||||
'Server_port_explain' => 'The port your server is running on, usually 80, only change if different',
|
||||
|
||||
|
||||
'EMAIL_SETTINGS_EXPLAIN' => 'This information is used when the board sends emails to your users. Please ensure the email address you specify is valid, any bounced or undeliverable messages will likely be sent to that address. If your host does not provide a native (PHP based) email service you can instead send messages directly using SMTP. This requires the address of an appropriate server (ask your provider if necessary), do not specify any old name here! If the server requires authentication (and only if it does) enter the necessary username and password. Please note only basic authentication is offered, different authentication implementations are not currently supported.',
|
||||
'Enable_email' => 'Enable board-wide emails',
|
||||
'Enable_email_explain' => 'If this is set to disabled no emails will be sent by the board at all.',
|
||||
@ -394,6 +402,7 @@ $lang = array_merge($lang, array(
|
||||
'SMTP_password_explain' => 'Only enter a password if your smtp server requires it',
|
||||
'Click_return_config' => 'Click %sHere%s to return to General Configuration',
|
||||
|
||||
|
||||
'BOARD_SETTINGS_EXPLAIN' => 'Here you can determine the basic operation of your board, from the site name through user registration to private messaging.',
|
||||
'Site_name' => 'Site name',
|
||||
'Site_desc' => 'Site description',
|
||||
@ -402,6 +411,7 @@ $lang = array_merge($lang, array(
|
||||
'VISUAL_CONFIRM' => 'Enable visual confirmation',
|
||||
'VISUAL_CONFIRM_EXPLAIN' => 'Requires new users enter a random code matching an image to help prevent mass registrations.',
|
||||
|
||||
|
||||
'IP_valid' => 'Session IP validation',
|
||||
'IP_valid_explain' => 'Determines how much of the users IP is used to validate a session; All compares the complete address, A.B.C the first x.x.x, A.B the first x.x, None disables checking.',
|
||||
'All' => 'All',
|
||||
@ -439,6 +449,7 @@ $lang = array_merge($lang, array(
|
||||
'Max_search_chars' => 'Max characters indexed by search',
|
||||
'Max_search_chars_explain' => 'Words with no more than this many characters will be indexed for searching.',
|
||||
|
||||
|
||||
'AUTH_SETTINGS_EXPLAIN' => 'phpBB2 supports authentication plug-ins, or modules. These allow you determine how users are authenticated when they log into the board. By default three plug-ins are provided; DB, LDAP and Apache. Not all methods require additional information so only fill out fields if they are relevant to the selected method.',
|
||||
'Auth_method' => 'Select an authentication method',
|
||||
'LDAP_server' => 'LDAP server name',
|
||||
@ -448,6 +459,7 @@ $lang = array_merge($lang, array(
|
||||
'LDAP_uid' => 'LDAP uid',
|
||||
'LDAP_uid_explain' => 'This is the key under which to search for a given login identity, e.g. uid, sn, etc.',
|
||||
|
||||
|
||||
'BOARD_DEFAULTS_EXPLAIN' => 'These settings allow you to define a number of default or global settings used by the board. For example, to disable the use of HTML across the entire board alter the relevant setting below. This data is also used for new user registrations and (where relevant) guest users.',
|
||||
'Max_poll_options' => 'Max number of poll options',
|
||||
'Topics_per_page' => 'Topics Per Page',
|
||||
@ -479,6 +491,7 @@ $lang = array_merge($lang, array(
|
||||
'Max_sig_length_explain' => 'Maximum number of characters in user signatures',
|
||||
'Allow_name_change' => 'Allow Username changes',
|
||||
|
||||
|
||||
'Forum_admin_explain' => 'In phpBB 2.2 there are no categories, everything is forum based. Each forum can have an unlimited number of sub-forums and you can determine whether each may be posted to or not (i.e. whether it acts like an old category). Here you can add, edit, delete, lock, unlock individual forums as well as set certain additional controls. If your posts and topics have got out of sync you can also resynchronise a forum.',
|
||||
'Edit_forum' => 'Edit forum',
|
||||
'Edit_category' => 'Edit category',
|
||||
@ -527,6 +540,7 @@ $lang = array_merge($lang, array(
|
||||
'Forum_deleted' => 'Forum successfully deleted',
|
||||
'Click_return_forumadmin' => 'Click %sHere%s to return to Forum Administration',
|
||||
|
||||
|
||||
'ICONS_EXPLAIN' => 'From this page you can add, remove and edit the icons users may add to their topics or posts. These icons are generally displayed next to topic titles on the forum listing, or the post subjects in topic listings. You can also install and create new packages of icons.',
|
||||
'SMILE_EXPLAIN' => 'Smilies or emoticons are typically small, sometimes animated images used to convey an emotion or feeling. From this page you can add, remove and edit the emoticons users can use in their posts and private messages. You can also install and create new packages of smilies.',
|
||||
'IMPORT_SMILE' => 'Install smilies pak',
|
||||
@ -583,6 +597,7 @@ $lang = array_merge($lang, array(
|
||||
'ICONS_ADDED' => 'The icon has been added successfully.',
|
||||
'ICONS_IMPORTED' => 'The icons pack has been installed successfully.',
|
||||
|
||||
|
||||
'User_admin' => 'User Administration',
|
||||
'User_admin_explain' => 'Here you can change your user\'s information and certain specific options. To modify the users permissions please use the user and group permissions system.',
|
||||
'Look_up_user' => 'Look up user',
|
||||
@ -598,6 +613,7 @@ $lang = array_merge($lang, array(
|
||||
'User_special' => 'Special admin-only fields',
|
||||
'User_special_explain' => 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.',
|
||||
|
||||
|
||||
'GROUP_MANAGE_EXPLAIN' => 'From this panel you can administer all your usergroups, you can; delete, create and edit existing groups. You may choose moderators, toggle open/closed group status and set the group name and description.',
|
||||
'USER_DEF_GROUPS' => 'User defined groups',
|
||||
'USER_DEF_GROUPS_EXPLAIN' => 'These are groups created by you or another admin on this board. You can modify, delete or otherwise alter these. You can also define group wide settings which affect each and every member of the group.',
|
||||
@ -605,7 +621,7 @@ $lang = array_merge($lang, array(
|
||||
'SPECIAL_GROUPS_EXPLAIN' => 'These are pre-defined groups, they cannot be deleted or directly modified. However you can still add users and alter settings which affect all members of each group.',
|
||||
'GROUP_MEMBERS' => 'Group members',
|
||||
'GROUP_MEMBERS_EXPLAIN' => 'This is a complete listing of all the members of this usergroup. You can delete, approve or disprove of existing and new members.',
|
||||
'GROUP_EDIT_EXPLAIN' => 'Here you can edit an existing group. You can change its name, description and type (open, closed, etc.). You can also impose certain settings for all members of this group. For example, group wide avatars, ranks, colouration, etc. can all be set. Please note that certain settings are imposed just once (e.g. daylight savings, timezone, etc.) and are not stored for future use. Others, such as colouration can be changed independently by users unless appropriate user or group permissions are set.',
|
||||
'GROUP_EDIT_EXPLAIN' => 'Here you can edit an existing group. You can change its name, description and type (open, closed, etc.). You can also set certain groupwide options such as colouration, rank, etc. Please note that colours can be altered by individual users if they have appropriate permissions. Changes made here override users current settings.',
|
||||
'ADD_NEW_GROUP' => 'Create new group',
|
||||
'GROUP_SETTINGS_SAVE' => 'Groupwide settings',
|
||||
'GROUP_SETTINGS' => 'Set user preferences',
|
||||
@ -621,39 +637,20 @@ $lang = array_merge($lang, array(
|
||||
'GROUP_CLOSED' => 'Closed',
|
||||
'GROUP_HIDDEN' => 'Hidden',
|
||||
'GROUP_COLOR' => 'Group colour',
|
||||
'GROUP_COLOR_EXPLAIN' => 'Defines the colour members usernames will appear in, leave blank if not needed. Display %swebsafe colour swatch%s.',
|
||||
'GROUP_COLOR_EXPLAIN' => 'Defines the colour members usernames will appear in, leave blank for user default. Display %sWebsafe Colour Swatch%s.',
|
||||
'FORCE_COLOR' => 'Force update',
|
||||
'GROUP_RANK' => 'Group rank',
|
||||
'GROUP_AVATAR' => 'Group avatar',
|
||||
'GROUP_AVATAR_EXPLAIN' => 'This image will be displayed in the Group Control Panel. You can also apply this avatar to all members.',
|
||||
|
||||
'GROUP_AVATAR_EXPLAIN' => 'This image will be displayed in the Group Control Panel.',
|
||||
'GROUP_LANG' => 'Group language',
|
||||
'GROUP_TIMEZONE' => 'Group timezone',
|
||||
'GROUP_DST' => 'Group daylight savings',
|
||||
|
||||
'GROUP_FORCE_SET' => 'Force settings',
|
||||
'GROUP_FORCE_SET_EXPLAIN' => 'Enable this to force all the above settings to replace users individual settings.',
|
||||
|
||||
'USER_DEFAULT' => 'User default',
|
||||
|
||||
|
||||
'Error_updating_groups' => 'There was an error while updating the groups',
|
||||
'Updated_group' => 'The group was successfully updated',
|
||||
'Added_new_group' => 'The new group was successfully created',
|
||||
'Deleted_group' => 'The group was successfully deleted',
|
||||
|
||||
'group_delete' => 'Delete group',
|
||||
'group_delete_check' => 'Delete this group',
|
||||
'submit_group_changes' => 'Submit Changes',
|
||||
'reset_group_changes' => 'Reset Changes',
|
||||
'No_group_name' => 'You must specify a name for this group',
|
||||
'No_group_moderator' => 'You must specify a moderator for this group',
|
||||
'No_group_mode' => 'You must specify a mode for this group, open or closed',
|
||||
'delete_group_moderator' => 'Delete the old group moderator?',
|
||||
'delete_moderator_explain' => 'If you are changing the group moderator, check this box to remove the old moderator from the group. Otherwise, do not check it, and the user will become a regular member of the group.',
|
||||
'Click_return_groupsadmin' => 'Click %sHere%s to return to Group Administration.',
|
||||
'Select_group' => 'Select a group',
|
||||
'Look_up_group' => 'Look up group',
|
||||
|
||||
'GROUP_ERR_USERNAME' => 'No group name specified.',
|
||||
'GROUP_ERR_USER_LONG' => 'Group name too long.',
|
||||
'GROUP_ERR_DESC_LONG' => 'Group description too long.',
|
||||
'GROUP_ERR_TYPE' => 'Inappropriate group type specified.',
|
||||
'GROUP_UPDATED' => 'Group preferences updated successfully.',
|
||||
|
||||
|
||||
'FORUM_PRUNE_EXPLAIN' => 'This will delete any topic which has not been posted to within the number of days you select. If you do not enter a number then all topics will be deleted. It will not remove topics in which polls are still running nor will it remove announcements. You will need to remove these topics manually.',
|
||||
@ -664,6 +661,7 @@ $lang = array_merge($lang, array(
|
||||
'POSTS_PRUNED' => 'Posts pruned',
|
||||
'PRUNE_SUCCESS' => 'Pruning of forums was successful',
|
||||
|
||||
|
||||
'WORDS_TITLE' => 'Word Censoring',
|
||||
'WORDS_EXPLAIN' => 'From this control panel you can add, edit, and remove words that will be automatically censored on your forums. In addition people will not be allowed to register with usernames containing these words. Wildcards (*) are accepted in the word field, eg. *test* will match detestable, test* would match testing, *test would match detest.',
|
||||
'WORD' => 'Word',
|
||||
@ -677,12 +675,14 @@ $lang = array_merge($lang, array(
|
||||
'WORD_ADDED' => 'The word censor has been successfully added',
|
||||
'WORD_REMOVED' => 'The selected word censor has been successfully removed',
|
||||
|
||||
|
||||
'Mass_email_explain' => 'Here you can email a message to either all of your users, or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all recipients. If you are emailing a large group of people please be patient after submitting and do not stop the page halfway through. It is normal for a mass emailing to take a long time, you will be notified when the script has completed',
|
||||
'Compose' => 'Compose',
|
||||
'Recipients' => 'Recipients',
|
||||
'All_users' => 'All Users',
|
||||
'Email_successfull' => 'Your message has been sent',
|
||||
|
||||
|
||||
'RANKS_EXPLAIN' => 'Using this form you can add, edit, view and delete ranks. You can also create custom ranks which can be applied to a user via the user management facility',
|
||||
'ADD_RANK' => 'Add new rank',
|
||||
'RANK_TITLE' => 'Rank Title',
|
||||
@ -697,6 +697,7 @@ $lang = array_merge($lang, array(
|
||||
'RANK_REMOVED' => 'The rank was successfully deleted.',
|
||||
'NO_UPDATE_RANKS' => 'The rank was successfully deleted. However user accounts using this rank were not updated. You will need to manually reset the rank on these accounts.',
|
||||
|
||||
|
||||
'Disallow_control' => 'Username Disallow Control',
|
||||
'Disallow_explain' => 'Here you can control usernames which will not be allowed to be used. Disallowed usernames are allowed to contain a wildcard character of *. Please note that you will not be allowed to specify any username that has already been registered, you must first delete that name then disallow it',
|
||||
'Delete_disallow' => 'Delete',
|
||||
@ -710,6 +711,7 @@ $lang = array_merge($lang, array(
|
||||
'Disallow_successful' => 'The disallowed username has been successfully added',
|
||||
'Disallowed_already' => 'The name you entered could not be disallowed. It either already exists in the list, exists in the word censor list, or a matching username is present',
|
||||
|
||||
|
||||
'Edit_style' => 'Edit Styles',
|
||||
'Style' => 'Style',
|
||||
'Styles_admin' => 'Styles Administration',
|
||||
@ -746,12 +748,14 @@ $lang = array_merge($lang, array(
|
||||
'Click_return_styleadmin' => 'Click %sHere%s to return to Style Administration',
|
||||
'Save_Settings' => 'Save Settings',
|
||||
|
||||
|
||||
'SEARCH_INDEX_EXPLAIN' => 'phpBB2 uses a fulltext search system. This breaks down each post into seperate words and then, if the word does not already exist it stores those words in a table. In turn the post is linked to each word it contains in this table. This allows quick searching of large databases and helps reduce load on the server compared to most other methods.</p><p>However, if the tables get out of sync for some reason or you change the minimum, maximum or disallowed list of words the tables need updating. This facility allows you to do just that.</p><p>Please be aware this procedure can take a long time, particularly on large databases. During this period your forum will be automatically shut down to prevent people posting. You can cancel the procedure at any time. Please remember this is an intensive operation and should only be carried out when absolutely necessarily. Do not run this script too often!</p>',
|
||||
'SEARCH_INDEX_CANCEL' => 'Re-indexing of search system has been cancelled. Please note this will result in searches returning incomplete results. You can re-index the posts again at any stage.',
|
||||
'SEARCH_INDEXING_COMPLETE' => 'Re-indexing of search system has been completed. You can re-index the posts again at any stage.',
|
||||
'START' => 'Start',
|
||||
'STOP' => 'Stop',
|
||||
|
||||
|
||||
'Admin_logs_explain' => 'This lists all the actions carried out by board administrators. You can sort by username, date, IP or action. If you have appropriate permissions you can also clear individual operations or the log as a whole.',
|
||||
'Mod_logs_explain' => 'This lists the actions carried out by board moderators, select a forum from the drop down list. You can sort by username, date, IP or action. If you have appropriate permissions you can also clear individual operations or the log as a whole.',
|
||||
'Display_log' => 'Display entries from previous',
|
||||
@ -761,6 +765,7 @@ $lang = array_merge($lang, array(
|
||||
'Sort_action' => 'Log action',
|
||||
'No_entries' => 'No log entries for this period',
|
||||
|
||||
|
||||
'EVT_DEFINE' => 'Define an Event',
|
||||
'EVT_DEFINE_EXPLAIN' => 'Here you can decide what conditions are necessary for the information you previously provided to be executed. For example, if you defined a change in permissions you can decide to enable it only when a user has registered for a minimum number of days. You can define up to three trigger points. The forum selection only matters if the trigger is post count, it has no effect if days registered or karma are selected. Please note that events are user based. If you selected a usergroup the event will be executed for each user of that group.',
|
||||
'EVT_DAYS_REG' => 'Days Registered',
|
||||
@ -772,6 +777,7 @@ $lang = array_merge($lang, array(
|
||||
'EVT_IN' => 'in',
|
||||
'EVT_CREATED' => 'The event has been successfully created.',
|
||||
|
||||
|
||||
'Welcome_install' => 'Welcome to phpBB 2 Installation',
|
||||
'Initial_config' => 'Basic Configuration',
|
||||
'DB_config' => 'Database Configuration',
|
||||
@ -818,4 +824,5 @@ $lang = array_merge($lang, array(
|
||||
'Install_No_Ext' => 'The PHP configuration on your server does not support the database type that you choose<br /><br />Contact your hosting provider or see <a href=\"http://www.php.net/\">www.php.net</a> for more information',
|
||||
'Install_No_PCRE' => 'phpBB2 requires the Perl-Compatible Regular Expressions module for PHP to be available<br /><br />Contact your hosting provider or see <a href=\"http://www.php.net/\">www.php.net</a> for more information',
|
||||
));
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user