mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
ok, sorry for this. :/
- cleaned up table names/constants git-svn-id: file:///svn/phpbb/trunk@6021 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -127,11 +127,11 @@ function mcp_front_view($id, $mode, $action)
|
||||
'SELECT' => 'r.*, p.post_id, p.post_subject, u.username, t.topic_id, t.topic_title, f.forum_id, f.forum_name',
|
||||
|
||||
'FROM' => array(
|
||||
REPORTS_TABLE => 'r',
|
||||
REASONS_TABLE => 'rr',
|
||||
TOPICS_TABLE => 't',
|
||||
USERS_TABLE => 'u',
|
||||
POSTS_TABLE => 'p'
|
||||
REPORTS_TABLE => 'r',
|
||||
REPORTS_REASONS_TABLE => 'rr',
|
||||
TOPICS_TABLE => 't',
|
||||
USERS_TABLE => 'u',
|
||||
POSTS_TABLE => 'p'
|
||||
|
||||
),
|
||||
|
||||
|
@@ -159,7 +159,7 @@ function mcp_post_details($id, $mode, $action)
|
||||
if ($auth->acl_get('m_', $post_info['forum_id']))
|
||||
{
|
||||
$sql = 'SELECT r.*, re.*, u.user_id, u.username
|
||||
FROM ' . REPORTS_TABLE . ' r, ' . USERS_TABLE . ' u, ' . REASONS_TABLE . " re
|
||||
FROM ' . REPORTS_TABLE . ' r, ' . USERS_TABLE . ' u, ' . REPORTS_REASONS_TABLE . " re
|
||||
WHERE r.post_id = $post_id
|
||||
AND r.reason_id = re.reason_id
|
||||
AND u.user_id = r.user_id
|
||||
|
@@ -578,7 +578,7 @@ function disapprove_post($post_id_list, $mode)
|
||||
if ($reason_id)
|
||||
{
|
||||
$sql = 'SELECT reason_title, reason_description
|
||||
FROM ' . REASONS_TABLE . "
|
||||
FROM ' . REPORTS_REASONS_TABLE . "
|
||||
WHERE reason_id = $reason_id";
|
||||
$result = $db->sql_query($sql);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
|
@@ -71,7 +71,7 @@ class mcp_reports
|
||||
$post_info = $post_info[$post_id];
|
||||
|
||||
$sql = 'SELECT r.user_id, r.report_closed, report_time, r.report_text, rr.reason_title, rr.reason_description, u.username
|
||||
FROM ' . REPORTS_TABLE . ' r, ' . REASONS_TABLE . ' rr, ' . USERS_TABLE . " u
|
||||
FROM ' . REPORTS_TABLE . ' r, ' . REPORTS_REASONS_TABLE . ' rr, ' . USERS_TABLE . " u
|
||||
WHERE r.post_id = $post_id
|
||||
AND rr.reason_id = r.reason_id
|
||||
AND r.user_id = u.user_id";
|
||||
|
Reference in New Issue
Block a user