diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-05-31 18:54:00 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-05-31 18:54:00 +0000 |
commit | d24f5d734b2a2f059005ce45241d6564fea047e3 (patch) | |
tree | fca01ca17291e6d12a692f60ec15be1aa8f879c0 | |
parent | 6482d0e207afa2aa0cfa74824a5348c9bda1fd95 (diff) | |
download | forums-d24f5d734b2a2f059005ce45241d6564fea047e3.tar forums-d24f5d734b2a2f059005ce45241d6564fea047e3.tar.gz forums-d24f5d734b2a2f059005ce45241d6564fea047e3.tar.bz2 forums-d24f5d734b2a2f059005ce45241d6564fea047e3.tar.xz forums-d24f5d734b2a2f059005ce45241d6564fea047e3.zip |
some language additions and tiny bugfixes related to the request_var change
git-svn-id: file:///svn/phpbb/trunk@5156 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/adm/admin_board.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_groups.php | 88 | ||||
-rw-r--r-- | phpBB/index.php | 3 | ||||
-rw-r--r-- | phpBB/language/en/admin.php | 14 | ||||
-rw-r--r-- | phpBB/language/en/common.php | 1 | ||||
-rw-r--r-- | phpBB/language/en/groups.php | 2 | ||||
-rw-r--r-- | phpBB/language/en/memberlist.php | 5 |
7 files changed, 76 insertions, 39 deletions
diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php index 7217a70113..64dca4d6e4 100644 --- a/phpBB/adm/admin_board.php +++ b/phpBB/adm/admin_board.php @@ -238,7 +238,7 @@ if (isset($display_vars['lang'])) } $new = $config; -$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', '') : $new; +$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $new; // We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to... foreach ($display_vars['vars'] as $config_name => $null) diff --git a/phpBB/adm/admin_groups.php b/phpBB/adm/admin_groups.php index 9187b66ddc..c758f4978d 100644 --- a/phpBB/adm/admin_groups.php +++ b/phpBB/adm/admin_groups.php @@ -42,7 +42,7 @@ $mode = request_var('mode', ''); $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addusers'])) ? 'addusers' : request_var('action', '')); $group_id = request_var('g', 0); $mark_ary = request_var('mark', array(0)); -$name_ary = request_var('usernames', array('' => 0)); +$name_ary = request_var('usernames', ''); $leader = request_var('leader', 0); $default = request_var('default', 0); $start = request_var('start', 0); @@ -235,6 +235,9 @@ function marklist(match, status) trigger_error($user->lang['NO_GROUP']); } + $error = array(); + $user->add_lang('ucp'); + // Did we submit? if ($update) { @@ -251,6 +254,8 @@ function marklist(match, status) $receive_pm = isset($_REQUEST['group_receive_pm']) ? 1 : 0; $message_limit = request_var('group_message_limit', 0); + $avatar = ''; + if (!empty($_FILES['uploadfile']['tmp_name']) || $data['uploadurl'] || $data['remotelink']) { $data['width'] = request_var('width', ''); @@ -361,6 +366,8 @@ function marklist(match, status) $avatar_img = '<img src="images/no_avatar.gif" alt="" />'; } + $display_gallery = (isset($_POST['displaygallery'])) ? true : false; + ?> <script language="javascript" type="text/javascript"> @@ -375,7 +382,9 @@ function swatch() //--> </script> -<form name="settings" method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=$action&g=$group_id"; ?>"<?php echo ($can_upload) ? ' enctype="multipart/form-data"' : ''; ?>><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> +<form name="settings" method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=$action&g=$group_id"; ?>"<?php echo ($can_upload) ? ' enctype="multipart/form-data"' : ''; ?>> + + <table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th colspan="2"><?php echo $user->lang['GROUP_DETAILS']; ?></th> </tr> @@ -439,7 +448,7 @@ function swatch() <td class="row1" nowrap="nowrap"><input type="checkbox" name="group_receive_pm"<?php echo ($group_receive_pm) ? ' checked="checked"' : ''; ?> /></td> </tr> <tr> - <td class="row2"><b><?php echo $user->lang['GROUP_MESSAGE_LIMIT']; ?>:</b></td> + <td class="row2"><b><?php echo $user->lang['GROUP_MESSAGE_LIMIT']; ?>:</b><br /><span class="gensmall"><?php echo $user->lang['GROUP_MESSAGE_LIMIT_EXPLAIN']; ?></span></td> <td class="row1" nowrap="nowrap"><input class="post" type="text" maxlength="4" size="4" name="group_message_limit" value="<?php echo $group_message_limit; ?>" /></td> </tr> <tr> @@ -470,7 +479,7 @@ function swatch() </tr> <tr> <td class="row2" width="35%"><b><?php echo $user->lang['UPLOAD_AVATAR_URL']; ?>: </b><br /><span class="gensmall"><?php echo $user->lang['UPLOAD_AVATAR_URL_EXPLAIN']; ?></span></td> - <td class="row1"><input class="post" type="text" name="uploadurl" size="40" value="<?php echo $avatar_url; ?>" /></td> + <td class="row1"><input class="post" type="text" name="uploadurl" size="40" value="" /></td> </tr> <?php @@ -479,7 +488,7 @@ function swatch() ?> <tr> <td class="row2" width="35%"><b><?php echo $user->lang['LINK_REMOTE_AVATAR']; ?>: </b><br /><span class="gensmall"><?php echo $user->lang['LINK_REMOTE_AVATAR_EXPLAIN']; ?></span></td> - <td class="row1"><input class="post" type="text" name="remotelink" size="40" value="<?php echo $avatar_url; ?>" /></td> + <td class="row1"><input class="post" type="text" name="remotelink" size="40" value="" /></td> </tr> <tr> <td class="row2" width="35%"><b><?php echo $user->lang['LINK_REMOTE_SIZE']; ?>: </b><br /><span class="gensmall"><?php echo $user->lang['LINK_REMOTE_SIZE_EXPLAIN']; ?></span></td> @@ -488,7 +497,7 @@ function swatch() <?php // Do we have a gallery? - if ($config['null'] && !$display_gallery) + if ($config['allow_avatar_local'] && !$display_gallery) { ?> @@ -500,7 +509,7 @@ function swatch() } // Do we want to display it? - if ($config['null'] && $display_gallery) + if ($config['allow_avatar_local'] && $display_gallery) { ?> @@ -536,7 +545,9 @@ function swatch() <tr> <td class="cat" colspan="2" align="center"><input class="btnmain" type="submit" name="update" value="<?php echo $user->lang['SUBMIT']; ?>" /> <input class="btnlite" type="reset" value="<?php echo $user->lang['RESET']; ?>" /></td> </tr> -</table></form> + </table> +</form> + <?php adm_page_footer(); @@ -556,10 +567,12 @@ function swatch() <p><?php echo $user->lang['GROUP_MEMBERS_EXPLAIN']; ?></p> -<form name="list" method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode&g=$group_id"; ?>"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> +<form name="list" method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode&g=$group_id"; ?>"> + + <table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th width="55%"><?php echo $user->lang['USERNAME']; ?></th> - <th width="3%" nowrap="nowrap"><?php echo $user->lang['DEFAULT']; ?></th> + <th width="3%" nowrap="nowrap"><?php echo $user->lang['GROUP_DEFAULT']; ?></th> <th width="20%"><?php echo $user->lang['JOINED']; ?></th> <th width="20%"><?php echo $user->lang['POSTS']; ?></th> <th width="2%"><?php echo $user->lang['MARK']; ?></th> @@ -627,6 +640,7 @@ function swatch() if (sizeof($group_data['leader'])) { + $row_class = ''; foreach ($group_data['leader'] as $row) { $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; @@ -664,6 +678,7 @@ function swatch() { $pending = $group_data['member'][0]['user_pending']; + $row_class = ''; foreach ($group_data['member'] as $row) { if ($pending) @@ -680,12 +695,12 @@ function swatch() $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; ?> - <tr> - <td class="<?php echo $row_class; ?>"><a href="<?php echo "admin_users.$phpEx$SID&mode=edit&u=" . $row['user_id']; ?>"><?php echo $row['username']; ?></a></td> - <td class="<?php echo $row_class; ?>" align="center"><?php echo ($row['group_id'] == $group_id) ? $user->lang['YES'] : $user->lang['NO']; ?></td> - <td class="<?php echo $row_class; ?>" align="center"><?php echo ($row['user_regdate']) ? $user->format_date($row['user_regdate'], $user->lang['DATE_FORMAT']) : '-'; ?></td> - <td class="<?php echo $row_class; ?>" align="center"><?php echo $row['user_posts']; ?></td> - <td class="<?php echo $row_class; ?>" align="center"><input class="checkbox" type="checkbox" name="mark[]" value="<?php echo $row['user_id']; ?>" /></td> + <tr class="<?php echo $row_class; ?>"> + <td><a href="<?php echo "admin_users.$phpEx$SID&mode=edit&u=" . $row['user_id']; ?>"><?php echo $row['username']; ?></a></td> + <td align="center"><?php echo ($row['group_id'] == $group_id) ? $user->lang['YES'] : $user->lang['NO']; ?></td> + <td align="center"><?php echo ($row['user_regdate']) ? $user->format_date($row['user_regdate'], $user->lang['DATE_FORMAT']) : '-'; ?></td> + <td align="center"><?php echo $row['user_posts']; ?></td> + <td align="center"><input class="checkbox" type="checkbox" name="mark[]" value="<?php echo $row['user_id']; ?>" /></td> </tr> <?php @@ -715,19 +730,22 @@ function swatch() </tr> </table> -<table width="95%" cellspacing="1" cellpadding="1" border="0" align="center"> + <table width="95%" cellspacing="1" cellpadding="1" border="0" align="center"> <tr> <td valign="top"><?php echo on_page($total_members, $config['topics_per_page'], $start); ?></td> - <td align="right"><b><span class="gensmall"><a href="javascript:marklist('list', true);" class="gensmall"><?php echo $user->lang['MARK_ALL']; ?></a> :: <a href="javascript:marklist('list', false);" class="gensmall"><?php echo $user->lang['UNMARK_ALL']; ?></a></span></b> <br /><span class="nav"><?php echo generate_pagination("admin_groups.$phpEx$SID&action=list&mode=member&g=$group_id", $total_members, $config['topics_per_page'], $start); ?></span></td> + <td align="right"> + <b class="gensmall"><a href="javascript:marklist('list', true);"><?php echo $user->lang['MARK_ALL']; ?></a> :: <a href="javascript:marklist('list', false);"><?php echo $user->lang['UNMARK_ALL']; ?></a></b> <br /> + <span class="nav"><?php echo generate_pagination("admin_groups.$phpEx$SID&action=$action&mode=$mode&g=$group_id", $total_members, $config['topics_per_page'], $start, true); ?></span> + </td> </tr> -</table> + </table> <h1><?php echo $user->lang['ADD_USERS']; ?></h1> <p><?php echo $user->lang['ADD_USERS_EXPLAIN']; ?></p> -<table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> + <table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th colspan="2"><?php echo $user->lang['ADD_USERS']; ?></th> </tr> @@ -740,13 +758,13 @@ function swatch() <td class="row2"><input type="radio" name="default" value="1" /> <?php echo $user->lang['YES']; ?> <input type="radio" name="default" value="0" checked="checked" /> <?php echo $user->lang['NO']; ?></td> </tr> <tr> - <td class="row1"><b><?php echo $user->lang['USERNAME']; ?>:</b><br /><span class="gensmall"><?php echo $user->lang['USERNAMES_EXPLAIN']; ?><br />[ <a href="<?php echo "../memberlist.$phpEx$SID&mode=searchuser&form=mod&field=usernames"; ?>"><?php echo $user->lang['FIND_USERNAME']; ?></a> ]</span></td> + <td class="row1"><b><?php echo $user->lang['USERNAME']; ?>:</b><br /><span class="gensmall"><?php echo $user->lang['USERNAMES_EXPLAIN']; ?><br />[ <a href="<?php echo "../memberlist.$phpEx$SID&mode=searchuser&form=list&field=usernames"; ?>" target="usersearch"><?php echo $user->lang['FIND_USERNAME']; ?></a> ]</span></td> <td class="row2"><textarea name="usernames" cols="40" rows="5"></textarea></td> </tr> <tr> <td class="cat" colspan="2" align="center"><input class="btnmain" type="submit" name="addusers" value="<?php echo $user->lang['SUBMIT']; ?>" /></td> </tr> -</table> + </table> </form> @@ -758,7 +776,7 @@ function swatch() ?> -<h1><?php echo $user->lang['MANAGE']; ?></h1> +<h1><?php echo $user->lang['GROUP_MANAGE']; ?></h1> <p><?php echo $user->lang['GROUP_MANAGE_EXPLAIN']; ?></p> @@ -766,7 +784,9 @@ function swatch() <p><?php echo $user->lang['USER_DEF_GROUPS_EXPLAIN']; ?></p> -<form method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode"; ?>"><table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> +<form method="post" action="<?php echo "admin_groups.$phpEx$SID&mode=$mode"; ?>"> + + <table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th width="95%"><?php echo $user->lang['MANAGE']; ?></th> <th nowrap="nowrap"><?php echo $user->lang['TOTAL_MEMBERS']; ?></th> @@ -806,13 +826,13 @@ function swatch() <tr> <td class="cat" colspan="5" align="right"><?php echo $user->lang['CREATE_GROUP']; ?>: <input class="post" type="text" name="group_name" maxlength="30" /> <input class="btnmain" type="submit" name="add" value="<?php echo $user->lang['SUBMIT']; ?>" /></td> </tr> -</table> + </table> <h1><?php echo $user->lang['SPECIAL_GROUPS']; ?></h1> <p><?php echo $user->lang['SPECIAL_GROUPS_EXPLAIN']; ?></p> -<table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> + <table class="bg" width="95%" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th width="95%"><?php echo $user->lang['MANAGE']; ?></th> <th><?php echo $user->lang['TOTAL_MEMBERS']; ?></th> @@ -822,6 +842,7 @@ function swatch() } + $row_class = ''; foreach ($row_ary as $row) { $row_class = ($row_class != 'row1') ? 'row1' : 'row2'; @@ -830,12 +851,12 @@ function swatch() $group_name = (!empty($user->lang['G_' . $row['group_name']]))? $user->lang['G_' . $row['group_name']] : $row['group_name']; ?> - <tr> - <td width="95%" class="<?php echo $row_class; ?>"><a href="admin_groups.<?php echo "$phpEx$SID&mode=$mode&action=list&g=$group_id"; ?>"><?php echo $group_name;?></a></td> - <td class="<?php echo $row_class; ?>" align="center" nowrap="nowrap"> <?php echo $row['total_members']; ?> </td> - <td class="<?php echo $row_class; ?>" align="center" nowrap="nowrap"> <a href="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=default&g=$group_id"; ?>">Default<?php echo $user->lang['']; ?></a> </td> - <td class="<?php echo $row_class; ?>" align="center" nowrap="nowrap"> <a href="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=edit&g=$group_id"; ?>"><?php echo $user->lang['EDIT']; ?></a> </td> - <td class="<?php echo $row_class; ?>" align="center" nowrap="nowrap"> <?php + <tr class="<?php echo $row_class; ?>"> + <td width="95%"><a href="admin_groups.<?php echo "$phpEx$SID&mode=$mode&action=list&g=$group_id"; ?>"><?php echo $group_name; ?></a></td> + <td align="center" nowrap="nowrap"> <?php echo $row['total_members']; ?> </td> + <td align="center" nowrap="nowrap"> <a href="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=default&g=$group_id"; ?>"><?php echo $user->lang['GROUP_DEFAULT']; ?></a> </td> + <td align="center" nowrap="nowrap"> <a href="<?php echo "admin_groups.$phpEx$SID&mode=$mode&action=edit&g=$group_id"; ?>"><?php echo $user->lang['EDIT']; ?></a> </td> + <td align="center" nowrap="nowrap"> <?php echo ($row['group_type'] != GROUP_SPECIAL) ? "<a href=\"admin_groups.$phpEx$SID&mode=$mode&action=delete&g=$group_id\">" . $user->lang['DELETE'] . '</a>' : $user->lang['DELETE']; @@ -850,7 +871,8 @@ function swatch() <tr> <td class="cat" colspan="5"> </td> </tr> -</table></form> + </table> +</form> <?php diff --git a/phpBB/index.php b/phpBB/index.php index 5b135a1d1c..e01fdc6809 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -37,7 +37,8 @@ $l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OT // Grab group details for legend display $sql = 'SELECT group_id, group_name, group_colour, group_type FROM ' . GROUPS_TABLE . ' - WHERE group_legend = 1'; + WHERE group_legend = 1 + AND group_type <> ' . GROUP_HIDDEN; $result = $db->sql_query($sql); $legend = ''; diff --git a/phpBB/language/en/admin.php b/phpBB/language/en/admin.php index 4e30b799b8..af8b9d8fe1 100644 --- a/phpBB/language/en/admin.php +++ b/phpBB/language/en/admin.php @@ -107,12 +107,12 @@ $lang += array( 'BAN_EMAILS' => 'Ban Emails', 'BAN_IPS' => 'Ban IPs', 'BAN_USERS' => 'Ban Usernames', - 'DISALLOW' => 'Disallow names', + 'DISALLOW' => 'Disallow Names', 'RANKS' => 'Ranks', - 'PRUNE_USERS' => 'Prune users', + 'PRUNE_USERS' => 'Prune Users', 'BOTS' => 'Manage Bots', - 'GROUP_MANAGE' => 'Manage groups', - 'CUSTOM_PROFILE_FIELDS' => 'Profile fields', + 'GROUP_MANAGE' => 'Manage Groups', + 'CUSTOM_PROFILE_FIELDS' => 'Profile Fields', 'LANGUAGE_CAT' => 'Language', 'LANGUAGE_PACKS' => 'Language Packs', @@ -1217,6 +1217,9 @@ $lang += array( 'GROUP_PENDING' => 'Pending Members', 'GROUPS_NO_MEMBERS' => 'This group has no members', 'GROUPS_NO_MODS' => 'No group leaders defined', + + 'NO_USERS' => 'The requested users do not exist', + 'SELECT_OPTION' => 'Select option', 'GROUP_DEFAULT' => 'Default', 'GROUP_APPROVE' => 'Approve', @@ -1252,6 +1255,9 @@ $lang += array( 'GROUP_AVATAR_EXPLAIN' => 'This image will be displayed in the Group Control Panel.', 'GROUP_UPDATED' => 'Group preferences updated successfully.', 'GROUP_CREATED' => 'Group has been created successfully', + 'GROUP_RECEIVE_PM' => 'Group able to receive private messages', + 'GROUP_MESSAGE_LIMIT' => 'Group private message limit per folder', + 'GROUP_MESSAGE_LIMIT_EXPLAIN' => 'This setting overrides the per-user folder message limit. A value of 0 means the user default limit will be used.', 'GROUP_SETTINGS_SAVE' => 'Groupwide settings', 'GROUP_SETTINGS' => 'Set user preferences', diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index dddb77c080..4513f977c8 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -99,6 +99,7 @@ $lang += array( 'DELETE_MARKED' => 'Delete Marked', 'DESCENDING' => 'Descending', 'DISABLED' => 'Disabled', + 'DISPLAY' => 'Display', 'DISPLAY_GUESTS' => 'Display Guests', 'DISPLAY_MESSAGES' => 'Display messages from previous', 'DISPLAY_POSTS' => 'Display posts from previous', diff --git a/phpBB/language/en/groups.php b/phpBB/language/en/groups.php index 2e857d94b5..ca75316bf9 100644 --- a/phpBB/language/en/groups.php +++ b/phpBB/language/en/groups.php @@ -45,6 +45,8 @@ $lang += array( 'GROUP_IS_FREE' => 'This is a freely open group, all new members are welcome.', 'GROUP_IS_SPECIAL' => 'This is a special group, special groups are managed by the board administrators.', + 'LOGIN_EXPLAIN_GROUP' => 'You need to login to view group details', + 'REMOVE_SELECTED' => 'Remove selected', ); diff --git a/phpBB/language/en/memberlist.php b/phpBB/language/en/memberlist.php index 25d68b8215..6c3b2c32ac 100644 --- a/phpBB/language/en/memberlist.php +++ b/phpBB/language/en/memberlist.php @@ -58,6 +58,10 @@ $lang += array( 'FIND_USERNAME_EXPLAIN' => 'Use this form to search for specific members. You do not need to fill out all fields. To match partial data use * as a wildcard. When entering dates use the format yyyy-mm-dd, e.g. 2002-01-01. Use the mark checkboxes to select one or more usernames (several usernames may be accepted depending on the form itself). Alternatively you can mark the users required and click the Insert Marked button.', 'FLOOD_EMAIL_LIMIT' => 'You cannot send another email at this time. Please try again later.', + 'GROUP_LEADER' => 'Group leader', + + 'HIDE_MEMBER_SEARCH' => 'Hide member search', + 'ICQ' => 'ICQ', 'IM_ADD_CONTACT' => 'Add Contact', 'IM_AIM' => 'Please note that you need AOL Instant Messenger installed to use this.', @@ -106,6 +110,7 @@ $lang += array( 'SORT_LAST_ACTIVE' => 'Last active', 'SORT_POST_COUNT' => 'Post count', + 'USERNAME_BEGINS_WITH' => 'Username begins with', 'USER_FORUM' => 'Forum statistics', 'USER_ONLINE' => 'Online', 'USER_PRESENCE' => 'Forum presence', |