mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-22 21:29:08 +00:00
Empty commit
This commit is contained in:
parent
5a9df1cd81
commit
fca1286884
@ -1,9 +1,8 @@
|
|||||||
<?
|
<?
|
||||||
|
|
||||||
if(!check_perms('admin_reports')){
|
if(!check_perms('admin_reports') && !check_perms('site_moderate_forums')){
|
||||||
error(403);
|
error(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
View::show_header('Other reports stats');
|
View::show_header('Other reports stats');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -16,11 +15,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box pad thin" style="padding: 0px 0px 0px 20px; margin-left: auto; margin-right: auto">
|
<div class="box pad thin" style="padding: 0px 0px 0px 20px; margin-left: auto; margin-right: auto">
|
||||||
|
<table class="layout">
|
||||||
<?
|
<?
|
||||||
|
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");
|
$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();
|
$Results = $DB->to_array();
|
||||||
?>
|
?>
|
||||||
<table class="layout">
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="label"><strong>Reports resolved in the last 24h</strong></td>
|
<td class="label"><strong>Reports resolved in the last 24h</strong></td>
|
||||||
<td>
|
<td>
|
||||||
@ -109,6 +109,34 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<? } ?>
|
||||||
|
<tr>
|
||||||
|
<?
|
||||||
|
$DB->query("select u.Username, count(LastPostAuthorID) as Trashed from forums_topics as f left join users_main as u on u.id = LastPostAuthorID where ForumID = 12 group by LastPostAuthorID order by Trashed desc limit 30;");
|
||||||
|
$Results = $DB->to_array();
|
||||||
|
?>
|
||||||
|
<td class="label"><strong>Threads trashed since the beginning of time</strong></td>
|
||||||
|
<td>
|
||||||
|
<table style="width: 50%; margin-left: auto; margin-right: auto;" class="border">
|
||||||
|
<tr>
|
||||||
|
<td class="head colhead_dark">Place</td>
|
||||||
|
<td class="head colhead_dark">Username</td>
|
||||||
|
<td class="head colhead_dark">Trashed</td>
|
||||||
|
</tr>
|
||||||
|
<?
|
||||||
|
$i = 1;
|
||||||
|
foreach($Results as $Result) {
|
||||||
|
list($Username, $Trashed) = $Result;
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?=$i?></td>
|
||||||
|
<td><?=$Username?></td>
|
||||||
|
<td><?=$Trashed?></td>
|
||||||
|
</tr>
|
||||||
|
<? $i++; } ?>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
@ -73,7 +73,7 @@ function Save_Edit(postid) {
|
|||||||
$('#reply_box').toggle();
|
$('#reply_box').toggle();
|
||||||
if (location.href.match(/forums\.php/)) {
|
if (location.href.match(/forums\.php/)) {
|
||||||
ajax.post("forums.php?action=takeedit","form" + postid, function (response) {
|
ajax.post("forums.php?action=takeedit","form" + postid, function (response) {
|
||||||
$('#bar' + postid).raw().innerHTML = "";
|
$('#bar' + postid).raw().innerHTML = "<a href=\"reports.php?action=report&type=post&id="+postid+"\">[Report]</a> <a href=\"#\">↑</a>";
|
||||||
$('#preview' + postid).raw().innerHTML = response;
|
$('#preview' + postid).raw().innerHTML = response;
|
||||||
$('#editbox' + postid).hide();
|
$('#editbox' + postid).hide();
|
||||||
});
|
});
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
var count = 1;
|
var count = 1;
|
||||||
var MAX_EXTRAS = 5;
|
var MAX_EXTRAS = 5;
|
||||||
var FORMATS = [ 'MP3', 'FLAC', 'AAC', 'AC3', 'DTS' ];
|
var FORMATS = [ 'MP3', 'FLAC', 'AAC', 'AC3', 'DTS' ];
|
||||||
var BITRATES = [ '192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless'];
|
var BITRATES = [ '192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', '320', 'Lossless', '24bit Lossless'];
|
||||||
var filenames = new Array();
|
var filenames = new Array();
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$("#add_format").click(function () {
|
$("#add_format").click(function () {
|
||||||
|
@ -58,7 +58,7 @@ $(document).ready(function() {
|
|||||||
jQuery('#popup_back').empty();
|
jQuery('#popup_back').empty();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://musicbrainz.org/ws/2/release-group/" + $id + "?inc=artist-credits%2Breleases+tags+media",
|
url: "https://musicbrainz.org/ws/2/release-group/" + $id + "?inc=artist-credits%2Breleases+tags+media",
|
||||||
dataType: "xml",
|
dataType: "xml",
|
||||||
success: showReleases
|
success: showReleases
|
||||||
});
|
});
|
||||||
@ -72,7 +72,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://musicbrainz.org/ws/2/release/" + $id + "?inc=artist-credits%2Blabels%2Bdiscids%2Brecordings+tags+media+label-rels",
|
url: "https://musicbrainz.org/ws/2/release/" + $id + "?inc=artist-credits%2Blabels%2Bdiscids%2Brecordings+tags+media+label-rels",
|
||||||
dataType: "xml",
|
dataType: "xml",
|
||||||
success: populateForm
|
success: populateForm
|
||||||
});
|
});
|
||||||
@ -136,7 +136,7 @@ function showReleases(xml) {
|
|||||||
$year_original = $date_release_group.substring(0,4);
|
$year_original = $date_release_group.substring(0,4);
|
||||||
$release_type = $(xml).find("release-group").attr("type");
|
$release_type = $(xml).find("release-group").attr("type");
|
||||||
$release_group_id = $(xml).find("release-group").attr("id");
|
$release_group_id = $(xml).find("release-group").attr("id");
|
||||||
jQuery('#popup_title').html("Choose Release " + "<a href='http://musicbrainz.org/release-group/"
|
jQuery('#popup_title').html("Choose Release " + "<a href='https://musicbrainz.org/release-group/"
|
||||||
+ $release_group_id + "'target=_new>(View on MusicBrainz)</a>");
|
+ $release_group_id + "'target=_new>(View on MusicBrainz)</a>");
|
||||||
jQuery('#popup_back').html("<a href='#null' id='back'>[Go Back]</a>");
|
jQuery('#popup_back').html("<a href='#null' id='back'>[Go Back]</a>");
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ function showReleases(xml) {
|
|||||||
var $result = $title + " [Year: " + $year + ", Format: " + $format + ", Tracks: " + $tracks + ", Country: " + $country + "]";
|
var $result = $title + " [Year: " + $year + ", Format: " + $format + ", Tracks: " + $tracks + ", Country: " + $country + "]";
|
||||||
$("<a href='#null'>" + $result + "</a>").attr("id", $release_id).appendTo("#results2");
|
$("<a href='#null'>" + $result + "</a>").attr("id", $release_id).appendTo("#results2");
|
||||||
|
|
||||||
$("<a href='http://musicbrainz.org/release/" + $release_id +"' target=_new> (View on MB)</a>" + "<p/>").attr("id", "mb").appendTo("#results2");
|
$("<a href='https://musicbrainz.org/release/" + $release_id +"' target=_new> (View on MB)</a>" + "<p/>").attr("id", "mb").appendTo("#results2");
|
||||||
});
|
});
|
||||||
|
|
||||||
parseTags(xml);
|
parseTags(xml);
|
||||||
@ -231,7 +231,7 @@ function showReleases(xml) {
|
|||||||
$barcode_text = "Barcode: " + $barcode + "\n";
|
$barcode_text = "Barcode: " + $barcode + "\n";
|
||||||
}
|
}
|
||||||
var $description = $amazon_link +
|
var $description = $amazon_link +
|
||||||
"[url=http://musicbrainz.org/release-group/" + $release_group_id + "]MusicBrainz[/url]" + "\n" + "\n" +
|
"[url=https://musicbrainz.org/release-group/" + $release_group_id + "]MusicBrainz[/url]" + "\n" + "\n" +
|
||||||
$country_text +
|
$country_text +
|
||||||
$barcode_text +
|
$barcode_text +
|
||||||
"Tracks: " + $track_count + "\n" + "\n" +
|
"Tracks: " + $track_count + "\n" + "\n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user