One commit for those fixes having a very tiny impact (mostly only whitespaces or forgotten spans, etc.)

Although i somehow mistakingly got #20445 and #15249 into it. :/

Removing s_watching_img from watch_topic_forum() function (Bug #20445)
Changing order for post review if more than one post affected (Bug #15249)
Language typos/fixes (Bug #20425, #15719, #15429, #14669, #13479)
Style/Template fixes (Bug #20065, #19405, #19205, #15028, #14934, #14821, #14752, #14497, #13707, #14738)
Tiny code fixes (Bug #20165, #20025, #19795, #14804)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8350 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2008-01-30 16:01:15 +00:00
parent c7821700dd
commit 325ff1fa1b
42 changed files with 199 additions and 188 deletions

View file

@ -121,9 +121,11 @@
<!--[if lt IE 8]> <!--[if lt IE 8]>
<style type="text/css"> <style type="text/css">
/* <![CDATA[ */
input.langvalue, textarea.langvalue { input.langvalue, textarea.langvalue {
width: 450px; width: 450px;
} }
/* ]]> */
</style> </style>
<![endif]--> <![endif]-->

View file

@ -8,7 +8,7 @@
<title>{L_COLOUR_SWATCH}</title> <title>{L_COLOUR_SWATCH}</title>
<style type="text/css"> <style type="text/css">
<!-- /* <![CDATA[ */
body { body {
background-color: #404040; background-color: #404040;
color: #fff; color: #fff;
@ -29,7 +29,7 @@
img { img {
border: 0; border: 0;
} }
//--> /* ]]> */
</style> </style>
</head> </head>

View file

@ -32,7 +32,7 @@ function resize_panel()
</script> </script>
<style type="text/css"> <style type="text/css">
<!-- /* <![CDATA[ */
#main { #main {
font-size: 1em; font-size: 1em;
@ -198,7 +198,7 @@ table.hrdiff caption span {
<!-- ENDIF --> <!-- ENDIF -->
//--> /* ]]> */
</style> </style>
</head> </head>

View file

@ -106,6 +106,11 @@
<li>[Fix] Fix possible database transaction errors if code returns on error and rollback happened (Bug #17025)</li> <li>[Fix] Fix possible database transaction errors if code returns on error and rollback happened (Bug #17025)</li>
<li>[Change] Allow numbers in permission names for modifications, as well as uppercase letters for the request_ part (Bug #20125)</li> <li>[Change] Allow numbers in permission names for modifications, as well as uppercase letters for the request_ part (Bug #20125)</li>
<li>[Fix] Use HTTP_HOST in favor of SERVER_NAME for determining server url for redirection and installation (Bug #19955)</li> <li>[Fix] Use HTTP_HOST in favor of SERVER_NAME for determining server url for redirection and installation (Bug #19955)</li>
<li>Removing s_watching_img from watch_topic_forum() function (Bug #20445)</li>
<li>Changing order for post review if more than one post affected (Bug #15249)</li>
<li>Language typos/fixes (Bug #20425, #15719, #15429, #14669, #13479)</li>
<li>Style/Template fixes (Bug #20065, #19405, #19205, #15028, #14934, #14821, #14752, #14497, #13707, #14738)</li>
<li>Tiny code fixes (Bug #20165, #20025, #19795, #14804)</li>
</ul> </ul>
<a name="v30rc8"></a><h3>1.i. Changes since 3.0.RC8</h3> <a name="v30rc8"></a><h3>1.i. Changes since 3.0.RC8</h3>

View file

@ -14,7 +14,7 @@
<title>phpBB3 &bull; Hook System</title> <title>phpBB3 &bull; Hook System</title>
<style type="text/css"> <style type="text/css">
<!-- /* <![CDATA[ */
/* /*
The original "prosilver" theme for phpBB3 The original "prosilver" theme for phpBB3
@ -309,7 +309,7 @@ a:active { color: #368AD2; }
margin-left: 25px; margin-left: 25px;
} }
//--> /* ]]> */
</style> </style>
</head> </head>

View file

@ -23,7 +23,7 @@ class acp_attachments
{ {
var $u_action; var $u_action;
var $new_config; var $new_config;
function main($id, $mode) function main($id, $mode)
{ {
global $db, $user, $auth, $template, $cache; global $db, $user, $auth, $template, $cache;
@ -56,7 +56,7 @@ class acp_attachments
case 'ext_groups': case 'ext_groups':
$l_title = 'ACP_EXTENSION_GROUPS'; $l_title = 'ACP_EXTENSION_GROUPS';
break; break;
case 'orphan': case 'orphan':
$l_title = 'ACP_ORPHAN_ATTACHMENTS'; $l_title = 'ACP_ORPHAN_ATTACHMENTS';
break; break;
@ -212,7 +212,7 @@ class acp_attachments
// Secure Download Options - Same procedure as with banning // Secure Download Options - Same procedure as with banning
$allow_deny = ($this->new_config['secure_allow_deny']) ? 'ALLOWED' : 'DISALLOWED'; $allow_deny = ($this->new_config['secure_allow_deny']) ? 'ALLOWED' : 'DISALLOWED';
$sql = 'SELECT * $sql = 'SELECT *
FROM ' . SITELIST_TABLE; FROM ' . SITELIST_TABLE;
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
@ -282,7 +282,7 @@ class acp_attachments
'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars), 'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars),
) )
); );
unset($display_vars['vars'][$config_key]); unset($display_vars['vars'][$config_key]);
} }
@ -334,7 +334,7 @@ class acp_attachments
FROM ' . EXTENSIONS_TABLE . ' FROM ' . EXTENSIONS_TABLE . '
WHERE ' . $db->sql_in_set('extension_id', $extension_id_list); WHERE ' . $db->sql_in_set('extension_id', $extension_id_list);
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$extension_list = ''; $extension_list = '';
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
@ -364,7 +364,7 @@ class acp_attachments
FROM ' . EXTENSIONS_TABLE . " FROM ' . EXTENSIONS_TABLE . "
WHERE extension = '" . $db->sql_escape($add_extension) . "'"; WHERE extension = '" . $db->sql_escape($add_extension) . "'";
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result)) if ($row = $db->sql_fetchrow($result))
{ {
$error[] = sprintf($user->lang['EXTENSION_EXIST'], $add_extension); $error[] = sprintf($user->lang['EXTENSION_EXIST'], $add_extension);
@ -603,7 +603,7 @@ class acp_attachments
SET group_id = 0 SET group_id = 0
WHERE group_id = $group_id"; WHERE group_id = $group_id";
$db->sql_query($sql); $db->sql_query($sql);
add_log('admin', 'LOG_ATTACH_EXTGROUP_DEL', $group_name); add_log('admin', 'LOG_ATTACH_EXTGROUP_DEL', $group_name);
$cache->destroy('_extensions'); $cache->destroy('_extensions');
@ -900,7 +900,7 @@ class acp_attachments
$upload_list = array(); $upload_list = array();
foreach ($add_files as $attach_id) foreach ($add_files as $attach_id)
{ {
if (!in_array($attach_id, array_keys($delete_files)) && !empty($post_ids[$attach_id])) if (!isset($delete_files[$attach_id]) && !empty($post_ids[$attach_id]))
{ {
$upload_list[$attach_id] = $post_ids[$attach_id]; $upload_list[$attach_id] = $post_ids[$attach_id];
} }
@ -1050,7 +1050,7 @@ class acp_attachments
ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'], ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'],
ATTACHMENT_CATEGORY_QUICKTIME => $user->lang['CAT_QUICKTIME_FILES'], ATTACHMENT_CATEGORY_QUICKTIME => $user->lang['CAT_QUICKTIME_FILES'],
); );
if ($group_id) if ($group_id)
{ {
$sql = 'SELECT cat_id $sql = 'SELECT cat_id
@ -1066,7 +1066,7 @@ class acp_attachments
{ {
$cat_type = ATTACHMENT_CATEGORY_NONE; $cat_type = ATTACHMENT_CATEGORY_NONE;
} }
$group_select = '<select name="' . $select_name . '"' . (($key) ? ' id="' . $key . '"' : '') . '>'; $group_select = '<select name="' . $select_name . '"' . (($key) ? ' id="' . $key . '"' : '') . '>';
foreach ($types as $type => $mode) foreach ($types as $type => $mode)
@ -1086,7 +1086,7 @@ class acp_attachments
function group_select($select_name, $default_group = false, $key = '') function group_select($select_name, $default_group = false, $key = '')
{ {
global $db, $user; global $db, $user;
$group_select = '<select name="' . $select_name . '"' . (($key) ? ' id="' . $key . '"' : '') . '>'; $group_select = '<select name="' . $select_name . '"' . (($key) ? ' id="' . $key . '"' : '') . '>';
$sql = 'SELECT group_id, group_name $sql = 'SELECT group_id, group_name
@ -1104,7 +1104,7 @@ class acp_attachments
$row['group_id'] = 0; $row['group_id'] = 0;
$row['group_name'] = $user->lang['NOT_ASSIGNED']; $row['group_name'] = $user->lang['NOT_ASSIGNED'];
$group_name[] = $row; $group_name[] = $row;
for ($i = 0; $i < sizeof($group_name); $i++) for ($i = 0; $i < sizeof($group_name); $i++)
{ {
if ($default_group === false) if ($default_group === false)
@ -1138,7 +1138,7 @@ class acp_attachments
if (empty($magic_home)) if (empty($magic_home))
{ {
$locations = array('C:/WINDOWS/', 'C:/WINNT/', 'C:/WINDOWS/SYSTEM/', 'C:/WINNT/SYSTEM/', 'C:/WINDOWS/SYSTEM32/', 'C:/WINNT/SYSTEM32/', '/usr/bin/', '/usr/sbin/', '/usr/local/bin/', '/usr/local/sbin/', '/opt/', '/usr/imagemagick/', '/usr/bin/imagemagick/'); $locations = array('C:/WINDOWS/', 'C:/WINNT/', 'C:/WINDOWS/SYSTEM/', 'C:/WINNT/SYSTEM/', 'C:/WINDOWS/SYSTEM32/', 'C:/WINNT/SYSTEM32/', '/usr/bin/', '/usr/sbin/', '/usr/local/bin/', '/usr/local/sbin/', '/opt/', '/usr/imagemagick/', '/usr/bin/imagemagick/');
$path_locations = str_replace('\\', '/', (explode(($exe) ? ';' : ':', getenv('PATH')))); $path_locations = str_replace('\\', '/', (explode(($exe) ? ';' : ':', getenv('PATH'))));
$locations = array_merge($path_locations, $locations); $locations = array_merge($path_locations, $locations);
@ -1352,7 +1352,7 @@ class acp_attachments
$db->sql_query($sql); $db->sql_query($sql);
} }
} }
if (!empty($ip_list_log)) if (!empty($ip_list_log))
{ {
// Update log // Update log

View file

@ -127,7 +127,7 @@ class acp_board
'pm_max_msgs' => array('lang' => 'BOXES_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true), 'pm_max_msgs' => array('lang' => 'BOXES_LIMIT', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => true),
'full_folder_action' => array('lang' => 'FULL_FOLDER_ACTION', 'validate' => 'int', 'type' => 'select', 'method' => 'full_folder_select', 'explain' => true), 'full_folder_action' => array('lang' => 'FULL_FOLDER_ACTION', 'validate' => 'int', 'type' => 'select', 'method' => 'full_folder_select', 'explain' => true),
'pm_edit_time' => array('lang' => 'PM_EDIT_TIME', 'validate' => 'int', 'type' => 'text:5:5', 'explain' => true, 'append' => ' ' . $user->lang['MINUTES']), 'pm_edit_time' => array('lang' => 'PM_EDIT_TIME', 'validate' => 'int', 'type' => 'text:5:5', 'explain' => true, 'append' => ' ' . $user->lang['MINUTES']),
'legend2' => 'GENERAL_OPTIONS', 'legend2' => 'GENERAL_OPTIONS',
'allow_mass_pm' => array('lang' => 'ALLOW_MASS_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false), 'allow_mass_pm' => array('lang' => 'ALLOW_MASS_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'auth_bbcode_pm' => array('lang' => 'ALLOW_BBCODE_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false), 'auth_bbcode_pm' => array('lang' => 'ALLOW_BBCODE_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
@ -269,7 +269,7 @@ class acp_board
'load_jumpbox' => array('lang' => 'YES_JUMPBOX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false), 'load_jumpbox' => array('lang' => 'YES_JUMPBOX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_user_activity' => array('lang' => 'LOAD_USER_ACTIVITY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'load_user_activity' => array('lang' => 'LOAD_USER_ACTIVITY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'load_tplcompile' => array('lang' => 'RECOMPILE_STYLES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), 'load_tplcompile' => array('lang' => 'RECOMPILE_STYLES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'legend3' => 'CUSTOM_PROFILE_FIELDS', 'legend3' => 'CUSTOM_PROFILE_FIELDS',
'load_cpf_memberlist' => array('lang' => 'LOAD_CPF_MEMBERLIST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false), 'load_cpf_memberlist' => array('lang' => 'LOAD_CPF_MEMBERLIST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_cpf_viewprofile' => array('lang' => 'LOAD_CPF_VIEWPROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false), 'load_cpf_viewprofile' => array('lang' => 'LOAD_CPF_VIEWPROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
@ -564,7 +564,7 @@ class acp_board
'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars), 'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars),
) )
); );
unset($display_vars['vars'][$config_key]); unset($display_vars['vars'][$config_key]);
} }
@ -795,7 +795,7 @@ class acp_board
} }
$dateformat_options .= '<option value="custom"'; $dateformat_options .= '<option value="custom"';
if (!in_array($value, array_keys($user->lang['dateformats']))) if (!isset($user->lang['dateformats'][$value]))
{ {
$dateformat_options .= ' selected="selected"'; $dateformat_options .= ' selected="selected"';
} }

View file

@ -518,9 +518,9 @@ class acp_search
function close_popup_js() function close_popup_js()
{ {
return "<script type=\"text/javascript\">\n" . return "<script type=\"text/javascript\">\n" .
"<!--\n" . "// <![CDATA[\n" .
" close_waitscreen = 1;\n" . " close_waitscreen = 1;\n" .
"//-->\n" . "// ]]>\n" .
"</script>\n"; "</script>\n";
} }

View file

@ -411,7 +411,7 @@ class acp_users
$sql = 'UPDATE ' . USERS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " $sql = 'UPDATE ' . USERS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . "
WHERE user_id = $user_id"; WHERE user_id = $user_id";
$db->sql_query($sql); $db->sql_query($sql);
add_log('admin', 'LOG_USER_DEL_SIG', $user_row['username']); add_log('admin', 'LOG_USER_DEL_SIG', $user_row['username']);
add_log('user', $user_id, 'LOG_USER_DEL_SIG_USER'); add_log('user', $user_id, 'LOG_USER_DEL_SIG_USER');
@ -492,9 +492,9 @@ class acp_users
'update' => true)) 'update' => true))
); );
} }
break; break;
case 'moveposts': case 'moveposts':
if (!check_form_key($form_name)) if (!check_form_key($form_name))
@ -835,9 +835,9 @@ class acp_users
{ {
$quick_tool_ary += array('active' => (($user_row['user_type'] == USER_INACTIVE) ? 'ACTIVATE' : 'DEACTIVATE')); $quick_tool_ary += array('active' => (($user_row['user_type'] == USER_INACTIVE) ? 'ACTIVATE' : 'DEACTIVATE'));
} }
$quick_tool_ary += array('delsig' => 'DEL_SIG', 'delavatar' => 'DEL_AVATAR', 'moveposts' => 'MOVE_POSTS', 'delposts' => 'DEL_POSTS', 'delattach' => 'DEL_ATTACH'); $quick_tool_ary += array('delsig' => 'DEL_SIG', 'delavatar' => 'DEL_AVATAR', 'moveposts' => 'MOVE_POSTS', 'delposts' => 'DEL_POSTS', 'delattach' => 'DEL_ATTACH');
if ($config['email_enable'] && ($user_row['user_type'] == USER_NORMAL || $user_row['user_type'] == USER_INACTIVE)) if ($config['email_enable'] && ($user_row['user_type'] == USER_NORMAL || $user_row['user_type'] == USER_INACTIVE))
{ {
$quick_tool_ary['reactivate'] = 'FORCE'; $quick_tool_ary['reactivate'] = 'FORCE';
@ -923,7 +923,7 @@ class acp_users
case 'feedback': case 'feedback':
$user->add_lang('mcp'); $user->add_lang('mcp');
// Set up general vars // Set up general vars
$start = request_var('start', 0); $start = request_var('start', 0);
$deletemark = (isset($_POST['delmarked'])) ? true : false; $deletemark = (isset($_POST['delmarked'])) ? true : false;
@ -980,7 +980,7 @@ class acp_users
trigger_error($user->lang['USER_FEEDBACK_ADDED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id)); trigger_error($user->lang['USER_FEEDBACK_ADDED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id));
} }
// Sorting // Sorting
$limit_days = array(0 => $user->lang['ALL_ENTRIES'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 365 => $user->lang['1_YEAR']); $limit_days = array(0 => $user->lang['ALL_ENTRIES'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 365 => $user->lang['1_YEAR']);
$sort_by_text = array('u' => $user->lang['SORT_USERNAME'], 't' => $user->lang['SORT_DATE'], 'i' => $user->lang['SORT_IP'], 'o' => $user->lang['SORT_ACTION']); $sort_by_text = array('u' => $user->lang['SORT_USERNAME'], 't' => $user->lang['SORT_DATE'], 'i' => $user->lang['SORT_IP'], 'o' => $user->lang['SORT_ACTION']);
@ -1216,7 +1216,7 @@ class acp_users
'S_BIRTHDAY_DAY_OPTIONS' => $s_birthday_day_options, 'S_BIRTHDAY_DAY_OPTIONS' => $s_birthday_day_options,
'S_BIRTHDAY_MONTH_OPTIONS' => $s_birthday_month_options, 'S_BIRTHDAY_MONTH_OPTIONS' => $s_birthday_month_options,
'S_BIRTHDAY_YEAR_OPTIONS' => $s_birthday_year_options, 'S_BIRTHDAY_YEAR_OPTIONS' => $s_birthday_year_options,
'S_PROFILE' => true) 'S_PROFILE' => true)
); );
@ -1347,7 +1347,7 @@ class acp_users
$s_custom = false; $s_custom = false;
$dateformat_options .= '<option value="custom"'; $dateformat_options .= '<option value="custom"';
if (!in_array($data['dateformat'], array_keys($user->lang['dateformats']))) if (!isset($user->lang['dateformats'][$data['dateformat']]))
{ {
$dateformat_options .= ' selected="selected"'; $dateformat_options .= ' selected="selected"';
$s_custom = true; $s_custom = true;
@ -1395,7 +1395,7 @@ class acp_users
$template->assign_vars(array( $template->assign_vars(array(
'S_PREFS' => true, 'S_PREFS' => true,
'S_JABBER_DISABLED' => ($config['jab_enable'] && $user_row['user_jabber'] && @extension_loaded('xml')) ? false : true, 'S_JABBER_DISABLED' => ($config['jab_enable'] && $user_row['user_jabber'] && @extension_loaded('xml')) ? false : true,
'VIEW_EMAIL' => $data['viewemail'], 'VIEW_EMAIL' => $data['viewemail'],
'MASS_EMAIL' => $data['massemail'], 'MASS_EMAIL' => $data['massemail'],
'ALLOW_PM' => $data['allowpm'], 'ALLOW_PM' => $data['allowpm'],
@ -1416,7 +1416,7 @@ class acp_users
'VIEW_SIGS' => $data['view_sigs'], 'VIEW_SIGS' => $data['view_sigs'],
'VIEW_AVATARS' => $data['view_avatars'], 'VIEW_AVATARS' => $data['view_avatars'],
'VIEW_WORDCENSOR' => $data['view_wordcensor'], 'VIEW_WORDCENSOR' => $data['view_wordcensor'],
'S_TOPIC_SORT_DAYS' => $s_limit_topic_days, 'S_TOPIC_SORT_DAYS' => $s_limit_topic_days,
'S_TOPIC_SORT_KEY' => $s_sort_topic_key, 'S_TOPIC_SORT_KEY' => $s_sort_topic_key,
'S_TOPIC_SORT_DIR' => $s_sort_topic_dir, 'S_TOPIC_SORT_DIR' => $s_sort_topic_dir,
@ -1509,7 +1509,7 @@ class acp_users
trigger_error($user->lang['USER_RANK_UPDATED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id)); trigger_error($user->lang['USER_RANK_UPDATED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id));
} }
$sql = 'SELECT * $sql = 'SELECT *
FROM ' . RANKS_TABLE . ' FROM ' . RANKS_TABLE . '
WHERE rank_special = 1 WHERE rank_special = 1
@ -1531,9 +1531,9 @@ class acp_users
); );
break; break;
case 'sig': case 'sig':
include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include_once($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx); include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
@ -1552,7 +1552,7 @@ class acp_users
// Allowing Quote BBCode // Allowing Quote BBCode
$message_parser->parse($enable_bbcode, $enable_urls, $enable_smilies, $config['allow_sig_img'], $config['allow_sig_flash'], true, $config['allow_sig_links'], true, 'sig'); $message_parser->parse($enable_bbcode, $enable_urls, $enable_smilies, $config['allow_sig_img'], $config['allow_sig_flash'], true, $config['allow_sig_links'], true, 'sig');
if (sizeof($message_parser->warn_msg)) if (sizeof($message_parser->warn_msg))
{ {
$error[] = implode('<br />', $message_parser->warn_msg); $error[] = implode('<br />', $message_parser->warn_msg);
@ -1578,13 +1578,13 @@ class acp_users
trigger_error($user->lang['USER_SIG_UPDATED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id)); trigger_error($user->lang['USER_SIG_UPDATED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id));
} }
// Replace "error" strings with their real, localised form // Replace "error" strings with their real, localised form
$error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error); $error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);
} }
$signature_preview = ''; $signature_preview = '';
if ($preview) if ($preview)
{ {
// Now parse it for displaying // Now parse it for displaying
@ -1755,7 +1755,7 @@ class acp_users
'ATTACH_ID' => $row['attach_id'], 'ATTACH_ID' => $row['attach_id'],
'POST_ID' => $row['post_msg_id'], 'POST_ID' => $row['post_msg_id'],
'TOPIC_ID' => $row['topic_id'], 'TOPIC_ID' => $row['topic_id'],
'S_IN_MESSAGE' => $row['in_message'], 'S_IN_MESSAGE' => $row['in_message'],
'U_DOWNLOAD' => append_sid("{$phpbb_root_path}download/file.$phpEx", 'mode=view&amp;id=' . $row['attach_id']), 'U_DOWNLOAD' => append_sid("{$phpbb_root_path}download/file.$phpEx", 'mode=view&amp;id=' . $row['attach_id']),
@ -1763,7 +1763,7 @@ class acp_users
); );
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);
$template->assign_vars(array( $template->assign_vars(array(
'S_ATTACHMENTS' => true, 'S_ATTACHMENTS' => true,
'S_ON_PAGE' => on_page($num_attachments, $config['topics_per_page'], $start), 'S_ON_PAGE' => on_page($num_attachments, $config['topics_per_page'], $start),
@ -1774,14 +1774,14 @@ class acp_users
); );
break; break;
case 'groups': case 'groups':
include($phpbb_root_path . 'includes/functions_user.' . $phpEx); include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
$user->add_lang(array('groups', 'acp/groups')); $user->add_lang(array('groups', 'acp/groups'));
$group_id = request_var('g', 0); $group_id = request_var('g', 0);
if ($group_id) if ($group_id)
{ {
// Check the founder only entry for this group to make sure everything is well // Check the founder only entry for this group to make sure everything is well
@ -1791,7 +1791,7 @@ class acp_users
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$founder_manage = (int) $db->sql_fetchfield('group_founder_manage'); $founder_manage = (int) $db->sql_fetchfield('group_founder_manage');
$db->sql_freeresult($result); $db->sql_freeresult($result);
if ($user->data['user_type'] != USER_FOUNDER && $founder_manage) if ($user->data['user_type'] != USER_FOUNDER && $founder_manage)
{ {
trigger_error($user->lang['NOT_ALLOWED_MANAGE_GROUP'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING); trigger_error($user->lang['NOT_ALLOWED_MANAGE_GROUP'] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
@ -1801,7 +1801,7 @@ class acp_users
{ {
$founder_manage = 0; $founder_manage = 0;
} }
switch ($action) switch ($action)
{ {
case 'demote': case 'demote':
@ -1832,7 +1832,7 @@ class acp_users
{ {
trigger_error($user->lang[$error] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING); trigger_error($user->lang[$error] . adm_back_link($this->u_action . '&amp;u=' . $user_id), E_USER_WARNING);
} }
$error = array(); $error = array();
} }
else else
@ -1845,7 +1845,7 @@ class acp_users
'g' => $group_id)) 'g' => $group_id))
); );
} }
break; break;
} }
@ -1980,7 +1980,7 @@ class acp_users
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$hold_ary = array(); $hold_ary = array();
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
$hold_ary = $auth_admin->get_mask('view', $user_id, false, false, $row['auth_option'], 'global', ACL_NEVER); $hold_ary = $auth_admin->get_mask('view', $user_id, false, false, $row['auth_option'], 'global', ACL_NEVER);
@ -2020,7 +2020,7 @@ class acp_users
'U_USER_PERMISSIONS' => append_sid("{$phpbb_admin_path}index.$phpEx" ,'i=permissions&amp;mode=setting_user_global&amp;user_id[]=' . $user_id), 'U_USER_PERMISSIONS' => append_sid("{$phpbb_admin_path}index.$phpEx" ,'i=permissions&amp;mode=setting_user_global&amp;user_id[]=' . $user_id),
'U_USER_FORUM_PERMISSIONS' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=permissions&amp;mode=setting_user_local&amp;user_id[]=' . $user_id)) 'U_USER_FORUM_PERMISSIONS' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=permissions&amp;mode=setting_user_local&amp;user_id[]=' . $user_id))
); );
break; break;
} }

View file

@ -301,7 +301,7 @@ class diff_renderer_unified extends diff_renderer
{ {
return '<pre class="diff context">' . htmlspecialchars($this->_lines($lines, ' ')) . '<br /></pre>'; return '<pre class="diff context">' . htmlspecialchars($this->_lines($lines, ' ')) . '<br /></pre>';
} }
function _added($lines) function _added($lines)
{ {
return '<pre class="diff added">' . htmlspecialchars($this->_lines($lines, '+')) . '<br /></pre>'; return '<pre class="diff added">' . htmlspecialchars($this->_lines($lines, '+')) . '<br /></pre>';
@ -448,7 +448,7 @@ class diff_renderer_inline extends diff_renderer
// Therefore we split on words, but include all blocks of whitespace in the wordlist. // Therefore we split on words, but include all blocks of whitespace in the wordlist.
$splitted_text_1 = $this->_split_on_words($text1, $nl); $splitted_text_1 = $this->_split_on_words($text1, $nl);
$splitted_text_2 = $this->_split_on_words($text2, $nl); $splitted_text_2 = $this->_split_on_words($text2, $nl);
$diff = &new diff($splitted_text_1, $splitted_text_2); $diff = &new diff($splitted_text_1, $splitted_text_2);
unset($splitted_text_1, $splitted_text_2); unset($splitted_text_1, $splitted_text_2);
@ -463,7 +463,7 @@ class diff_renderer_inline extends diff_renderer
{ {
// Ignore \0; otherwise the while loop will never finish. // Ignore \0; otherwise the while loop will never finish.
$string = str_replace("\0", '', $string); $string = str_replace("\0", '', $string);
$words = array(); $words = array();
$length = strlen($string); $length = strlen($string);
$pos = 0; $pos = 0;
@ -537,7 +537,7 @@ class diff_renderer_raw extends diff_renderer
{ {
return $this->_lines($lines, ' '); return $this->_lines($lines, ' ');
} }
function _added($lines) function _added($lines)
{ {
return $this->_lines($lines, '+'); return $this->_lines($lines, '+');
@ -603,7 +603,7 @@ class diff_renderer_side_by_side extends diff_renderer
// Iterate through every header block of changes // Iterate through every header block of changes
foreach ($this->lines as $header) foreach ($this->lines as $header)
{ {
$output .= '<tr><th>Line ' . $header['oldline'] . '</th><th>' . $user->lang['LINE'] . ' ' . $header['newline'] . '</th></tr>'; $output .= '<tr><th>' . $user->lang['LINE'] . ' ' . $header['oldline'] . '</th><th>' . $user->lang['LINE'] . ' ' . $header['newline'] . '</th></tr>';
// Each header block consists of a number of changes (add, remove, change). // Each header block consists of a number of changes (add, remove, change).
$current_context = ''; $current_context = '';

View file

@ -1359,7 +1359,7 @@ function update_forum_tracking_info($forum_id, $forum_last_post_time, $f_mark_ti
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
if (!in_array(base_convert($row['topic_id'], 10, 36), array_keys($check_forum))) if (!isset($check_forum[base_convert($row['topic_id'], 10, 36)]))
{ {
$unread = true; $unread = true;
break; break;
@ -2308,7 +2308,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
// Something failed, determine what... // Something failed, determine what...
if ($result['status'] == LOGIN_BREAK) if ($result['status'] == LOGIN_BREAK)
{ {
trigger_error($result['error_msg'], E_USER_ERROR); trigger_error($result['error_msg']);
} }
// Special cases... determine // Special cases... determine
@ -2423,7 +2423,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
'PASSWORD_CREDENTIAL' => ($admin) ? 'password_' . $credential : 'password', 'PASSWORD_CREDENTIAL' => ($admin) ? 'password_' . $credential : 'password',
)); ));
page_header($user->lang['LOGIN']); page_header($user->lang['LOGIN'], false);
$template->set_filenames(array( $template->set_filenames(array(
'body' => 'login_body.html') 'body' => 'login_body.html')
@ -2966,14 +2966,14 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
echo '<head>'; echo '<head>';
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />'; echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
echo '<title>' . $msg_title . '</title>'; echo '<title>' . $msg_title . '</title>';
echo '<style type="text/css">' . "\n" . '<!--' . "\n"; echo '<style type="text/css">' . "\n" . '/* <![CDATA[ */' . "\n";
echo '* { margin: 0; padding: 0; } html { font-size: 100%; height: 100%; margin-bottom: 1px; background-color: #E4EDF0; } body { font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif; color: #536482; background: #E4EDF0; font-size: 62.5%; margin: 0; } '; echo '* { margin: 0; padding: 0; } html { font-size: 100%; height: 100%; margin-bottom: 1px; background-color: #E4EDF0; } body { font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif; color: #536482; background: #E4EDF0; font-size: 62.5%; margin: 0; } ';
echo 'a:link, a:active, a:visited { color: #006699; text-decoration: none; } a:hover { color: #DD6900; text-decoration: underline; } '; echo 'a:link, a:active, a:visited { color: #006699; text-decoration: none; } a:hover { color: #DD6900; text-decoration: underline; } ';
echo '#wrap { padding: 0 20px 15px 20px; min-width: 615px; } #page-header { text-align: right; height: 40px; } #page-footer { clear: both; font-size: 1em; text-align: center; } '; echo '#wrap { padding: 0 20px 15px 20px; min-width: 615px; } #page-header { text-align: right; height: 40px; } #page-footer { clear: both; font-size: 1em; text-align: center; } ';
echo '.panel { margin: 4px 0; background-color: #FFFFFF; border: solid 1px #A9B8C2; } '; echo '.panel { margin: 4px 0; background-color: #FFFFFF; border: solid 1px #A9B8C2; } ';
echo '#errorpage #page-header a { font-weight: bold; line-height: 6em; } #errorpage #content { padding: 10px; } #errorpage #content h1 { line-height: 1.2em; margin-bottom: 0; color: #DF075C; } '; echo '#errorpage #page-header a { font-weight: bold; line-height: 6em; } #errorpage #content { padding: 10px; } #errorpage #content h1 { line-height: 1.2em; margin-bottom: 0; color: #DF075C; } ';
echo '#errorpage #content div { margin-top: 20px; margin-bottom: 5px; border-bottom: 1px solid #CCCCCC; padding-bottom: 5px; color: #333333; font: bold 1.2em "Lucida Grande", Arial, Helvetica, sans-serif; text-decoration: none; line-height: 120%; text-align: left; } '; echo '#errorpage #content div { margin-top: 20px; margin-bottom: 5px; border-bottom: 1px solid #CCCCCC; padding-bottom: 5px; color: #333333; font: bold 1.2em "Lucida Grande", Arial, Helvetica, sans-serif; text-decoration: none; line-height: 120%; text-align: left; } ';
echo "\n" . '//-->' . "\n"; echo "\n" . '/* ]]> */' . "\n";
echo '</style>'; echo '</style>';
echo '</head>'; echo '</head>';
echo '<body id="errorpage">'; echo '<body id="errorpage">';
@ -3344,7 +3344,6 @@ function page_header($page_title = '', $display_online_list = true)
'U_POPUP_PM' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=popup'), 'U_POPUP_PM' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=popup'),
'UA_POPUP_PM' => addslashes(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=popup')), 'UA_POPUP_PM' => addslashes(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;mode=popup')),
'U_MEMBERLIST' => append_sid("{$phpbb_root_path}memberlist.$phpEx"), 'U_MEMBERLIST' => append_sid("{$phpbb_root_path}memberlist.$phpEx"),
'U_MEMBERSLIST' => append_sid("{$phpbb_root_path}memberlist.$phpEx"),
'U_VIEWONLINE' => ($auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$phpbb_root_path}viewonline.$phpEx") : '', 'U_VIEWONLINE' => ($auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel')) ? append_sid("{$phpbb_root_path}viewonline.$phpEx") : '',
'U_LOGIN_LOGOUT' => $u_login_logout, 'U_LOGIN_LOGOUT' => $u_login_logout,
'U_INDEX' => append_sid("{$phpbb_root_path}index.$phpEx"), 'U_INDEX' => append_sid("{$phpbb_root_path}index.$phpEx"),
@ -3380,6 +3379,7 @@ function page_header($page_title = '', $display_online_list = true)
'S_DISPLAY_PM' => ($config['allow_privmsg'] && $user->data['is_registered'] && ($auth->acl_get('u_readpm') || $auth->acl_get('u_sendpm'))) ? true : false, 'S_DISPLAY_PM' => ($config['allow_privmsg'] && $user->data['is_registered'] && ($auth->acl_get('u_readpm') || $auth->acl_get('u_sendpm'))) ? true : false,
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0, 'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
'S_NEW_PM' => ($s_privmsg_new) ? 1 : 0, 'S_NEW_PM' => ($s_privmsg_new) ? 1 : 0,
'S_REGISTER_ENABLED' => ($config['require_activation'] != USER_ACTIVATION_DISABLE) ? true : false,
'T_THEME_PATH' => "{$phpbb_root_path}styles/" . $user->theme['theme_path'] . '/theme', 'T_THEME_PATH' => "{$phpbb_root_path}styles/" . $user->theme['theme_path'] . '/theme',
'T_TEMPLATE_PATH' => "{$phpbb_root_path}styles/" . $user->theme['template_path'] . '/template', 'T_TEMPLATE_PATH' => "{$phpbb_root_path}styles/" . $user->theme['template_path'] . '/template',

View file

@ -67,7 +67,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key,
$sort_dir = key($sort_dir_text); $sort_dir = key($sort_dir_text);
} }
$s_limit_days = '<select name="st">'; $s_limit_days = '<select name="st" id="st">';
foreach ($limit_days as $day => $text) foreach ($limit_days as $day => $text)
{ {
$selected = ($sort_days == $day) ? ' selected="selected"' : ''; $selected = ($sort_days == $day) ? ' selected="selected"' : '';
@ -75,7 +75,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key,
} }
$s_limit_days .= '</select>'; $s_limit_days .= '</select>';
$s_sort_key = '<select name="sk">'; $s_sort_key = '<select name="sk" id="sk">';
foreach ($sort_by_text as $key => $text) foreach ($sort_by_text as $key => $text)
{ {
$selected = ($sort_key == $key) ? ' selected="selected"' : ''; $selected = ($sort_key == $key) ? ' selected="selected"' : '';
@ -83,7 +83,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key,
} }
$s_sort_key .= '</select>'; $s_sort_key .= '</select>';
$s_sort_dir = '<select name="sd">'; $s_sort_dir = '<select name="sd" id="sd">';
foreach ($sort_dir_text as $key => $value) foreach ($sort_dir_text as $key => $value)
{ {
$selected = ($sort_dir == $key) ? ' selected="selected"' : ''; $selected = ($sort_dir == $key) ? ' selected="selected"' : '';
@ -382,7 +382,7 @@ function strip_bbcode(&$text, $uid = '')
$match = get_preg_expression('bbcode_htm'); $match = get_preg_expression('bbcode_htm');
$replace = array('\1', '\1', '\2', '\1', '', ''); $replace = array('\1', '\1', '\2', '\1', '', '');
$text = preg_replace($match, $replace, $text); $text = preg_replace($match, $replace, $text);
} }
@ -418,7 +418,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags)
{ {
$bbcode->bbcode($bitfield); $bbcode->bbcode($bitfield);
} }
$bbcode->bbcode_second_pass($text, $uid); $bbcode->bbcode_second_pass($text, $uid);
} }
@ -801,7 +801,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count,
$template->destroy_block_vars('_file'); $template->destroy_block_vars('_file');
$block_array = array(); $block_array = array();
// Some basics... // Some basics...
$attachment['extension'] = strtolower(trim($attachment['extension'])); $attachment['extension'] = strtolower(trim($attachment['extension']));
$filename = $phpbb_root_path . $config['upload_path'] . '/' . basename($attachment['physical_filename']); $filename = $phpbb_root_path . $config['upload_path'] . '/' . basename($attachment['physical_filename']);
@ -1083,7 +1083,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append
{ {
$string = 'Re: ' . $string; $string = 'Re: ' . $string;
} }
if ($append != '' && $stripped) if ($append != '' && $stripped)
{ {
$string = $string . $append; $string = $string . $append;
@ -1202,7 +1202,7 @@ class bitfield
if (strlen($this->data) >= $byte + 1) if (strlen($this->data) >= $byte + 1)
{ {
$c = $this->data[$byte]; $c = $this->data[$byte];
// Lookup the ($n % 8)th bit of the byte // Lookup the ($n % 8)th bit of the byte
$bit = 7 - ($n & 7); $bit = 7 - ($n & 7);
return (bool) (ord($c) & (1 << $bit)); return (bool) (ord($c) & (1 << $bit));

View file

@ -27,7 +27,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array();
$parent_id = $visible_forums = 0; $parent_id = $visible_forums = 0;
$sql_from = ''; $sql_from = '';
// Mark forums read? // Mark forums read?
$mark_read = request_var('mark', ''); $mark_read = request_var('mark', '');
@ -438,7 +438,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'S_UNREAD' => $subforum['unread']) 'S_UNREAD' => $subforum['unread'])
); );
} }
$last_catless = $catless; $last_catless = $catless;
} }
@ -980,7 +980,7 @@ function display_user_activity(&$userdata)
/** /**
* Topic and forum watching common code * Topic and forum watching common code
*/ */
function watch_topic_forum($mode, &$s_watching, &$s_watching_img, $user_id, $forum_id, $topic_id, $notify_status = 'unset', $start = 0) function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id, $notify_status = 'unset', $start = 0)
{ {
global $template, $db, $user, $phpEx, $start, $phpbb_root_path; global $template, $db, $user, $phpEx, $start, $phpbb_root_path;

View file

@ -677,7 +677,7 @@ class p_master
} }
// Select first id we can get // Select first id we can get
if (!$current_id && (in_array($item_ary['id'], array_keys($this->module_cache['parents'])) || $item_ary['id'] == $this->p_id)) if (!$current_id && (isset($this->module_cache['parents'][$item_ary['id']]) || $item_ary['id'] == $this->p_id))
{ {
$current_id = $item_ary['id']; $current_id = $item_ary['id'];
} }
@ -710,7 +710,7 @@ class p_master
$tpl_ary = array( $tpl_ary = array(
'L_TITLE' => $item_ary['lang'], 'L_TITLE' => $item_ary['lang'],
'S_SELECTED' => (in_array($item_ary['id'], array_keys($this->module_cache['parents'])) || $item_ary['id'] == $this->p_id) ? true : false, 'S_SELECTED' => (isset($this->module_cache['parents'][$item_ary['id']]) || $item_ary['id'] == $this->p_id) ? true : false,
'U_TITLE' => $u_title 'U_TITLE' => $u_title
); );
@ -719,7 +719,7 @@ class p_master
$tpl_ary = array( $tpl_ary = array(
'L_TITLE' => $item_ary['lang'], 'L_TITLE' => $item_ary['lang'],
'S_SELECTED' => (in_array($item_ary['id'], array_keys($this->module_cache['parents'])) || $item_ary['id'] == $this->p_id) ? true : false, 'S_SELECTED' => (isset($this->module_cache['parents'][$item_ary['id']]) || $item_ary['id'] == $this->p_id) ? true : false,
'U_TITLE' => $u_title 'U_TITLE' => $u_title
); );

View file

@ -267,7 +267,7 @@ function posting_gen_topic_icons($mode, $icon_id)
'ICON_IMG' => $phpbb_root_path . $config['icons_path'] . '/' . $data['img'], 'ICON_IMG' => $phpbb_root_path . $config['icons_path'] . '/' . $data['img'],
'ICON_WIDTH' => $data['width'], 'ICON_WIDTH' => $data['width'],
'ICON_HEIGHT' => $data['height'], 'ICON_HEIGHT' => $data['height'],
'S_CHECKED' => ($id == $icon_id) ? true : false, 'S_CHECKED' => ($id == $icon_id) ? true : false,
'S_ICON_CHECKED' => ($id == $icon_id) ? ' checked="checked"' : '') 'S_ICON_CHECKED' => ($id == $icon_id) ? ' checked="checked"' : '')
); );
@ -323,7 +323,7 @@ function posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL)
$topic_type_array $topic_type_array
); );
foreach ($topic_type_array as $array) foreach ($topic_type_array as $array)
{ {
$template->assign_block_vars('topic_type', $array); $template->assign_block_vars('topic_type', $array);
@ -939,7 +939,8 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
WHERE p.topic_id = $topic_id WHERE p.topic_id = $topic_id
" . ((!$auth->acl_get('m_approve', $forum_id)) ? 'AND p.post_approved = 1' : '') . ' " . ((!$auth->acl_get('m_approve', $forum_id)) ? 'AND p.post_approved = 1' : '') . '
' . (($mode == 'post_review') ? " AND p.post_id > $cur_post_id" : '') . ' ' . (($mode == 'post_review') ? " AND p.post_id > $cur_post_id" : '') . '
ORDER BY p.post_time DESC'; ORDER BY p.post_time';
$sql .= ($mode == 'post_review') ? 'ASC' : 'DESC';
$result = $db->sql_query_limit($sql, $config['posts_per_page']); $result = $db->sql_query_limit($sql, $config['posts_per_page']);
$post_list = array(); $post_list = array();
@ -1722,7 +1723,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
} }
$sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : ''); $sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : '');
if ($topic_type != POST_GLOBAL) if ($topic_type != POST_GLOBAL)
{ {
if ($auth->acl_get('f_noapprove', $data['forum_id']) || $auth->acl_get('m_approve', $data['forum_id'])) if ($auth->acl_get('f_noapprove', $data['forum_id']) || $auth->acl_get('m_approve', $data['forum_id']))
@ -1945,7 +1946,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
} }
$sql_insert_ary = array(); $sql_insert_ary = array();
for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++) for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++)
{ {
if (strlen(trim($poll['poll_options'][$i]))) if (strlen(trim($poll['poll_options'][$i])))
@ -2018,7 +2019,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
foreach ($data['attachment_data'] as $pos => $attach_row) foreach ($data['attachment_data'] as $pos => $attach_row)
{ {
if ($attach_row['is_orphan'] && !in_array($attach_row['attach_id'], array_keys($orphan_rows))) if ($attach_row['is_orphan'] && !isset($orphan_rows[$attach_row['attach_id']]))
{ {
continue; continue;
} }

View file

@ -276,7 +276,7 @@ function check_rule(&$rules, &$rule_row, &$message_row, $user_id)
case ACTION_PLACE_INTO_FOLDER: case ACTION_PLACE_INTO_FOLDER:
return array('action' => $rule_row['rule_action'], 'folder_id' => $rule_row['rule_folder_id']); return array('action' => $rule_row['rule_action'], 'folder_id' => $rule_row['rule_folder_id']);
break; break;
case ACTION_MARK_AS_READ: case ACTION_MARK_AS_READ:
case ACTION_MARK_AS_IMPORTANT: case ACTION_MARK_AS_IMPORTANT:
return array('action' => $rule_row['rule_action'], 'pm_unread' => $message_row['pm_unread'], 'pm_marked' => $message_row['pm_marked']); return array('action' => $rule_row['rule_action'], 'pm_unread' => $message_row['pm_unread'], 'pm_marked' => $message_row['pm_marked']);
@ -304,7 +304,7 @@ function check_rule(&$rules, &$rule_row, &$message_row, $user_id)
return false; return false;
break; break;
default: default:
return false; return false;
} }
@ -606,7 +606,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false)
unset($sql_folder); unset($sql_folder);
if (in_array(PRIVMSGS_INBOX, array_keys($move_into_folder))) if (isset($move_into_folder[PRIVMSGS_INBOX]))
{ {
$sql = 'SELECT COUNT(msg_id) as num_messages $sql = 'SELECT COUNT(msg_id) as num_messages
FROM ' . PRIVMSGS_TO_TABLE . " FROM ' . PRIVMSGS_TO_TABLE . "
@ -892,7 +892,7 @@ function handle_mark_actions($user_id, $mark_action)
if (confirm_box(true)) if (confirm_box(true))
{ {
delete_pm($user_id, $msg_ids, $cur_folder_id); delete_pm($user_id, $msg_ids, $cur_folder_id);
$success_msg = (sizeof($msg_ids) == 1) ? 'MESSAGE_DELETED' : 'MESSAGES_DELETED'; $success_msg = (sizeof($msg_ids) == 1) ? 'MESSAGE_DELETED' : 'MESSAGES_DELETED';
$redirect = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=' . $cur_folder_id); $redirect = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=' . $cur_folder_id);
@ -1034,8 +1034,8 @@ function delete_pm($user_id, $msg_ids, $folder_id)
$user->data['user_new_privmsg'] -= $num_new; $user->data['user_new_privmsg'] -= $num_new;
$user->data['user_unread_privmsg'] -= $num_unread; $user->data['user_unread_privmsg'] -= $num_unread;
} }
// Now we have to check which messages we can delete completely // Now we have to check which messages we can delete completely
$sql = 'SELECT msg_id $sql = 'SELECT msg_id
FROM ' . PRIVMSGS_TO_TABLE . ' FROM ' . PRIVMSGS_TO_TABLE . '
WHERE ' . $db->sql_in_set('msg_id', array_keys($delete_rows)); WHERE ' . $db->sql_in_set('msg_id', array_keys($delete_rows));
@ -1157,7 +1157,7 @@ function write_pm_addresses($check_ary, $author_id, $plaintext = false)
FROM ' . GROUPS_TABLE . ' FROM ' . GROUPS_TABLE . '
WHERE ' . $db->sql_in_set('group_id', $g); WHERE ' . $db->sql_in_set('group_id', $g);
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
if ($check_type == 'to' || $author_id == $user->data['user_id'] || $row['user_id'] == $user->data['user_id']) if ($check_type == 'to' || $author_id == $user->data['user_id'] || $row['user_id'] == $user->data['user_id'])
@ -1175,7 +1175,7 @@ function write_pm_addresses($check_ary, $author_id, $plaintext = false)
AND g.group_id = ug.group_id AND g.group_id = ug.group_id
AND ug.user_pending = 0'; AND ug.user_pending = 0';
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
if (!isset($address['group'][$row['group_id']])) if (!isset($address['group'][$row['group_id']]))
@ -1331,7 +1331,7 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
AND u.user_id = ug.user_id AND u.user_id = ug.user_id
AND u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')'; AND u.user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))
{ {
$field = ($data['address_list']['g'][$row['group_id']] == 'to') ? 'to' : 'bcc'; $field = ($data['address_list']['g'][$row['group_id']] == 'to') ? 'to' : 'bcc';
@ -1506,7 +1506,7 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
foreach ($data['attachment_data'] as $pos => $attach_row) foreach ($data['attachment_data'] as $pos => $attach_row)
{ {
if ($attach_row['is_orphan'] && !in_array($attach_row['attach_id'], array_keys($orphan_rows))) if ($attach_row['is_orphan'] && !isset($orphan_rows[$attach_row['attach_id']]))
{ {
continue; continue;
} }

View file

@ -219,7 +219,7 @@ function user_add($user_row, $cp_data = false)
'user_sig' => '', 'user_sig' => '',
'user_sig_bbcode_uid' => '', 'user_sig_bbcode_uid' => '',
'user_sig_bbcode_bitfield' => '', 'user_sig_bbcode_bitfield' => '',
'user_form_salt' => unique_id(), 'user_form_salt' => unique_id(),
); );
@ -377,7 +377,7 @@ function user_delete($mode, $user_id, $post_username = false)
{ {
avatar_delete('user', $user_row); avatar_delete('user', $user_row);
} }
switch ($mode) switch ($mode)
{ {
case 'retain': case 'retain':
@ -985,7 +985,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
'ban_give_reason' => (string) $ban_give_reason, 'ban_give_reason' => (string) $ban_give_reason,
); );
} }
$db->sql_multi_insert(BANLIST_TABLE, $sql_ary); $db->sql_multi_insert(BANLIST_TABLE, $sql_ary);
// If we are banning we want to logout anyone matching the ban // If we are banning we want to logout anyone matching the ban
@ -1292,7 +1292,7 @@ function validate_date($date_string, $optional = false)
$date[2] = 1980; $date[2] = 1980;
} }
} }
if (sizeof($date) != 3 || !checkdate($date[1], $date[0], $date[2])) if (sizeof($date) != 3 || !checkdate($date[1], $date[0], $date[2]))
{ {
return 'INVALID'; return 'INVALID';
@ -1847,7 +1847,7 @@ function avatar_delete($mode, $row, $clean_db = false)
return false; return false;
} }
} }
if ($clean_db) if ($clean_db)
{ {
avatar_remove_db($row[$mode . '_avatar']); avatar_remove_db($row[$mode . '_avatar']);
@ -1959,7 +1959,7 @@ function avatar_upload($data, &$error)
{ {
$file = $upload->remote_upload($data['uploadurl']); $file = $upload->remote_upload($data['uploadurl']);
} }
$prefix = $config['avatar_salt'] . '_'; $prefix = $config['avatar_salt'] . '_';
$file->clean_filename('avatar', $prefix, $data['user_id']); $file->clean_filename('avatar', $prefix, $data['user_id']);
@ -1996,7 +1996,7 @@ function get_avatar_filename($avatar_entry)
{ {
global $config; global $config;
if ($avatar_entry[0] === 'g') if ($avatar_entry[0] === 'g')
{ {
$avatar_group = true; $avatar_group = true;
@ -2042,7 +2042,7 @@ function avatar_gallery($category, $avatar_select, $items_per_column, $block_var
if ($file[0] != '.' && preg_match('#^[^&"\'<>]+$#i', $file) && is_dir("$path/$file")) if ($file[0] != '.' && preg_match('#^[^&"\'<>]+$#i', $file) && is_dir("$path/$file"))
{ {
$avatar_row_count = $avatar_col_count = 0; $avatar_row_count = $avatar_col_count = 0;
if ($dp2 = @opendir("$path/$file")) if ($dp2 = @opendir("$path/$file"))
{ {
while (($sub_file = readdir($dp2)) !== false) while (($sub_file = readdir($dp2)) !== false)
@ -2122,7 +2122,7 @@ function avatar_gallery($category, $avatar_select, $items_per_column, $block_var
function avatar_get_dimensions($avatar, $avatar_type, &$error, $current_x = 0, $current_y = 0) function avatar_get_dimensions($avatar, $avatar_type, &$error, $current_x = 0, $current_y = 0)
{ {
global $config, $phpbb_root_path, $user; global $config, $phpbb_root_path, $user;
switch ($avatar_type) switch ($avatar_type)
{ {
case AVATAR_REMOTE : case AVATAR_REMOTE :
@ -2131,7 +2131,7 @@ function avatar_get_dimensions($avatar, $avatar_type, &$error, $current_x = 0, $
case AVATAR_UPLOAD : case AVATAR_UPLOAD :
$avatar = $phpbb_root_path . $config['avatar_path'] . '/' . get_avatar_filename($avatar); $avatar = $phpbb_root_path . $config['avatar_path'] . '/' . get_avatar_filename($avatar);
break; break;
case AVATAR_GALLERY : case AVATAR_GALLERY :
$avatar = $phpbb_root_path . $config['avatar_gallery_path'] . '/' . $avatar ; $avatar = $phpbb_root_path . $config['avatar_gallery_path'] . '/' . $avatar ;
break; break;
@ -2149,7 +2149,7 @@ function avatar_get_dimensions($avatar, $avatar_type, &$error, $current_x = 0, $
$error[] = $user->lang['AVATAR_NO_SIZE']; $error[] = $user->lang['AVATAR_NO_SIZE'];
return false; return false;
} }
// try to maintain ratio // try to maintain ratio
if (!(empty($current_x) && empty($current_y))) if (!(empty($current_x) && empty($current_y)))
{ {
@ -2248,7 +2248,7 @@ function avatar_process_user(&$error, $custom_userdata = false)
else if (!empty($userdata['user_avatar'])) else if (!empty($userdata['user_avatar']))
{ {
// Only update the dimensions // Only update the dimensions
if (empty($data['width']) || empty($data['height'])) if (empty($data['width']) || empty($data['height']))
{ {
if ($dims = avatar_get_dimensions($userdata['user_avatar'], $userdata['user_avatar_type'], $error, $data['width'], $data['height'])) if ($dims = avatar_get_dimensions($userdata['user_avatar'], $userdata['user_avatar_type'], $error, $data['width'], $data['height']))
@ -2354,13 +2354,13 @@ function group_create(&$group_id, $type, $name, $desc, $group_attributes, $allow
{ {
$error[] = (!utf8_strlen($name)) ? $user->lang['GROUP_ERR_USERNAME'] : $user->lang['GROUP_ERR_USER_LONG']; $error[] = (!utf8_strlen($name)) ? $user->lang['GROUP_ERR_USERNAME'] : $user->lang['GROUP_ERR_USER_LONG'];
} }
$err = group_validate_groupname($group_id, $name); $err = group_validate_groupname($group_id, $name);
if (!empty($err)) if (!empty($err))
{ {
$error[] = $user->lang[$err]; $error[] = $user->lang[$err];
} }
if (!in_array($type, array(GROUP_OPEN, GROUP_CLOSED, GROUP_HIDDEN, GROUP_SPECIAL, GROUP_FREE))) if (!in_array($type, array(GROUP_OPEN, GROUP_CLOSED, GROUP_HIDDEN, GROUP_SPECIAL, GROUP_FREE)))
{ {
$error[] = $user->lang['GROUP_ERR_TYPE']; $error[] = $user->lang['GROUP_ERR_TYPE'];
@ -2494,7 +2494,7 @@ function group_correct_avatar($group_id, $old_entry)
$old_filename = get_avatar_filename($old_entry); $old_filename = get_avatar_filename($old_entry);
$new_filename = $config['avatar_salt'] . "_g$group_id.$ext"; $new_filename = $config['avatar_salt'] . "_g$group_id.$ext";
$new_entry = 'g' . $group_id . '_' . substr(time(), -5) . ".$ext"; $new_entry = 'g' . $group_id . '_' . substr(time(), -5) . ".$ext";
$avatar_path = $phpbb_root_path . $config['avatar_path']; $avatar_path = $phpbb_root_path . $config['avatar_path'];
if (@rename($avatar_path . '/'. $old_filename, $avatar_path . '/' . $new_filename)) if (@rename($avatar_path . '/'. $old_filename, $avatar_path . '/' . $new_filename))
{ {
@ -2512,7 +2512,7 @@ function group_correct_avatar($group_id, $old_entry)
function avatar_remove_db($avatar_name) function avatar_remove_db($avatar_name)
{ {
global $config, $db; global $config, $db;
$sql = 'UPDATE ' . USERS_TABLE . " $sql = 'UPDATE ' . USERS_TABLE . "
SET user_avatar = '', SET user_avatar = '',
user_avatar_type = 0 user_avatar_type = 0
@ -2842,7 +2842,7 @@ function remove_default_avatar($group_id, $user_ids)
return false; return false;
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);
$sql = 'UPDATE ' . USERS_TABLE . " $sql = 'UPDATE ' . USERS_TABLE . "
SET user_avatar = '', SET user_avatar = '',
user_avatar_type = 0, user_avatar_type = 0,
@ -2851,7 +2851,7 @@ function remove_default_avatar($group_id, $user_ids)
WHERE group_id = " . (int) $group_id . " WHERE group_id = " . (int) $group_id . "
AND user_avatar = '" . $db->sql_escape($row['group_avatar']) . "' AND user_avatar = '" . $db->sql_escape($row['group_avatar']) . "'
AND " . $db->sql_in_set('user_id', $user_ids); AND " . $db->sql_in_set('user_id', $user_ids);
$db->sql_query($sql); $db->sql_query($sql);
} }
@ -3053,7 +3053,7 @@ function group_validate_groupname($group_id, $group_name)
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result); $row = $db->sql_fetchrow($result);
$db->sql_freeresult($result); $db->sql_freeresult($result);
if ($row) if ($row)
{ {
return 'GROUP_NAME_TAKEN'; return 'GROUP_NAME_TAKEN';
@ -3116,7 +3116,7 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
} }
// Before we update the user attributes, we will make a list of those having now the group avatar assigned // Before we update the user attributes, we will make a list of those having now the group avatar assigned
if (in_array('user_avatar', array_keys($sql_ary))) if (isset($sql_ary['user_avatar']))
{ {
// Ok, get the original avatar data from users having an uploaded one (we need to remove these from the filesystem) // Ok, get the original avatar data from users having an uploaded one (we need to remove these from the filesystem)
$sql = 'SELECT user_id, group_id, user_avatar $sql = 'SELECT user_id, group_id, user_avatar
@ -3142,7 +3142,7 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
WHERE ' . $db->sql_in_set('user_id', $user_id_ary); WHERE ' . $db->sql_in_set('user_id', $user_id_ary);
$db->sql_query($sql); $db->sql_query($sql);
if (in_array('user_colour', array_keys($sql_ary))) if (isset($sql_ary['user_colour']))
{ {
// Update any cached colour information for these users // Update any cached colour information for these users
$sql = 'UPDATE ' . FORUMS_TABLE . " SET forum_last_poster_colour = '" . $db->sql_escape($sql_ary['user_colour']) . "' $sql = 'UPDATE ' . FORUMS_TABLE . " SET forum_last_poster_colour = '" . $db->sql_escape($sql_ary['user_colour']) . "'

View file

@ -92,7 +92,7 @@ class ucp_pm
{ {
if ($user->data['user_new_privmsg']) if ($user->data['user_new_privmsg'])
{ {
$l_new_message = ($user->data['user_new_privmsg'] == 1 ) ? $user->lang['YOU_NEW_PM'] : $user->lang['YOU_NEW_PMS']; $l_new_message = ($user->data['user_new_privmsg'] == 1) ? $user->lang['YOU_NEW_PM'] : $user->lang['YOU_NEW_PMS'];
} }
else else
{ {

View file

@ -114,7 +114,7 @@ class ucp_prefs
$s_custom = false; $s_custom = false;
$dateformat_options .= '<option value="custom"'; $dateformat_options .= '<option value="custom"';
if (!in_array($data['dateformat'], array_keys($user->lang['dateformats']))) if (!isset($user->lang['dateformats'][$data['dateformat']]))
{ {
$dateformat_options .= ' selected="selected"'; $dateformat_options .= ' selected="selected"';
$s_custom = true; $s_custom = true;

View file

@ -53,7 +53,7 @@ class install_update extends module
{ {
var $p_master; var $p_master;
var $update_info; var $update_info;
var $old_location; var $old_location;
var $new_location; var $new_location;
var $latest_version; var $latest_version;
@ -764,7 +764,7 @@ class install_update extends module
{ {
continue; continue;
} }
$methods[] = $type; $methods[] = $type;
} }
@ -1490,7 +1490,7 @@ class install_update extends module
return; return;
} }
if (in_array($file, array_keys($this->update_info['custom']))) if (isset($this->update_info['custom'][$file]))
{ {
foreach ($this->update_info['custom'][$file] as $_file) foreach ($this->update_info['custom'][$file] as $_file)
{ {

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* *
* acp common [English] * acp_common [English]
* *
* @package language * @package language
* @version $Id$ * @version $Id$
@ -57,7 +57,7 @@ $lang = array_merge($lang, array(
'ACP_BOARD_MANAGEMENT' => 'Board management', 'ACP_BOARD_MANAGEMENT' => 'Board management',
'ACP_BOARD_SETTINGS' => 'Board settings', 'ACP_BOARD_SETTINGS' => 'Board settings',
'ACP_BOTS' => 'Spiders/Robots', 'ACP_BOTS' => 'Spiders/Robots',
'ACP_CAPTCHA' => 'CAPTCHA', 'ACP_CAPTCHA' => 'CAPTCHA',
'ACP_CAT_DATABASE' => 'Database', 'ACP_CAT_DATABASE' => 'Database',
@ -75,14 +75,14 @@ $lang = array_merge($lang, array(
'ACP_COOKIE_SETTINGS' => 'Cookie settings', 'ACP_COOKIE_SETTINGS' => 'Cookie settings',
'ACP_CRITICAL_LOGS' => 'Error log', 'ACP_CRITICAL_LOGS' => 'Error log',
'ACP_CUSTOM_PROFILE_FIELDS' => 'Custom profile fields', 'ACP_CUSTOM_PROFILE_FIELDS' => 'Custom profile fields',
'ACP_DATABASE' => 'Database management', 'ACP_DATABASE' => 'Database management',
'ACP_DISALLOW' => 'Disallow', 'ACP_DISALLOW' => 'Disallow',
'ACP_DISALLOW_USERNAMES' => 'Disallow usernames', 'ACP_DISALLOW_USERNAMES' => 'Disallow usernames',
'ACP_EMAIL_SETTINGS' => 'E-mail settings', 'ACP_EMAIL_SETTINGS' => 'E-mail settings',
'ACP_EXTENSION_GROUPS' => 'Manage extension groups', 'ACP_EXTENSION_GROUPS' => 'Manage extension groups',
'ACP_FORUM_BASED_PERMISSIONS' => 'Forum based permissions', 'ACP_FORUM_BASED_PERMISSIONS' => 'Forum based permissions',
'ACP_FORUM_LOGS' => 'Forum logs', 'ACP_FORUM_LOGS' => 'Forum logs',
'ACP_FORUM_MANAGEMENT' => 'Forum management', 'ACP_FORUM_MANAGEMENT' => 'Forum management',
@ -99,20 +99,20 @@ $lang = array_merge($lang, array(
'ACP_GROUPS_MANAGE' => 'Manage groups', 'ACP_GROUPS_MANAGE' => 'Manage groups',
'ACP_GROUPS_MANAGEMENT' => 'Group management', 'ACP_GROUPS_MANAGEMENT' => 'Group management',
'ACP_GROUPS_PERMISSIONS' => 'Groups permissions', 'ACP_GROUPS_PERMISSIONS' => 'Groups permissions',
'ACP_ICONS' => 'Topic icons', 'ACP_ICONS' => 'Topic icons',
'ACP_ICONS_SMILIES' => 'Topic icons/smilies', 'ACP_ICONS_SMILIES' => 'Topic icons/smilies',
'ACP_IMAGESETS' => 'Imagesets', 'ACP_IMAGESETS' => 'Imagesets',
'ACP_INACTIVE_USERS' => 'Inactive users', 'ACP_INACTIVE_USERS' => 'Inactive users',
'ACP_INDEX' => 'ACP index', 'ACP_INDEX' => 'ACP index',
'ACP_JABBER_SETTINGS' => 'Jabber settings', 'ACP_JABBER_SETTINGS' => 'Jabber settings',
'ACP_LANGUAGE' => 'Language management', 'ACP_LANGUAGE' => 'Language management',
'ACP_LANGUAGE_PACKS' => 'Language packs', 'ACP_LANGUAGE_PACKS' => 'Language packs',
'ACP_LOAD_SETTINGS' => 'Load settings', 'ACP_LOAD_SETTINGS' => 'Load settings',
'ACP_LOGGING' => 'Logging', 'ACP_LOGGING' => 'Logging',
'ACP_MAIN' => 'ACP index', 'ACP_MAIN' => 'ACP index',
'ACP_MANAGE_EXTENSIONS' => 'Manage extensions', 'ACP_MANAGE_EXTENSIONS' => 'Manage extensions',
'ACP_MANAGE_FORUMS' => 'Manage forums', 'ACP_MANAGE_FORUMS' => 'Manage forums',
@ -125,9 +125,9 @@ $lang = array_merge($lang, array(
'ACP_MODULE_MANAGEMENT' => 'Module management', 'ACP_MODULE_MANAGEMENT' => 'Module management',
'ACP_MOD_LOGS' => 'Moderator log', 'ACP_MOD_LOGS' => 'Moderator log',
'ACP_MOD_ROLES' => 'Moderator roles', 'ACP_MOD_ROLES' => 'Moderator roles',
'ACP_ORPHAN_ATTACHMENTS' => 'Orphaned attachments', 'ACP_ORPHAN_ATTACHMENTS' => 'Orphaned attachments',
'ACP_PERMISSIONS' => 'Permissions', 'ACP_PERMISSIONS' => 'Permissions',
'ACP_PERMISSION_MASKS' => 'Permission masks', 'ACP_PERMISSION_MASKS' => 'Permission masks',
'ACP_PERMISSION_ROLES' => 'Permission roles', 'ACP_PERMISSION_ROLES' => 'Permission roles',
@ -137,9 +137,9 @@ $lang = array_merge($lang, array(
'ACP_PRUNE_FORUMS' => 'Prune forums', 'ACP_PRUNE_FORUMS' => 'Prune forums',
'ACP_PRUNE_USERS' => 'Prune users', 'ACP_PRUNE_USERS' => 'Prune users',
'ACP_PRUNING' => 'Pruning', 'ACP_PRUNING' => 'Pruning',
'ACP_QUICK_ACCESS' => 'Quick access', 'ACP_QUICK_ACCESS' => 'Quick access',
'ACP_RANKS' => 'Ranks', 'ACP_RANKS' => 'Ranks',
'ACP_REASONS' => 'Report/denial reasons', 'ACP_REASONS' => 'Report/denial reasons',
'ACP_REGISTER_SETTINGS' => 'User registration settings', 'ACP_REGISTER_SETTINGS' => 'User registration settings',
@ -158,10 +158,10 @@ $lang = array_merge($lang, array(
'ACP_STYLE_COMPONENTS' => 'Style components', 'ACP_STYLE_COMPONENTS' => 'Style components',
'ACP_STYLE_MANAGEMENT' => 'Style management', 'ACP_STYLE_MANAGEMENT' => 'Style management',
'ACP_STYLES' => 'Styles', 'ACP_STYLES' => 'Styles',
'ACP_TEMPLATES' => 'Templates', 'ACP_TEMPLATES' => 'Templates',
'ACP_THEMES' => 'Themes', 'ACP_THEMES' => 'Themes',
'ACP_UPDATE' => 'Updating', 'ACP_UPDATE' => 'Updating',
'ACP_USERS_FORUM_PERMISSIONS' => 'Users forum permissions', 'ACP_USERS_FORUM_PERMISSIONS' => 'Users forum permissions',
'ACP_USERS_LOGS' => 'User logs', 'ACP_USERS_LOGS' => 'User logs',
@ -188,7 +188,7 @@ $lang = array_merge($lang, array(
'ACP_VIEW_FORUM_PERMISSIONS' => 'View forum-based permissions', 'ACP_VIEW_FORUM_PERMISSIONS' => 'View forum-based permissions',
'ACP_VIEW_GLOBAL_MOD_PERMISSIONS' => 'View global moderation permissions', 'ACP_VIEW_GLOBAL_MOD_PERMISSIONS' => 'View global moderation permissions',
'ACP_VIEW_USER_PERMISSIONS' => 'View user-based permissions', 'ACP_VIEW_USER_PERMISSIONS' => 'View user-based permissions',
'ACP_WORDS' => 'Word censoring', 'ACP_WORDS' => 'Word censoring',
'ACTION' => 'Action', 'ACTION' => 'Action',
@ -242,7 +242,7 @@ $lang = array_merge($lang, array(
'NOTIFY' => 'Notification', 'NOTIFY' => 'Notification',
'NO_ADMIN' => 'You are not authorised to administrate this board.', 'NO_ADMIN' => 'You are not authorised to administrate this board.',
'NO_EMAILS_DEFINED' => 'No valid e-mail addresses found.', 'NO_EMAILS_DEFINED' => 'No valid e-mail addresses found.',
'NO_PASSWORD_SUPPLIED' => 'You need to enter your password to access the Administration Control Panel.', 'NO_PASSWORD_SUPPLIED' => 'You need to enter your password to access the Administration Control Panel.',
'OFF' => 'Off', 'OFF' => 'Off',
'ON' => 'On', 'ON' => 'On',
@ -252,7 +252,7 @@ $lang = array_merge($lang, array(
'PARSE_URLS' => 'Parse links', 'PARSE_URLS' => 'Parse links',
'PERMISSIONS_TRANSFERRED' => 'Permissions transferred', 'PERMISSIONS_TRANSFERRED' => 'Permissions transferred',
'PERMISSIONS_TRANSFERRED_EXPLAIN' => 'You currently have the permissions from %1$s. You are able to browse the board with this users permissions, but not access the administration control panel since admin permissions were not transferred. You can <a href="%2$s"><strong>revert to your permission set</strong></a> at any time.', 'PERMISSIONS_TRANSFERRED_EXPLAIN' => 'You currently have the permissions from %1$s. You are able to browse the board with this users permissions, but not access the administration control panel since admin permissions were not transferred. You can <a href="%2$s"><strong>revert to your permission set</strong></a> at any time.',
'PIXEL' => 'px', 'PIXEL' => 'px',
'PROCEED_TO_ACP' => '%sProceed to the ACP%s', 'PROCEED_TO_ACP' => '%sProceed to the ACP%s',
'REMIND' => 'Remind', 'REMIND' => 'Remind',
@ -404,7 +404,7 @@ $lang = array_merge($lang, array(
'LOG_ACL_TRANSFER_PERMISSIONS' => '<strong>Permissions transferred from</strong><br />» %s', 'LOG_ACL_TRANSFER_PERMISSIONS' => '<strong>Permissions transferred from</strong><br />» %s',
'LOG_ACL_RESTORE_PERMISSIONS' => '<strong>Own permissions restored after using permissions from</strong><br />» %s', 'LOG_ACL_RESTORE_PERMISSIONS' => '<strong>Own permissions restored after using permissions from</strong><br />» %s',
'LOG_ADMIN_AUTH_FAIL' => '<strong>Failed administration login attempt</strong>', 'LOG_ADMIN_AUTH_FAIL' => '<strong>Failed administration login attempt</strong>',
'LOG_ADMIN_AUTH_SUCCESS' => '<strong>Successful administration login</strong>', 'LOG_ADMIN_AUTH_SUCCESS' => '<strong>Successful administration login</strong>',
@ -498,7 +498,7 @@ $lang = array_merge($lang, array(
'LOG_ERROR_JABBER' => '<strong>Jabber error</strong><br />» %s', 'LOG_ERROR_JABBER' => '<strong>Jabber error</strong><br />» %s',
'LOG_ERROR_EMAIL' => '<strong>E-mail error</strong><br />» %s', 'LOG_ERROR_EMAIL' => '<strong>E-mail error</strong><br />» %s',
'LOG_FORUM_ADD' => '<strong>Created new forum</strong><br />» %s', 'LOG_FORUM_ADD' => '<strong>Created new forum</strong><br />» %s',
'LOG_FORUM_DEL_FORUM' => '<strong>Deleted forum</strong><br />» %s', 'LOG_FORUM_DEL_FORUM' => '<strong>Deleted forum</strong><br />» %s',
'LOG_FORUM_DEL_FORUMS' => '<strong>Deleted forum and its subforums</strong><br />» %s', 'LOG_FORUM_DEL_FORUMS' => '<strong>Deleted forum and its subforums</strong><br />» %s',

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* acp_permissions (phpBB Permission Set) [English] * acp_permissions_phpbb (phpBB Permission Set) [English]
* *
* @package language * @package language
* @version $Id$ * @version $Id$
@ -35,7 +35,7 @@ if (empty($lang) || !is_array($lang))
/** /**
* MODDERS PLEASE NOTE * MODDERS PLEASE NOTE
* *
* You are able to put your permission sets into a separate file too by * You are able to put your permission sets into a separate file too by
* prefixing the new file with permissions_ and putting it into the acp * prefixing the new file with permissions_ and putting it into the acp
* language folder. * language folder.

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* *
* posting [English] * acp_posting [English]
* *
* @package language * @package language
* @version $Id$ * @version $Id$
@ -103,7 +103,7 @@ $lang = array_merge($lang, array(
'DISPLAY_POSTING_NO' => 'Not on posting page', 'DISPLAY_POSTING_NO' => 'Not on posting page',
'EDIT_ICONS' => 'Edit icons', 'EDIT_ICONS' => 'Edit icons',
'EDIT_SMILIES' => 'Edit smilies', 'EDIT_SMILIES' => 'Edit smilies',
'EMOTION' => 'Emotion', 'EMOTION' => 'Emotion',
@ -207,7 +207,7 @@ $lang = array_merge($lang, array(
'ADD_RANK' => 'Add new rank', 'ADD_RANK' => 'Add new rank',
'MUST_SELECT_RANK' => 'You must select a rank.', 'MUST_SELECT_RANK' => 'You must select a rank.',
'NO_ASSIGNED_RANK' => 'No special rank assigned.', 'NO_ASSIGNED_RANK' => 'No special rank assigned.',
'NO_RANK_TITLE' => 'You havent specified a title for the rank.', 'NO_RANK_TITLE' => 'You havent specified a title for the rank.',
'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.', '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.',
@ -243,12 +243,12 @@ $lang = array_merge($lang, array(
'ACP_REASONS_EXPLAIN' => 'Here you can manage the reasons used in reports and denial messages when disapproving posts. There is one default reason (marked with a *) you are not able to remove, this reason is normally used for custom messages if no reason fits.', 'ACP_REASONS_EXPLAIN' => 'Here you can manage the reasons used in reports and denial messages when disapproving posts. There is one default reason (marked with a *) you are not able to remove, this reason is normally used for custom messages if no reason fits.',
'ADD_NEW_REASON' => 'Add new reason', 'ADD_NEW_REASON' => 'Add new reason',
'AVAILABLE_TITLES' => 'Available localised reason titles', 'AVAILABLE_TITLES' => 'Available localised reason titles',
'IS_NOT_TRANSLATED' => 'Reason has <strong>not</strong> been localised.', 'IS_NOT_TRANSLATED' => 'Reason has <strong>not</strong> been localised.',
'IS_NOT_TRANSLATED_EXPLAIN' => 'Reason has <strong>not</strong> been localised. If you want to provide the localised form, specify the correct key from the language files report reasons section.', 'IS_NOT_TRANSLATED_EXPLAIN' => 'Reason has <strong>not</strong> been localised. If you want to provide the localised form, specify the correct key from the language files report reasons section.',
'IS_TRANSLATED' => 'Reason has been localised.', 'IS_TRANSLATED' => 'Reason has been localised.',
'IS_TRANSLATED_EXPLAIN' => 'Reason has been localised. If the title you enter here is specified within the language files report reasons section, the localised form of the title and description will be used.', 'IS_TRANSLATED_EXPLAIN' => 'Reason has been localised. If the title you enter here is specified within the language files report reasons section, the localised form of the title and description will be used.',
'NO_REASON' => 'Reason could not be found.', 'NO_REASON' => 'Reason could not be found.',
'NO_REASON_INFO' => 'You have to specify a title and a description for this reason.', 'NO_REASON_INFO' => 'You have to specify a title and a description for this reason.',
'NO_REMOVE_DEFAULT_REASON' => 'You are not able to remove the default reason “Other”.', 'NO_REMOVE_DEFAULT_REASON' => 'You are not able to remove the default reason “Other”.',

View file

@ -144,7 +144,7 @@ $help = array(
), ),
array( array(
0 => 'Why did I receive a warning?', 0 => 'Why did I receive a warning?',
1 => 'Each board administrator has their own set of rules for their site. If you have broken a rule, you may issued a warning. Please note that this is the board administrators decision, and the phpBB Group has nothing to do with the warnings on the given site. Contact the board administrator if you are unsure about why you were issued a warning.' 1 => 'Each board administrator has their own set of rules for their site. If you have broken a rule, you may be issued a warning. Please note that this is the board administrators decision, and the phpBB Group has nothing to do with the warnings on the given site. Contact the board administrator if you are unsure about why you were issued a warning.'
), ),
array( array(
0 => 'How can I report posts to a moderator?', 0 => 'How can I report posts to a moderator?',

View file

@ -223,7 +223,7 @@ $lang = array_merge($lang, array(
'NO_POST_SELECTED' => 'You must select at least one post to perform this action.', 'NO_POST_SELECTED' => 'You must select at least one post to perform this action.',
'NO_REASON_DISAPPROVAL' => 'Please give an appropriate reason for disapproval.', 'NO_REASON_DISAPPROVAL' => 'Please give an appropriate reason for disapproval.',
'NO_REPORT' => 'No report found', 'NO_REPORT' => 'No report found',
'NO_REPORTS' => 'No reports found', 'NO_REPORTS' => 'No reports found',
'NO_REPORT_SELECTED' => 'You must select at least one report to perform this action.', 'NO_REPORT_SELECTED' => 'You must select at least one report to perform this action.',
'NO_TOPIC_ICON' => 'None', 'NO_TOPIC_ICON' => 'None',
'NO_TOPIC_SELECTED' => 'You must select at least one topic to perform this action.', 'NO_TOPIC_SELECTED' => 'You must select at least one topic to perform this action.',
@ -273,8 +273,8 @@ $lang = array_merge($lang, array(
'REPORT_TOTAL' => 'In total there is <strong>1</strong> report to review.', 'REPORT_TOTAL' => 'In total there is <strong>1</strong> report to review.',
'RESYNC' => 'Resync', 'RESYNC' => 'Resync',
'RETURN_MESSAGE' => '%sReturn to the message%s', 'RETURN_MESSAGE' => '%sReturn to the message%s',
'RETURN_NEW_FORUM' => '%sReturn to the new forum%s', 'RETURN_NEW_FORUM' => '%sGo to the new forum%s',
'RETURN_NEW_TOPIC' => '%sReturn to the new topic%s', 'RETURN_NEW_TOPIC' => '%sGo to the new topic%s',
'RETURN_POST' => '%sReturn to the post%s', 'RETURN_POST' => '%sReturn to the post%s',
'RETURN_QUEUE' => '%sReturn to the queue%s', 'RETURN_QUEUE' => '%sReturn to the queue%s',
'RETURN_REPORTS' => '%sReturn to the reports%s', 'RETURN_REPORTS' => '%sReturn to the reports%s',

View file

@ -77,7 +77,7 @@ $lang = array_merge($lang, array(
'DELETE_MESSAGE' => 'Delete message', 'DELETE_MESSAGE' => 'Delete message',
'DELETE_MESSAGE_CONFIRM' => 'Are you sure you want to delete this message?', 'DELETE_MESSAGE_CONFIRM' => 'Are you sure you want to delete this message?',
'DELETE_OWN_POSTS' => 'Sorry but you can only delete your own posts.', 'DELETE_OWN_POSTS' => 'Sorry but you can only delete your own posts.',
'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this message?', 'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this post?',
'DELETE_POST_WARN' => 'Once deleted the post cannot be recovered', 'DELETE_POST_WARN' => 'Once deleted the post cannot be recovered',
'DISABLE_BBCODE' => 'Disable BBCode', 'DISABLE_BBCODE' => 'Disable BBCode',
'DISABLE_MAGIC_URL' => 'Do not automatically parse URLs', 'DISABLE_MAGIC_URL' => 'Do not automatically parse URLs',

View file

@ -478,7 +478,7 @@ if ($save && $user->data['is_registered'] && $auth->acl_get('u_savedrafts') && (
$subject = utf8_normalize_nfc(request_var('subject', '', true)); $subject = utf8_normalize_nfc(request_var('subject', '', true));
$subject = (!$subject && $mode != 'post') ? $post_data['topic_title'] : $subject; $subject = (!$subject && $mode != 'post') ? $post_data['topic_title'] : $subject;
$message = utf8_normalize_nfc(request_var('message', '', true)); $message = utf8_normalize_nfc(request_var('message', '', true));
if ($subject && $message) if ($subject && $message)
{ {
if (confirm_box(true)) if (confirm_box(true))
@ -620,7 +620,7 @@ if ($submit || $preview || $refresh)
$sql = 'DELETE FROM ' . POLL_VOTES_TABLE . " $sql = 'DELETE FROM ' . POLL_VOTES_TABLE . "
WHERE topic_id = $topic_id"; WHERE topic_id = $topic_id";
$db->sql_query($sql); $db->sql_query($sql);
$topic_sql = array( $topic_sql = array(
'poll_title' => '', 'poll_title' => '',
'poll_start' => 0, 'poll_start' => 0,
@ -674,7 +674,7 @@ if ($submit || $preview || $refresh)
// Check checksum ... don't re-parse message if the same // Check checksum ... don't re-parse message if the same
$update_message = ($mode != 'edit' || $message_md5 != $post_data['post_checksum'] || $status_switch || strlen($post_data['bbcode_uid']) < BBCODE_UID_LEN) ? true : false; $update_message = ($mode != 'edit' || $message_md5 != $post_data['post_checksum'] || $status_switch || strlen($post_data['bbcode_uid']) < BBCODE_UID_LEN) ? true : false;
// Parse message // Parse message
if ($update_message) if ($update_message)
{ {
@ -1073,7 +1073,7 @@ if (!sizeof($error) && $preview)
'S_IS_MULTI_CHOICE' => ($post_data['poll_max_options'] > 1) ? true : false, 'S_IS_MULTI_CHOICE' => ($post_data['poll_max_options'] > 1) ? true : false,
'POLL_QUESTION' => $parse_poll->message, 'POLL_QUESTION' => $parse_poll->message,
'L_POLL_LENGTH' => ($post_data['poll_length']) ? sprintf($user->lang['POLL_RUN_TILL'], $user->format_date($poll_end)) : '', 'L_POLL_LENGTH' => ($post_data['poll_length']) ? sprintf($user->lang['POLL_RUN_TILL'], $user->format_date($poll_end)) : '',
'L_MAX_VOTES' => ($post_data['poll_max_options'] == 1) ? $user->lang['MAX_OPTION_SELECT'] : sprintf($user->lang['MAX_OPTIONS_SELECT'], $post_data['poll_max_options'])) 'L_MAX_VOTES' => ($post_data['poll_max_options'] == 1) ? $user->lang['MAX_OPTION_SELECT'] : sprintf($user->lang['MAX_OPTIONS_SELECT'], $post_data['poll_max_options']))
); );
@ -1460,7 +1460,7 @@ function handle_post_delete($forum_id, $topic_id, $post_id, &$post_data)
} }
else else
{ {
confirm_box(false, 'DELETE_MESSAGE', $s_hidden_fields); confirm_box(false, 'DELETE_POST', $s_hidden_fields);
} }
} }

View file

@ -16,7 +16,7 @@
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT --> <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<form method="post" action="{S_LOGIN_ACTION}" class="headerspace"> <form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a></h3> <h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
<fieldset class="quick-login"> <fieldset class="quick-login">
<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" /> <label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" /> <label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />

View file

@ -46,7 +46,7 @@
<span class="corners-bottom"><span></span></span></div> <span class="corners-bottom"><span></span></span></div>
</div> </div>
<!-- IF not S_ADMIN_AUTH --> <!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED -->
<div class="panel"> <div class="panel">
<div class="inner"><span class="corners-top"><span></span></span> <div class="inner"><span class="corners-top"><span></span></span>

View file

@ -38,14 +38,14 @@
<!-- END user --> <!-- END user -->
</tbody> </tbody>
</table> </table>
<!-- IF .user -->
<fieldset class="display-options"> <fieldset class="display-options">
<label>{L_DISPLAY_POSTS}: {S_SELECT_SORT_DAYS}</label> <label>{L_DISPLAY_POSTS}: {S_SELECT_SORT_DAYS}</label>
<label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label> <label>{L_SORT_BY} {S_SELECT_SORT_KEY}</label><label>{S_SELECT_SORT_DIR}</label>
<input type="submit" name="sort" value="{L_GO}" class="button2" /> <input type="submit" name="sort" value="{L_GO}" class="button2" />
</fieldset> </fieldset>
<hr /> <hr />
<!-- ENDIF -->
<ul class="linklist"> <ul class="linklist">
<li class="rightside pagination"> <li class="rightside pagination">
<!-- IF TOTAL_USERS -->{TOTAL_USERS} <!-- ENDIF --> <!-- IF TOTAL_USERS -->{TOTAL_USERS} <!-- ENDIF -->

View file

@ -125,7 +125,7 @@
<ul class="linklist navlinks"> <ul class="linklist navlinks">
<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li> <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li> <li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>
<!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF --> <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF --> <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
@ -150,7 +150,7 @@
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li> <li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
<!-- IF not S_IS_BOT --> <!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF --> <!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
<!-- IF not S_USER_LOGGED_IN --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF --> <!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li> <li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li>
<!-- ENDIF --> <!-- ENDIF -->
</ul> </ul>

View file

@ -207,7 +207,7 @@
<!-- BEGIN leader --> <!-- BEGIN leader -->
<li class="row<!-- IF attachrow.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->"> <li class="row<!-- IF attachrow.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
<dl> <dl>
<dt><a href="{leader.U_EDIT}" class="topictitle"<!-- IF leader.GROUP_COLOUR --> style="color: #{GROUP_COLOR};"<!-- ENDIF -->>{leader.GROUP_NAME}</a> <dt><a href="{leader.U_EDIT}" class="topictitle"<!-- IF leader.GROUP_COLOUR --> style="color: #{leader.GROUP_COLOUR};"<!-- ENDIF -->>{leader.GROUP_NAME}</a>
<!-- IF leader.GROUP_DESC --><br />{leader.GROUP_DESC}<!-- ENDIF --></dt> <!-- IF leader.GROUP_DESC --><br />{leader.GROUP_DESC}<!-- ENDIF --></dt>
<dd class="option"><span><a href="{leader.U_EDIT}" >{L_EDIT}</a></span></dd> <dd class="option"><span><a href="{leader.U_EDIT}" >{L_EDIT}</a></span></dd>
<dd class="option"><span><a href="{leader.U_LIST}">{L_GROUP_LIST}</a></span></dd> <dd class="option"><span><a href="{leader.U_LIST}">{L_GROUP_LIST}</a></span></dd>

View file

@ -34,8 +34,8 @@
<dt>{L_JOINED}:</dt> <dd>{JOINED}</dd> <dt>{L_JOINED}:</dt> <dd>{JOINED}</dd>
<dt>{L_VISITED}:</dt> <dd>{LAST_VISIT_YOU}</dd> <dt>{L_VISITED}:</dt> <dd>{LAST_VISIT_YOU}</dd>
<dt>{L_TOTAL_POSTS}:</dt> <dd><!-- IF POSTS_PCT -->{POSTS} | <strong><a href="{U_SEARCH_USER}">{L_SEARCH_YOUR_POSTS}</a></strong><br />({POSTS_DAY} / {POSTS_PCT})<!-- ELSE -->{POSTS}<!-- ENDIF --></dd> <dt>{L_TOTAL_POSTS}:</dt> <dd><!-- IF POSTS_PCT -->{POSTS} | <strong><a href="{U_SEARCH_USER}">{L_SEARCH_YOUR_POSTS}</a></strong><br />({POSTS_DAY} / {POSTS_PCT})<!-- ELSE -->{POSTS}<!-- ENDIF --></dd>
<dt>{L_ACTIVE_IN_FORUM}:</dt> <dd><!-- IF ACTIVE_FORUM --><strong><a href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></strong><br />({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT})<!-- ELSE --> - <!-- ENDIF --></dd> <!-- IF ACTIVE_FORUM --><dt>{L_ACTIVE_IN_FORUM}:</dt> <dd><strong><a href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></strong><br />({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT})</dd><!-- ENDIF -->
<dt>{L_ACTIVE_IN_TOPIC}:</dt> <dd><!-- IF ACTIVE_TOPIC --><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})<!-- ELSE --> - <!-- ENDIF --></dd> <!-- IF ACTIVE_TOPIC --><dt>{L_ACTIVE_IN_TOPIC}:</dt> <dd><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})</dd><!-- ENDIF -->
<!-- IF WARNINGS --><dt>{L_YOUR_WARNINGS}:</dt> <dd class="error">{WARNING_IMG} [{WARNINGS}]</dd><!-- ENDIF --> <!-- IF WARNINGS --><dt>{L_YOUR_WARNINGS}:</dt> <dd class="error">{WARNING_IMG} [{WARNINGS}]</dd><!-- ENDIF -->
</dl> </dl>

View file

@ -7,7 +7,7 @@
<title>{SITENAME} :: {PAGE_TITLE}</title> <title>{SITENAME} :: {PAGE_TITLE}</title>
<style type="text/css"> <style type="text/css">
<!-- /* <![CDATA[ */
body { body {
font-family: Verdana,serif; font-family: Verdana,serif;
font-size: 10pt; font-size: 10pt;
@ -51,7 +51,7 @@ hr.sep {
height: 1px; height: 1px;
border-style: dashed; border-style: dashed;
} }
//--> /* ]]> */
</style> </style>
</head> </head>

View file

@ -83,7 +83,7 @@
<div class="inner"><span class="corners-top"><span></span></span> <div class="inner"><span class="corners-top"><span></span></span>
<div class="content"> <div class="content">
<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a></h3> <h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
<fieldset class="fields1"> <fieldset class="fields1">
<dl> <dl>

View file

@ -15,7 +15,7 @@
<td class="row3" colspan="2" align="center"><span class="gensmall">{LOGIN_EXPLAIN}</span></td> <td class="row3" colspan="2" align="center"><span class="gensmall">{LOGIN_EXPLAIN}</span></td>
</tr> </tr>
<!-- ENDIF --> <!-- ENDIF -->
<tr><!-- IF not S_ADMIN_AUTH --> <tr><!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED -->
<td class="row1" width="50%"> <td class="row1" width="50%">
<p class="genmed">{L_LOGIN_INFO}</p> <p class="genmed">{L_LOGIN_INFO}</p>
@ -36,7 +36,7 @@
<tr> <tr>
<td valign="top" <!-- IF S_ADMIN_AUTH -->style="width: 50%; text-align: {S_CONTENT_FLOW_END};"<!-- ENDIF -->><b class="gensmall">{L_USERNAME}:</b></td> <td valign="top" <!-- IF S_ADMIN_AUTH -->style="width: 50%; text-align: {S_CONTENT_FLOW_END};"<!-- ENDIF -->><b class="gensmall">{L_USERNAME}:</b></td>
<td><input class="post" type="text" name="{USERNAME_CREDENTIAL}" size="25" value="{USERNAME}" tabindex="1" /> <td><input class="post" type="text" name="{USERNAME_CREDENTIAL}" size="25" value="{USERNAME}" tabindex="1" />
<!-- IF not S_ADMIN_AUTH --> <!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED -->
<br /><a class="gensmall" href="{U_REGISTER}">{L_REGISTER}</a> <br /><a class="gensmall" href="{U_REGISTER}">{L_REGISTER}</a>
<!-- ENDIF --> <!-- ENDIF -->
</td> </td>

View file

@ -151,7 +151,7 @@ function marklist(id, name, state)
<!-- IF not S_IS_BOT --> <!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN --> <!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF --> <!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
<!-- ELSE --> &nbsp;<a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a> <!-- ELSEIF S_REGISTER_ENABLED --> &nbsp;<a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a>
<!-- ENDIF --> <!-- ENDIF -->
<!-- ENDIF --> <!-- ENDIF -->
</td> </td>

View file

@ -74,7 +74,7 @@
<!-- ELSEIF draftrow.S_LINK_PM --><br /><span class="gensmall">{L_PRIVATE_MESSAGE}</span> <!-- ELSEIF draftrow.S_LINK_PM --><br /><span class="gensmall">{L_PRIVATE_MESSAGE}</span>
<!-- ELSE --><br /><span class="gensmall">{L_NO_TOPIC_FORUM}</span><!-- ENDIF --> <!-- ELSE --><br /><span class="gensmall">{L_NO_TOPIC_FORUM}</span><!-- ENDIF -->
</td> </td>
<td style="padding: 4px;" align="center"><span class="gen"><a href="{draftrow.U_INSERT}">{L_LOAD_DRAFT}</a></td> <td style="padding: 4px;" align="center"><span class="gen"><a href="{draftrow.U_INSERT}">{L_LOAD_DRAFT}</a></span></td>
</tr> </tr>
<!-- END draftrow --> <!-- END draftrow -->
</table> </table>

View file

@ -14,7 +14,7 @@
</tr> </tr>
<tr> <tr>
<td class="row1"><b class="genmed">{L_EMAIL_ADDRESS}: </b><br /><span class="gensmall">{L_EMAIL_REMIND}</span></td> <td class="row1"><b class="genmed">{L_EMAIL_ADDRESS}: </b><br /><span class="gensmall">{L_EMAIL_REMIND}</span></td>
<td class="row2"><input type="text" class="post" name="email" size="25" maxlength="255" value="{EMAIL}" /></td> <td class="row2"><input type="text" class="post" name="email" size="25" maxlength="100" value="{EMAIL}" /></td>
</tr> </tr>
<tr> <tr>
<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="btnmain" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" name="reset" class="btnlite" /></td> <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="btnmain" />&nbsp;&nbsp;<input type="reset" value="{L_RESET}" name="reset" class="btnlite" /></td>

View file

@ -281,10 +281,9 @@
<td class="profile"><strong><a href="#wrapheader">{L_BACK_TO_TOP}</a></strong></td> <td class="profile"><strong><a href="#wrapheader">{L_BACK_TO_TOP}</a></strong></td>
<td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<!-- IF postrow.U_PROFILE --><a href="{postrow.U_PROFILE}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->&nbsp;</div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF not S_IS_BOT --><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> <!-- ENDIF --> <!-- ENDIF -->&nbsp;</div></td> <td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<!-- IF postrow.U_PROFILE --><a href="{postrow.U_PROFILE}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->&nbsp;</div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF not S_IS_BOT --><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> <!-- ENDIF --> <!-- ENDIF -->&nbsp;</div></td>
<!-- ENDIF -->
</tr> </tr>
<!-- ENDIF -->
<tr> <tr>
<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td> <td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr> </tr>

View file

@ -188,14 +188,16 @@ if ($forum_data['prune_next'] < time() && $forum_data['enable_prune'])
} }
// Forum rules and subscription info // Forum rules and subscription info
$s_watching_forum = $s_watching_forum_img = array(); $s_watching_forum = array(
$s_watching_forum['link'] = $s_watching_forum['title'] = ''; 'link' => '',
$s_watching_forum['is_watching'] = false; 'title' => '',
'is_watching' => false,
);
if (($config['email_enable'] || $config['jab_enable']) && $config['allow_forum_notify'] && $auth->acl_get('f_subscribe', $forum_id)) if (($config['email_enable'] || $config['jab_enable']) && $config['allow_forum_notify'] && $auth->acl_get('f_subscribe', $forum_id))
{ {
$notify_status = (isset($forum_data['notify_status'])) ? $forum_data['notify_status'] : NULL; $notify_status = (isset($forum_data['notify_status'])) ? $forum_data['notify_status'] : NULL;
watch_topic_forum('forum', $s_watching_forum, $s_watching_forum_img, $user->data['user_id'], $forum_id, 0, $notify_status); watch_topic_forum('forum', $s_watching_forum, $user->data['user_id'], $forum_id, 0, $notify_status);
} }
$s_forum_rules = ''; $s_forum_rules = '';
@ -346,7 +348,7 @@ if ($forum_data['forum_type'] == FORUM_POST)
'SELECT' => $sql_array['SELECT'], 'SELECT' => $sql_array['SELECT'],
'FROM' => $sql_array['FROM'], 'FROM' => $sql_array['FROM'],
'LEFT_JOIN' => $sql_array['LEFT_JOIN'], 'LEFT_JOIN' => $sql_array['LEFT_JOIN'],
'WHERE' => 't.forum_id IN (' . $forum_id . ', 0) 'WHERE' => 't.forum_id IN (' . $forum_id . ', 0)
AND t.topic_type IN (' . POST_ANNOUNCE . ', ' . POST_GLOBAL . ')', AND t.topic_type IN (' . POST_ANNOUNCE . ', ' . POST_GLOBAL . ')',

View file

@ -445,13 +445,15 @@ if ($start < 0 || $start > $total_posts)
$viewtopic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;start=$start&amp;$u_sort_param" . (($highlight_match) ? "&amp;hilit=$highlight" : '')); $viewtopic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;start=$start&amp;$u_sort_param" . (($highlight_match) ? "&amp;hilit=$highlight" : ''));
// Are we watching this topic? // Are we watching this topic?
$s_watching_topic = $s_watching_topic_img = array(); $s_watching_topic = array(
$s_watching_topic['link'] = $s_watching_topic['title'] = ''; 'link' => '',
$s_watching_topic['is_watching'] = false; 'title' => '',
'is_watching' => false,
);
if ($config['email_enable'] && $config['allow_topic_notify'] && $user->data['is_registered']) if ($config['email_enable'] && $config['allow_topic_notify'] && $user->data['is_registered'])
{ {
watch_topic_forum('topic', $s_watching_topic, $s_watching_topic_img, $user->data['user_id'], $forum_id, $topic_id, $topic_data['notify_status'], $start); watch_topic_forum('topic', $s_watching_topic, $user->data['user_id'], $forum_id, $topic_id, $topic_data['notify_status'], $start);
} }
// Bookmarks // Bookmarks
@ -663,7 +665,7 @@ if (!empty($topic_data['poll_start']))
if ($update && $s_can_vote) if ($update && $s_can_vote)
{ {
if (!sizeof($voted_id) || sizeof($voted_id) > $topic_data['poll_max_options'] || in_array(VOTE_CONVERTED, $cur_voted_id)) if (!sizeof($voted_id) || sizeof($voted_id) > $topic_data['poll_max_options'] || in_array(VOTE_CONVERTED, $cur_voted_id))
{ {
$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;start=$start"); $redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;start=$start");
@ -681,7 +683,7 @@ if (!empty($topic_data['poll_start']))
{ {
$message = 'VOTE_CONVERTED'; $message = 'VOTE_CONVERTED';
} }
$message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $redirect_url . '">', '</a>'); $message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $redirect_url . '">', '</a>');
trigger_error($message); trigger_error($message);
} }