added class for disabled options in ACP

E_USER_ERROR now using language keys if available [related to #10445]
UCP/MCP title tags [#10441]
Check $start parameter in viewforum [#10435]
Check for postable forum for moving user posts within users ACP [#10433]
Show error if admin tries to put forums beneath linked forums [related to #10433]
Correctly catch attachments while moving posts [#10431]
language change in install.html [#10425]
Updated AUTHORS file


git-svn-id: file:///svn/phpbb/trunk@7456 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-05-04 12:30:21 +00:00
parent f7b51337c5
commit a465b06923
21 changed files with 129 additions and 46 deletions

View file

@ -714,6 +714,10 @@ option {
color: #000; color: #000;
} }
option.disabled-option {
color: #aaa;
}
.rtl option { .rtl option {
padding: 0 0 0 1em; padding: 0 0 0 1em;
} }

View file

@ -9,21 +9,30 @@
Please see: http://www.phpbb.com/about/team/ for a list of all the people currently Please see: http://www.phpbb.com/about/team/ for a list of all the people currently
involved in phpBB. involved in phpBB.
phpBB Project Manager : theFinn (James Atkinson) phpBB Project Manager : SHS` (Jonathan Stanley)
phpBB Lead Developers : Acyd Burn (Meik Sievertsen) phpBB Lead Developer : Acyd Burn (Meik Sievertsen)
psoTFX (Paul S. Owen) [2001 - 09/2005]
phpBB Developers : DavidMJ (David M.) phpBB Developers : DavidMJ (David M.)
dhn (Dominik Dröscher)
kellanved (Henry Sudhof) kellanved (Henry Sudhof)
naderman (Nils Adermann) naderman (Nils Adermann)
subBlue (Tom Beddard) subBlue (Tom Beddard)
Vic (Vic D'elfant) Vic (Vic D'elfant)
BartVB (Bart van Bragt) - [11/2000 - 03/2006]
Ashe (Ludovic Arnaud) - [10/2002 - 11/2003, 06/2006 - 10/2006]
GrahamJE (Graham Eames) - [09/2005 - 11/2006]
-- Previous Contributors --
phpBB Project Manager : theFinn (James Atkinson) [Founder - 04/2007]
phpBB Lead Developer : psoTFX (Paul S. Owen) [2001 - 09/2005]
phpBB Developers : Ashe (Ludovic Arnaud) [10/2002 - 11/2003, 06/2006 - 10/2006]
BartVB (Bart van Bragt) [11/2000 - 03/2006]
GrahamJE (Graham Eames) [09/2005 - 11/2006]
-- Copyrights --
Original subSilver by subBlue Design, Tom Beddard, (c) 2001 phpBB Group Original subSilver by subBlue Design, Tom Beddard, (c) 2001 phpBB Group
prosilver by subBlue Design, Tom Beddard, (c) 2004 phpBB Group prosilver by subBlue Design, Tom Beddard, (c) 2004 phpBB Group

View file

@ -212,7 +212,7 @@ p a {
<li>Change the permissions on config.php to be writable by all (666 or -rw-rw-rw- within your FTP Client)</li> <li>Change the permissions on config.php to be writable by all (666 or -rw-rw-rw- within your FTP Client)</li>
<li>Change the permissions on the following directories to be writable by all (777 or -rwxrwxrwx within your FTP Client):<br /> <li>Change the permissions on the following directories to be writable by all (777 or -rwxrwxrwx within your FTP Client):<br />
<code>store/</code>, <code>cache/</code>, <code>files/</code> and <code>images/avatars/upload/</code>.</li> <code>store/</code>, <code>cache/</code>, <code>files/</code> and <code>images/avatars/upload/</code>.</li>
<li>Using your web browser visit the location you placed phpBB3 with the addition of install/index.php or pointing directly to install/, e.g. http://www.mydomain.com/phpBB2/install/, http://www.mydomain.com/forum/install/ etc.</li> <li>Using your web browser visit the location you placed phpBB3 with the addition of install/index.php or pointing directly to install/, e.g. http://www.mydomain.com/phpBB3/install/, http://www.mydomain.com/forum/install/ etc.</li>
<li>Click the <em>INSTALL</em> tab, follow the steps and fill out all the requested information.</li> <li>Click the <em>INSTALL</em> tab, follow the steps and fill out all the requested information.</li>
<li>Change the permissions on config.php to be writable only by yourself (644 or -rw-r--r-- within your FTP Client)</li> <li>Change the permissions on config.php to be writable only by yourself (644 or -rw-r--r-- within your FTP Client)</li>
<li>phpBB3 should now be available, please <strong>MAKE SURE</strong> you read at least <a href="#postinstall">Section 6</a> below for important, security related post-installation instructions.</li> <li>phpBB3 should now be available, please <strong>MAKE SURE</strong> you read at least <a href="#postinstall">Section 6</a> below for important, security related post-installation instructions.</li>

View file

@ -1055,7 +1055,7 @@ trigger_error($user-&gt;lang['NO_FORUM']);
</pre></blockquote> </pre></blockquote>
<blockquote><pre> <blockquote><pre>
trigger_error('NO_APPROPRIATE_MODE', E_USER_ERROR); trigger_error('NO_MODE', E_USER_ERROR);
</pre></blockquote> </pre></blockquote>
<h3>Url formatting</h3> <h3>Url formatting</h3>

View file

@ -345,7 +345,7 @@ class acp_forums
$start = request_var('start', $row2['min_topic_id']); $start = request_var('start', $row2['min_topic_id']);
$batch_size = 3000; $batch_size = 2000;
$end = $start + $batch_size; $end = $start + $batch_size;
// Sync all topics in batch mode... // Sync all topics in batch mode...
@ -370,8 +370,8 @@ class acp_forums
meta_refresh(0, $url); meta_refresh(0, $url);
$template->assign_vars(array( $template->assign_vars(array(
'U_PROGRESS_BAR' => $this->u_action . "&amp;action=progress_bar&amp;start=$start&amp;total={$row['forum_topics_real']}", 'U_PROGRESS_BAR' => $this->u_action . "&amp;action=progress_bar&amp;start=$topics_done&amp;total={$row['forum_topics_real']}",
'UA_PROGRESS_BAR' => str_replace('&amp;', '&', $this->u_action) . "&action=progress_bar&start=$start&total={$row['forum_topics_real']}", 'UA_PROGRESS_BAR' => str_replace('&amp;', '&', $this->u_action) . "&action=progress_bar&start=$topics_done&total={$row['forum_topics_real']}",
'S_CONTINUE_SYNC' => true, 'S_CONTINUE_SYNC' => true,
'L_PROGRESS_EXPLAIN' => sprintf($user->lang['SYNC_IN_PROGRESS_EXPLAIN'], $topics_done, $row['forum_topics_real'])) 'L_PROGRESS_EXPLAIN' => sprintf($user->lang['SYNC_IN_PROGRESS_EXPLAIN'], $topics_done, $row['forum_topics_real']))
); );
@ -933,7 +933,7 @@ class acp_forums
if ($forum_data_sql['parent_id']) if ($forum_data_sql['parent_id'])
{ {
$sql = 'SELECT left_id, right_id $sql = 'SELECT left_id, right_id, forum_type
FROM ' . FORUMS_TABLE . ' FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $forum_data_sql['parent_id']; WHERE forum_id = ' . $forum_data_sql['parent_id'];
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
@ -945,6 +945,12 @@ class acp_forums
trigger_error($user->lang['PARENT_NOT_EXIST'] . adm_back_link($this->u_action . '&amp;' . $this->parent_id), E_USER_WARNING); trigger_error($user->lang['PARENT_NOT_EXIST'] . adm_back_link($this->u_action . '&amp;' . $this->parent_id), E_USER_WARNING);
} }
if ($row['forum_type'] == FORUM_LINK)
{
$errors[] = $user->lang['PARENT_IS_LINK_FORUM'];
return $errors;
}
$sql = 'UPDATE ' . FORUMS_TABLE . ' $sql = 'UPDATE ' . FORUMS_TABLE . '
SET left_id = left_id + 2, right_id = right_id + 2 SET left_id = left_id + 2, right_id = right_id + 2
WHERE left_id > ' . $row['right_id']; WHERE left_id > ' . $row['right_id'];
@ -1185,7 +1191,21 @@ class acp_forums
*/ */
function move_forum($from_id, $to_id) function move_forum($from_id, $to_id)
{ {
global $db; global $db, $user;
$to_data = $moved_ids = $errors = array();
// Check if we want to move to a parent with link type
if ($to_id > 0)
{
$to_data = $this->get_forum_info($to_id);
if ($to_data['forum_type'] == FORUM_LINK)
{
$errors[] = $user->lang['PARENT_IS_LINK_FORUM'];
return $errors;
}
}
$moved_forums = get_forum_branch($from_id, 'children', 'descending'); $moved_forums = get_forum_branch($from_id, 'children', 'descending');
$from_data = $moved_forums[0]; $from_data = $moved_forums[0];
@ -1212,8 +1232,6 @@ class acp_forums
if ($to_id > 0) if ($to_id > 0)
{ {
$to_data = $this->get_forum_info($to_id);
// Resync new parents // Resync new parents
$sql = 'UPDATE ' . FORUMS_TABLE . " $sql = 'UPDATE ' . FORUMS_TABLE . "
SET right_id = right_id + $diff, forum_parents = '' SET right_id = right_id + $diff, forum_parents = ''
@ -1256,6 +1274,8 @@ class acp_forums
SET left_id = left_id $diff, right_id = right_id $diff, forum_parents = '' SET left_id = left_id $diff, right_id = right_id $diff, forum_parents = ''
WHERE " . $db->sql_in_set('forum_id', $moved_ids); WHERE " . $db->sql_in_set('forum_id', $moved_ids);
$db->sql_query($sql); $db->sql_query($sql);
return $errors;
} }
/** /**

View file

@ -305,7 +305,7 @@ class acp_permissions
$s_forum_options = ''; $s_forum_options = '';
foreach ($forum_list as $f_id => $f_row) foreach ($forum_list as $f_id => $f_row)
{ {
$s_forum_options .= '<option value="' . $f_id . '"' . (($f_row['selected']) ? ' selected="selected"' : '') . (($f_row['disabled']) ? ' disabled="disabled"' : '') . '>' . $f_row['padding'] . $f_row['forum_name'] . '</option>'; $s_forum_options .= '<option value="' . $f_id . '"' . (($f_row['selected']) ? ' selected="selected"' : '') . (($f_row['disabled']) ? ' disabled="disabled" class="disabled-option"' : '') . '>' . $f_row['padding'] . $f_row['forum_name'] . '</option>';
} }
// Build subforum options // Build subforum options

View file

@ -446,6 +446,8 @@ class acp_users
case 'moveposts': case 'moveposts':
$user->add_lang('acp/forums');
$new_forum_id = request_var('new_f', 0); $new_forum_id = request_var('new_f', 0);
if (!$new_forum_id) if (!$new_forum_id)
@ -462,6 +464,24 @@ class acp_users
return; return;
} }
// Is the new forum postable to?
$sql = 'SELECT forum_name, forum_type
FROM ' . FORUMS_TABLE . "
WHERE forum_id = $new_forum_id";
$result = $db->sql_query($sql);
$forum_info = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!$forum_info)
{
trigger_error($user->lang['NO_FORUM'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
}
if ($forum_info['forum_type'] != FORUM_POST)
{
trigger_error($user->lang['MOVE_POSTS_NO_POSTABLE_FORUM'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
}
// Two stage? // Two stage?
// Move topics comprising only posts from this user // Move topics comprising only posts from this user
$topic_id_ary = $move_topic_ary = $move_post_ary = $new_topic_id_ary = array(); $topic_id_ary = $move_topic_ary = $move_post_ary = $new_topic_id_ary = array();
@ -482,7 +502,7 @@ class acp_users
if (sizeof($topic_id_ary)) if (sizeof($topic_id_ary))
{ {
$sql = 'SELECT topic_id, forum_id, topic_title, topic_replies, topic_replies_real $sql = 'SELECT topic_id, forum_id, topic_title, topic_replies, topic_replies_real, topic_attachment
FROM ' . TOPICS_TABLE . ' FROM ' . TOPICS_TABLE . '
WHERE ' . $db->sql_in_set('topic_id', array_keys($topic_id_ary)); WHERE ' . $db->sql_in_set('topic_id', array_keys($topic_id_ary));
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
@ -496,7 +516,7 @@ class acp_users
else else
{ {
$move_post_ary[$row['topic_id']]['title'] = $row['topic_title']; $move_post_ary[$row['topic_id']]['title'] = $row['topic_title'];
$move_post_ary[$row['topic_id']]['attach'] = ($row['attach']) ? 1 : 0; $move_post_ary[$row['topic_id']]['attach'] = ($row['topic_attachment']) ? 1 : 0;
} }
$forum_id_ary[] = $row['forum_id']; $forum_id_ary[] = $row['forum_id'];
@ -567,12 +587,6 @@ class acp_users
sync('forum', 'forum_id', $forum_id_ary); sync('forum', 'forum_id', $forum_id_ary);
} }
$sql = 'SELECT forum_name
FROM ' . FORUMS_TABLE . "
WHERE forum_id = $new_forum_id";
$result = $db->sql_query($sql, 3600);
$forum_info = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
add_log('admin', 'LOG_USER_MOVE_POSTS', $user_row['username'], $forum_info['forum_name']); add_log('admin', 'LOG_USER_MOVE_POSTS', $user_row['username'], $forum_info['forum_name']);
add_log('user', $user_id, 'LOG_USER_MOVE_POSTS_USER', $forum_info['forum_name']); add_log('user', $user_id, 'LOG_USER_MOVE_POSTS_USER', $forum_info['forum_name']);

View file

@ -3516,6 +3516,31 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
case E_USER_ERROR: case E_USER_ERROR:
if (!empty($user) && !empty($user->lang))
{
$msg_text = (!empty($user->lang[$msg_text])) ? $user->lang[$msg_text] : $msg_text;
$msg_title = (!isset($msg_title)) ? $user->lang['GENERAL_ERROR'] : ((!empty($user->lang[$msg_title])) ? $user->lang[$msg_title] : $msg_title);
$l_return_index = sprintf($user->lang['RETURN_INDEX'], '<a href="' . $phpbb_root_path . '">', '</a>');
$l_notify = '';
if (!empty($config['board_contact']))
{
$l_notify = '<p>' . sprintf($user->lang['NOTIFY_ADMIN_EMAIL'], $config['board_contact']) . '</p>';
}
}
else
{
$msg_title = 'General Error';
$l_return_index = '<a href="' . $phpbb_root_path . '">Return to index page</a>';
$l_notify = '';
if (!empty($config['board_contact']))
{
$l_notify = '<p>Please notify the board administrator or webmaster: <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
}
}
garbage_collection(); garbage_collection();
// Try to not call the adm page data... // Try to not call the adm page data...
@ -3538,18 +3563,15 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
echo '<body id="errorpage">'; echo '<body id="errorpage">';
echo '<div id="wrap">'; echo '<div id="wrap">';
echo ' <div id="page-header">'; echo ' <div id="page-header">';
echo ' <a href="' . $phpbb_root_path . '">Return to forum index</a>'; echo ' ' . $l_return_index;
echo ' </div>'; echo ' </div>';
echo ' <div class="panel">'; echo ' <div class="panel">';
echo ' <div id="content">'; echo ' <div id="content">';
echo ' <h1>General Error</h1>'; echo ' <h1>' . $msg_title . '</h1>';
echo ' <div>' . $msg_text . '</div>'; echo ' <div>' . $msg_text . '</div>';
if (!empty($config['board_contact'])) echo $l_notify;
{
echo ' <p>Please notify the board administrator or webmaster: <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
}
echo ' </div>'; echo ' </div>';
echo ' </div>'; echo ' </div>';

View file

@ -172,7 +172,7 @@ function make_forum_select($select_id = false, $ignore_id = false, $ignore_acl =
else else
{ {
$selected = (is_array($select_id)) ? ((in_array($row['forum_id'], $select_id)) ? ' selected="selected"' : '') : (($row['forum_id'] == $select_id) ? ' selected="selected"' : ''); $selected = (is_array($select_id)) ? ((in_array($row['forum_id'], $select_id)) ? ' selected="selected"' : '') : (($row['forum_id'] == $select_id) ? ' selected="selected"' : '');
$forum_list .= '<option value="' . $row['forum_id'] . '"' . (($disabled) ? ' disabled="disabled"' : $selected) . '>' . $padding . $row['forum_name'] . '</option>'; $forum_list .= '<option value="' . $row['forum_id'] . '"' . (($disabled) ? ' disabled="disabled" class="disabled-option"' : $selected) . '>' . $padding . $row['forum_name'] . '</option>';
} }
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);

View file

@ -180,7 +180,8 @@ class mcp_main
break; break;
default: default:
trigger_error("Unknown mode: $mode", E_USER_ERROR); trigger_error('NO_MODE', E_USER_ERROR);
break;
} }
} }
} }

View file

@ -85,10 +85,10 @@ class session
// Current page from phpBB root (for example: adm/index.php?i=10&b=2) // Current page from phpBB root (for example: adm/index.php?i=10&b=2)
$page = (($page_dir) ? $page_dir . '/' : '') . $page_name . (($query_string) ? "?$query_string" : ''); $page = (($page_dir) ? $page_dir . '/' : '') . $page_name . (($query_string) ? "?$query_string" : '');
// The script path from the webroot to the current directory (for example: /phpBB2/adm/) : always prefixed with / and ends in / // The script path from the webroot to the current directory (for example: /phpBB3/adm/) : always prefixed with / and ends in /
$script_path = trim(str_replace('\\', '/', dirname($script_name))); $script_path = trim(str_replace('\\', '/', dirname($script_name)));
// The script path from the webroot to the phpBB root (for example: /phpBB2/) // The script path from the webroot to the phpBB root (for example: /phpBB3/)
$script_dirs = explode('/', $script_path); $script_dirs = explode('/', $script_path);
array_splice($script_dirs, -sizeof($page_dirs)); array_splice($script_dirs, -sizeof($page_dirs));
$root_script_path = implode('/', $script_dirs) . (sizeof($root_dirs) ? '/' . implode('/', $root_dirs) : ''); $root_script_path = implode('/', $script_dirs) . (sizeof($root_dirs) ? '/' . implode('/', $root_dirs) : '');

View file

@ -193,6 +193,7 @@ function compose_pm($id, $mode, $action)
default: default:
trigger_error('NO_ACTION_MODE', E_USER_ERROR); trigger_error('NO_ACTION_MODE', E_USER_ERROR);
break;
} }
if ($action == 'forward' && (!$config['forward_pm'] || !$auth->acl_get('u_pm_forward'))) if ($action == 'forward' && (!$config['forward_pm'] || !$auth->acl_get('u_pm_forward')))
@ -880,6 +881,7 @@ function compose_pm($id, $mode, $action)
default: default:
trigger_error('NO_ACTION_MODE', E_USER_ERROR); trigger_error('NO_ACTION_MODE', E_USER_ERROR);
break;
} }
$s_hidden_fields = '<input type="hidden" name="lastclick" value="' . $current_time . '" />'; $s_hidden_fields = '<input type="hidden" name="lastclick" value="' . $current_time . '" />';

View file

@ -163,7 +163,7 @@ if (extension_loaded('mbstring'))
{ {
if (!is_int($offset)) if (!is_int($offset))
{ {
trigger_error('utf8_strrpos expects parameter 3 to be long', E_USER_WARNING); trigger_error('utf8_strrpos expects parameter 3 to be long', E_USER_ERROR);
return false; return false;
} }
@ -270,7 +270,7 @@ else
{ {
if (!is_int($offset)) if (!is_int($offset))
{ {
trigger_error('utf8_strrpos expects parameter 3 to be long', E_USER_WARNING); trigger_error('utf8_strrpos expects parameter 3 to be long', E_USER_ERROR);
return false; return false;
} }

View file

@ -109,6 +109,7 @@ $lang = array_merge($lang, array(
'LIST_INDEX_EXPLAIN' => 'Displays this forum on the index and elsewhere as a link within the legend of its parent-forum.', 'LIST_INDEX_EXPLAIN' => 'Displays this forum on the index and elsewhere as a link within the legend of its parent-forum.',
'LOCKED' => 'Locked', 'LOCKED' => 'Locked',
'MOVE_POSTS_NO_POSTABLE_FORUM' => 'The forum you selected for moving the posts to is not postable. Please select a postable forum.',
'MOVE_POSTS_TO' => 'Move posts to', 'MOVE_POSTS_TO' => 'Move posts to',
'MOVE_SUBFORUMS_TO' => 'Move subforums to', 'MOVE_SUBFORUMS_TO' => 'Move subforums to',
@ -119,6 +120,7 @@ $lang = array_merge($lang, array(
'NO_PERMISSION_FORUM_ADD' => 'You do not have the necessary permissions to add forums.', 'NO_PERMISSION_FORUM_ADD' => 'You do not have the necessary permissions to add forums.',
'NO_PERMISSION_FORUM_DELETE' => 'You do not have the necessary permissions to delete forums.', 'NO_PERMISSION_FORUM_DELETE' => 'You do not have the necessary permissions to delete forums.',
'PARENT_IS_LINK_FORUM' => 'The parent you specified is a forum link. Link forums are not able to hold other forums, please specify a category or forum as the parent forum.',
'PARENT_NOT_EXIST' => 'Parent does not exist.', 'PARENT_NOT_EXIST' => 'Parent does not exist.',
'PRUNE_ANNOUNCEMENTS' => 'Prune announcements', 'PRUNE_ANNOUNCEMENTS' => 'Prune announcements',
'PRUNE_STICKY' => 'Prune stickies', 'PRUNE_STICKY' => 'Prune stickies',

View file

@ -214,6 +214,7 @@ $lang = array_merge($lang, array(
'FTP_USERNAME' => 'FTP username', 'FTP_USERNAME' => 'FTP username',
'FTP_USERNAME_EXPLAIN' => 'Username used to connect to your server', 'FTP_USERNAME_EXPLAIN' => 'Username used to connect to your server',
'GENERAL_ERROR' => 'General Error',
'GO' => 'Go', 'GO' => 'Go',
'GOTO_PAGE' => 'Go to page', 'GOTO_PAGE' => 'Go to page',
'GROUP' => 'Group', 'GROUP' => 'Group',
@ -332,13 +333,15 @@ $lang = array_merge($lang, array(
'NOT_AUTHORISED' => 'You are not authorised to access this area.', 'NOT_AUTHORISED' => 'You are not authorised to access this area.',
'NOT_WATCHING_FORUM' => 'You are no longer subscribed to updates on this forum.', 'NOT_WATCHING_FORUM' => 'You are no longer subscribed to updates on this forum.',
'NOT_WATCHING_TOPIC' => 'You are no longer subscribed to this topic.', 'NOT_WATCHING_TOPIC' => 'You are no longer subscribed to this topic.',
'NOTIFY_ADMIN' => 'Please notify the board administrator or webmaster',
'NOTIFY_ADMIN_EMAIL' => 'Please notify the board administrator or webmaster: <a href="mailto:%1$s">%1$s</a>',
'NO_ACCESS_ATTACHMENT' => 'You are not allowed to access this file.', 'NO_ACCESS_ATTACHMENT' => 'You are not allowed to access this file.',
'NO_ACTION' => 'No action specified.', 'NO_ACTION' => 'No action specified.',
'NO_ADMINISTRATORS' => 'No administrators assigned at this board.', 'NO_ADMINISTRATORS' => 'No administrators assigned at this board.',
'NO_AUTH_ADMIN' => 'Access to the Administration Control Panel is not allowed as you do not have administrative permissions.', 'NO_AUTH_ADMIN' => 'Access to the Administration Control Panel is not allowed as you do not have administrative permissions.',
'NO_AUTH_ADMIN_USER_DIFFER' => 'You are not able to re-authenticate as a different user.', 'NO_AUTH_ADMIN_USER_DIFFER' => 'You are not able to re-authenticate as a different user.',
'NO_AUTH_OPERATION' => 'You do not have the necessary permissions to complete this operation.', 'NO_AUTH_OPERATION' => 'You do not have the necessary permissions to complete this operation.',
'NO_CONNECT_TO_SMTP_HOST' => 'Could not connect to smtp host : %s : %s', 'NO_CONNECT_TO_SMTP_HOST' => 'Could not connect to smtp host : %1$s : %2$s',
'NO_BIRTHDAYS' => 'No birthdays today', 'NO_BIRTHDAYS' => 'No birthdays today',
'NO_EMAIL_MESSAGE' => 'E-mail message was blank', 'NO_EMAIL_MESSAGE' => 'E-mail message was blank',
'NO_EMAIL_RESPONSE_CODE' => 'Could not get mail server response codes', 'NO_EMAIL_RESPONSE_CODE' => 'Could not get mail server response codes',

View file

@ -297,7 +297,7 @@ switch ($mode)
break; break;
default: default:
trigger_error('This contact option is not supported', E_USER_ERROR); trigger_error('NO_MODE', E_USER_ERROR);
break; break;
} }

View file

@ -12,7 +12,7 @@
<meta name="keywords" content="" /> <meta name="keywords" content="" />
<meta name="description" content="" /> <meta name="description" content="" />
{META} {META}
<title>{SITENAME} &bull; {PAGE_TITLE}</title> <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- <!--
phpBB style name: prosilver phpBB style name: prosilver

View file

@ -12,7 +12,7 @@
<meta name="keywords" content="" /> <meta name="keywords" content="" />
<meta name="description" content="" /> <meta name="description" content="" />
{META} {META}
<title>{SITENAME} &bull; {PAGE_TITLE}</title> <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[

View file

@ -12,7 +12,7 @@
<meta name="keywords" content="" /> <meta name="keywords" content="" />
<meta name="description" content="" /> <meta name="description" content="" />
{META} {META}
<title>{SITENAME} &bull; {PAGE_TITLE}</title> <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<!-- IF T_STYLESHEET_LINK --> <!-- IF T_STYLESHEET_LINK -->
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" /> <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

View file

@ -12,7 +12,7 @@
<meta name="keywords" content="" /> <meta name="keywords" content="" />
<meta name="description" content="" /> <meta name="description" content="" />
{META} {META}
<title>{SITENAME} &bull; {PAGE_TITLE}</title> <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" /> <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
</head> </head>

View file

@ -238,6 +238,12 @@ else
$sql_limit_time = ''; $sql_limit_time = '';
} }
// Make sure $start is set to the last page if it exceeds the amount
if ($start < 0 || $start > $topics_count)
{
$start = ($start < 0) ? 0 : floor(($topics_count - 1) / $config['topics_per_page']) * $config['topics_per_page'];
}
// Basic pagewide vars // Basic pagewide vars
$post_alt = ($forum_data['forum_status'] == ITEM_LOCKED) ? $user->lang['FORUM_LOCKED'] : $user->lang['POST_NEW_TOPIC']; $post_alt = ($forum_data['forum_status'] == ITEM_LOCKED) ? $user->lang['FORUM_LOCKED'] : $user->lang['POST_NEW_TOPIC'];