Empty commit

This commit is contained in:
Git 2012-12-18 08:00:12 +00:00
parent 5a9df1cd81
commit fca1286884
4 changed files with 38 additions and 10 deletions

View File

@ -1,9 +1,8 @@
<?
if(!check_perms('admin_reports')){
if(!check_perms('admin_reports') && !check_perms('site_moderate_forums')){
error(403);
}
View::show_header('Other reports stats');
?>
@ -16,11 +15,12 @@
</div>
</div>
<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");
$Results = $DB->to_array();
?>
<table class="layout">
<tr>
<td class="label"><strong>Reports resolved in the last 24h</strong></td>
<td>
@ -109,6 +109,34 @@
</table>
</td>
</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>
</div>
<?

View File

@ -73,7 +73,7 @@ function Save_Edit(postid) {
$('#reply_box').toggle();
if (location.href.match(/forums\.php/)) {
ajax.post("forums.php?action=takeedit","form" + postid, function (response) {
$('#bar' + postid).raw().innerHTML = "";
$('#bar' + postid).raw().innerHTML = "<a href=\"reports.php?action=report&amp;type=post&amp;id="+postid+"\">[Report]</a>&nbsp;<a href=\"#\">&uarr;</a>";
$('#preview' + postid).raw().innerHTML = response;
$('#editbox' + postid).hide();
});

View File

@ -2,7 +2,7 @@
var count = 1;
var MAX_EXTRAS = 5;
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();
$(document).ready(function () {
$("#add_format").click(function () {

View File

@ -58,7 +58,7 @@ $(document).ready(function() {
jQuery('#popup_back').empty();
$.ajax({
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",
success: showReleases
});
@ -72,7 +72,7 @@ $(document).ready(function() {
$.ajax({
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",
success: populateForm
});
@ -136,7 +136,7 @@ function showReleases(xml) {
$year_original = $date_release_group.substring(0,4);
$release_type = $(xml).find("release-group").attr("type");
$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>");
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 + "]";
$("<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);
@ -231,7 +231,7 @@ function showReleases(xml) {
$barcode_text = "Barcode: " + $barcode + "\n";
}
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 +
$barcode_text +
"Tracks: " + $track_count + "\n" + "\n" +