mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
other fixes...
git-svn-id: file:///svn/phpbb/trunk@7242 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -2083,7 +2083,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||
{
|
||||
$redirect = request_var('redirect', "{$phpbb_root_path}index.$phpEx");
|
||||
$message = ($l_success) ? $l_success : $user->lang['LOGIN_REDIRECT'];
|
||||
$l_redirect = ($admin) ? $user->lang['PROCEED_TO_ACP'] : (($redirect === "{$phpbb_root_path}index.$phpEx") ? $user->lang['RETURN_INDEX'] : $user->lang['RETURN_PAGE']);
|
||||
$l_redirect = ($admin) ? $user->lang['PROCEED_TO_ACP'] : (($redirect === "{$phpbb_root_path}index.$phpEx" || $redirect === "index.$phpEx") ? $user->lang['RETURN_INDEX'] : $user->lang['RETURN_PAGE']);
|
||||
|
||||
// append/replace SID (may change during the session for AOL users)
|
||||
$redirect = reapply_sid($redirect);
|
||||
|
@@ -164,7 +164,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||
$active_forum_ary['forum_topics'] += ($auth->acl_get('m_approve', $forum_id)) ? $row['forum_topics_real'] : $row['forum_topics'];
|
||||
$active_forum_ary['forum_posts'] += $row['forum_posts'];
|
||||
|
||||
// If this is a passworded forum we do not show active topics from it if the user is not authorized to view it...
|
||||
// If this is a passworded forum we do not show active topics from it if the user is not authorised to view it...
|
||||
if ($row['forum_password'] && $row['user_id'] != $user->data['user_id'])
|
||||
{
|
||||
$active_forum_ary['exclude_forum_id'][] = $forum_id;
|
||||
|
@@ -91,7 +91,7 @@ class jabber
|
||||
|
||||
$this->error_codes = array(
|
||||
400 => 'Bad Request',
|
||||
401 => 'Unauthorized',
|
||||
401 => 'Unauthorised',
|
||||
402 => 'Payment Required',
|
||||
403 => 'Forbidden',
|
||||
404 => 'Not Found',
|
||||
|
@@ -1201,7 +1201,7 @@ function user_notification($mode, $subject, $topic_title, $forum_name, $forum_id
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
// Now delete the user_ids not authorized to receive notifications on this topic/forum
|
||||
// Now delete the user_ids not authorised to receive notifications on this topic/forum
|
||||
if (!empty($delete_ids['topic']))
|
||||
{
|
||||
$sql = 'DELETE FROM ' . TOPICS_WATCH_TABLE . "
|
||||
|
@@ -778,7 +778,7 @@ function move_pm($user_id, $message_limit, $move_msg_ids, $dest_folder, $cur_fol
|
||||
|
||||
if (!$row)
|
||||
{
|
||||
trigger_error('NOT_AUTHORIZED');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
|
||||
if ($row['pm_count'] + sizeof($move_msg_ids) > $message_limit)
|
||||
|
@@ -401,7 +401,7 @@ function approve_post($post_id_list, $id, $mode)
|
||||
|
||||
if (!check_ids($post_id_list, POSTS_TABLE, 'post_id', array('m_approve')))
|
||||
{
|
||||
trigger_error('NOT_AUTHORIZED');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
|
||||
$redirect = request_var('redirect', build_url(array('_f_', 'quickmod')));
|
||||
@@ -645,7 +645,7 @@ function disapprove_post($post_id_list, $id, $mode)
|
||||
|
||||
if (!check_ids($post_id_list, POSTS_TABLE, 'post_id', array('m_approve')))
|
||||
{
|
||||
trigger_error('NOT_AUTHORIZED');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
|
||||
$redirect = request_var('redirect', build_url(array('t', 'mode', '_f_', 'quickmod')) . '&mode=unapproved_topics');
|
||||
|
@@ -377,7 +377,7 @@ function close_report($post_id_list, $mode, $action)
|
||||
|
||||
if (!check_ids($post_id_list, POSTS_TABLE, 'post_id', array('m_report')))
|
||||
{
|
||||
trigger_error('NOT_AUTHORIZED');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
|
||||
if ($action == 'delete' && strpos($user->data['session_page'], 'mode=report_details') !== false)
|
||||
|
@@ -75,7 +75,7 @@ class ucp_groups
|
||||
|
||||
if (!$auth->acl_get('u_chggrp'))
|
||||
{
|
||||
trigger_error($user->lang['NOT_AUTHORIZED'] . $return_page);
|
||||
trigger_error($user->lang['NOT_AUTHORISED'] . $return_page);
|
||||
}
|
||||
|
||||
// User needs to be member of the group in order to make it default
|
||||
@@ -326,7 +326,7 @@ class ucp_groups
|
||||
// Hide hidden groups unless user is an admin with group privileges
|
||||
$sql_and = ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel')) ? '<> ' . GROUP_SPECIAL : 'NOT IN (' . GROUP_SPECIAL . ', ' . GROUP_HIDDEN . ')';
|
||||
|
||||
$sql = 'SELECT group_id, group_name, group_desc, group_desc_uid, group_desc_bitfield, group_desc_options, group_type, group_founder_manage
|
||||
$sql = 'SELECT group_id, group_name, group_colour, group_desc, group_desc_uid, group_desc_bitfield, group_desc_options, group_type, group_founder_manage
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE ' . ((sizeof($group_id_ary)) ? $db->sql_in_set('group_id', $group_id_ary, true) . ' AND ' : '') . "
|
||||
group_type $sql_and
|
||||
@@ -367,6 +367,7 @@ class ucp_groups
|
||||
'GROUP_CLOSED' => ($row['group_type'] <> GROUP_CLOSED || $auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel')) ? false : true,
|
||||
'GROUP_STATUS' => $user->lang['GROUP_IS_' . $group_status],
|
||||
'S_CAN_JOIN' => ($row['group_type'] == GROUP_OPEN || $row['group_type'] == GROUP_FREE) ? true : false,
|
||||
'GROUP_COLOUR' => $row['group_colour'],
|
||||
|
||||
'U_VIEW_GROUP' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']),
|
||||
|
||||
@@ -1001,7 +1002,7 @@ class ucp_groups
|
||||
default:
|
||||
$user->add_lang('acp/common');
|
||||
|
||||
$sql = 'SELECT g.group_id, g.group_name, g.group_desc, g.group_desc_uid, g.group_desc_bitfield, g.group_desc_options, g.group_type, ug.group_leader
|
||||
$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_desc, g.group_desc_uid, g.group_desc_bitfield, g.group_desc_options, g.group_type, ug.group_leader
|
||||
FROM ' . GROUPS_TABLE . ' g, ' . USER_GROUP_TABLE . ' ug
|
||||
WHERE ug.user_id = ' . $user->data['user_id'] . '
|
||||
AND g.group_id = ug.group_id
|
||||
@@ -1016,6 +1017,7 @@ class ucp_groups
|
||||
'GROUP_DESC' => generate_text_for_display($value['group_desc'], $value['group_desc_uid'], $value['group_desc_bitfield'], $value['group_desc_options']),
|
||||
'GROUP_TYPE' => $value['group_type'],
|
||||
'GROUP_ID' => $value['group_id'],
|
||||
'GROUP_COLOUR' => $value['group_colour'],
|
||||
|
||||
'U_LIST' => $this->u_action . "&action=list&g={$value['group_id']}",
|
||||
'U_EDIT' => $this->u_action . "&action=edit&g={$value['group_id']}")
|
||||
|
@@ -207,7 +207,7 @@ function compose_pm($id, $mode, $action)
|
||||
{
|
||||
if (($post['forum_id'] && !$auth->acl_get('f_read', $post['forum_id'])) || (!$post['forum_id'] && !$auth->acl_getf_global('f_read')))
|
||||
{
|
||||
trigger_error('NOT_AUTHORIZED');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user