include(SERVER_ROOT.'/sections/reports/array.php'); if (empty($_GET['type']) || empty($_GET['id']) || !is_number($_GET['id'])) { error(404); } if (!array_key_exists($_GET['type'], $Types)) { error(403); } $Short = $_GET['type']; $Type = $Types[$Short]; $ID = $_GET['id']; switch ($Short) { case 'user' : $DB->query("SELECT Username FROM users_main WHERE ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Username) = $DB->next_record(); break; case 'request_update' : $NoReason = true; $DB->query("SELECT Title, Description, TorrentID, CategoryID, Year FROM requests WHERE ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Name, $Desc, $Filled, $CategoryID, $Year) = $DB->next_record(); if ($Filled || ($CategoryID != 0 && ($Categories[$CategoryID-1] != 'Music' || $Year != 0))) { error(403); } break; case 'request' : $DB->query("SELECT Title, Description, TorrentID FROM requests WHERE ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Name, $Desc, $Filled) = $DB->next_record(); break; case 'collage' : $DB->query("SELECT Name, Description FROM collages WHERE ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Name, $Desc) = $DB->next_record(); break; case 'thread' : $DB->query("SELECT ft.Title, ft.ForumID, um.Username FROM forums_topics AS ft JOIN users_main AS um ON um.ID=ft.AuthorID WHERE ft.ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Title, $ForumID, $Username) = $DB->next_record(); $DB->query("SELECT MinClassRead FROM forums WHERE ID = ".$ForumID); list($MinClassRead) = $DB->next_record(); if (!empty($LoggedUser['DisableForums']) || ($MinClassRead > $LoggedUser['EffectiveClass'] && (!isset($LoggedUser['CustomForums'][$ForumID]) || $LoggedUser['CustomForums'][$ForumID] == 0)) || (isset($LoggedUser['CustomForums'][$ForumID]) && $LoggedUser['CustomForums'][$ForumID] == 0)) { error(403); } break; case 'post' : $DB->query('SELECT fp.Body, fp.TopicID, um.Username FROM forums_posts AS fp JOIN users_main AS um ON um.ID=fp.AuthorID WHERE fp.ID='.$ID); if ($DB->record_count() < 1) { error(404); } list($Body, $TopicID, $Username) = $DB->next_record(); $DB->query('SELECT ForumID FROM forums_topics WHERE ID = '.$TopicID); list($ForumID) = $DB->next_record(); $DB->query('SELECT MinClassRead FROM forums WHERE ID = '.$ForumID); list($MinClassRead) = $DB->next_record(); if (!empty($LoggedUser['DisableForums']) || ($MinClassRead > $LoggedUser['EffectiveClass'] && (!isset($LoggedUser['CustomForums'][$ForumID]) || $LoggedUser['CustomForums'][$ForumID] == 0)) || (isset($LoggedUser['CustomForums'][$ForumID]) && $LoggedUser['CustomForums'][$ForumID] == 0)) { error(403); } break; case 'requests_comment' : case 'torrents_comment' : case 'artist_comment': case 'collages_comment' : $Table = $Short.'s'; if ($Short == 'collages_comment') { $Column = 'UserID'; } else { $Column = 'AuthorID'; } $DB->query('SELECT '.$Short.".Body, um.Username FROM ".$Table." AS ".$Short." JOIN users_main AS um ON um.ID=".$Short.".".$Column." WHERE ".$Short.".ID=".$ID); if ($DB->record_count() < 1) { error(404); } list($Body, $Username) = $DB->next_record(); break; } View::show_header('Report a '.$Type['title'],'bbcode'); ?>
Following these guidelines will help the moderators deal with your report in a timely fashion.
In short, please include as much detail as possible when reporting. Thank you.
You are reporting the user =display_str($Username)?>
break; case 'request_update' : ?>You are reporting the request:
Title | Description | Filled? |
=display_str($Name)?> | =$Text->full_format($Desc)?> | =($Filled == 0 ? 'No' : 'Yes')?> |
It will greatly increase the turnover rate of the updates if you can fill in as much of the following details as possible.
You are reporting the request:
Title | Description | Filled? |
=display_str($Name)?> | =$Text->full_format($Desc)?> | =($Filled == 0 ? 'No' : 'Yes')?> |
You are reporting the collage:
Title | Description |
=display_str($Name)?> | =$Text->full_format($Desc)?> |
You are reporting the thread:
Username | Title |
=display_str($Username)?> | =display_str($Title)?> |
You are reporting the post:
Username | Body |
=display_str($Username)?> | =$Text->full_format($Body)?> |
You are reporting the =$Types[$Short]['title']?>:
Username | Body |
=display_str($Username)?> | =$Text->full_format($Body)?> |