if (check_perms('admin_reports')) {
$DB->query("
SELECT um.Username,
COUNT(r.ID) AS Reports
FROM reports AS r
JOIN users_main AS um ON um.ID = r.ResolverID
WHERE r.ReportedTime > '2009-08-21 22:39:41'
AND r.ReportedTime > NOW() - INTERVAL 24 HOUR
GROUP BY r.ResolverID
ORDER BY Reports DESC");
$Results = $DB->to_array();
?>
Reports resolved in the last 24 hours
Username |
Reports |
foreach ($Results as $Result) {
list($Username, $Reports) = $Result;
if ($Username == $LoggedUser['Username']) {
$RowClass = ' class="rowa"';
} else {
$RowClass = '';
}
?>
>
=$Username?> |
=number_format($Reports)?> |
} ?>
$DB->query("
SELECT um.Username,
COUNT(r.ID) AS Reports
FROM reports AS r
JOIN users_main AS um ON um.ID = r.ResolverID
WHERE r.ReportedTime > '2009-08-21 22:39:41'
AND r.ReportedTime > NOW() - INTERVAL 1 WEEK
GROUP BY r.ResolverID
ORDER BY Reports DESC");
$Results = $DB->to_array();
?>
Reports resolved in the last week
Username |
Reports |
foreach ($Results as $Result) {
list($Username, $Reports) = $Result;
if ($Username == $LoggedUser['Username']) {
$RowClass = ' class="rowa"';
} else {
$RowClass = '';
}
?>
>
=$Username?> |
=number_format($Reports)?> |
} ?>
$DB->query("
SELECT um.Username,
COUNT(r.ID) AS Reports
FROM reports AS r
JOIN users_main AS um ON um.ID = r.ResolverID
WHERE r.ReportedTime > '2009-08-21 22:39:41'
AND r.ReportedTime > NOW() - INTERVAL 1 MONTH
GROUP BY r.ResolverID
ORDER BY Reports DESC");
$Results = $DB->to_array();
?>
Reports resolved in the last month
Username |
Reports |
foreach ($Results as $Result) {
list($Username, $Reports) = $Result;
if ($Username == $LoggedUser['Username']) {
$RowClass = ' class="rowa"';
} else {
$RowClass = '';
}
?>
>
=$Username?> |
=number_format($Reports)?> |
} ?>
$DB->query("
SELECT um.Username,
COUNT(r.ID) AS Reports
FROM reports AS r
JOIN users_main AS um ON um.ID = r.ResolverID
GROUP BY r.ResolverID
ORDER BY Reports DESC");
$Results = $DB->to_array();
?>
Reports resolved since "other" reports (2009-08-21)
Username |
Reports |
foreach ($Results as $Result) {
list($Username, $Reports) = $Result;
if ($Username == $LoggedUser['Username']) {
$RowClass = ' class="rowa"';
} else {
$RowClass = '';
}
?>
>
=$Username?> |
=number_format($Reports)?> |
} ?>
} //if (check_perms('admin_reports')) ?>
$TrashForumIDs = '12';
$DB->query("
SELECT u.Username,
COUNT(f.LastPostAuthorID) as Trashed
FROM forums_topics AS f
LEFT JOIN users_main AS u ON u.ID = f.LastPostAuthorID
WHERE f.ForumID IN ($TrashForumIDs)
GROUP BY f.LastPostAuthorID
ORDER BY Trashed DESC
LIMIT 30");
$Results = $DB->to_array();
?>
Threads trashed since the beginning of time
Place |
Username |
Trashed |
$i = 1;
foreach ($Results as $Result) {
list($Username, $Trashed) = $Result;
if ($Username == $LoggedUser['Username']) {
$RowClass = ' class="rowa"';
} else {
$RowClass = '';
}
?>
>
=$i?> |
=$Username?> |
=number_format($Trashed)?> |
$i++;
}
?>