diff --git a/sections/reports/reports.php b/sections/reports/reports.php
index 12bdd113..fb68ca8e 100644
--- a/sections/reports/reports.php
+++ b/sections/reports/reports.php
@@ -55,7 +55,8 @@
r.Reason,
r.Status,
r.ClaimerID,
- r.Notes
+ r.Notes,
+ r.ResolverID
FROM reports AS r
JOIN users_main AS um ON r.UserID=um.ID
WHERE " . $Where . "
@@ -89,7 +90,7 @@
?>
- while (list($ReportID, $SnitchID, $SnitchName, $ThingID, $Short, $ReportedTime, $Reason, $Status, $ClaimerID, $Notes) = $DB->next_record()) {
+ while (list($ReportID, $SnitchID, $SnitchName, $ThingID, $Short, $ReportedTime, $Reason, $Status, $ClaimerID, $Notes, $ResolverID) = $DB->next_record()) {
$Type = $Types[$Short];
$Reference = "reports.php?id=" . $ReportID . "#report" . $ReportID;
?>
@@ -237,7 +238,15 @@
- } ?>
+ } else {
+ $ResolverInfo = Users::user_info($ResolverID);
+ ?>
+
+
+ Resolved By =$ResolverInfo['Username']?>
+ |
+
+ } ?>
diff --git a/static/functions/lastfm.js b/static/functions/lastfm.js
index 1903ecf0..abc9ad8e 100644
--- a/static/functions/lastfm.js
+++ b/static/functions/lastfm.js
@@ -117,8 +117,8 @@
}
// Escape ampersands with html code to avoid breaking the search links
- function escapeAmpHtml(input){
- return input.replace(/&/g,"&");
+ function escapeHtml(input){
+ return input.replace(/&/g,"&").replace(/' + escapeAmpHtml(a[i]['name']) + ''
+ sharedArtistsHtml += '' + escapeHtml(a[i]['name']) + ''
}
if ( a.length > 3 ){
for (i = 3; i < a.length; i++) {
- sharedArtistsHtml += '' + escapeAmpHtml(a[i]['name']) + ''
+ sharedArtistsHtml += '' + escapeHtml(a[i]['name']) + ''
}
sharedArtistsHtml += '[Expand]'
}
@@ -215,7 +215,7 @@
// Fix Last.fm API returning more than one entry despite limit on certain conditions.
if ( typeof(json[0]) === "object" ) json = json[0];
html += 'Last played: ';
- html += '' + escapeAmpHtml(json['artist']['#text']) + ' - ' + escapeAmpHtml(json['name']) + '';
+ html += '' + escapeHtml(json['artist']['#text']) + ' - ' + escapeHtml(json['name']) + '';
html += "";
lastPlayedTrack = html;
}
@@ -250,11 +250,11 @@
var k = initialCount;
if (j.length < 3) k = j.length;
for (var i = 0; i < k; i++) {
- html += '' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['name']) + ''
}
if ( j.length>3 ){
for (i = 3; i < j.length; i++) {
- html += '' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['name']) + ''
}
html+= '[Expand]'
}
@@ -293,11 +293,11 @@
var k = initialCount;
if (j.length < 3) k = j.length;
for (var i = 0; i < k; i++) {
- html += '' + escapeAmpHtml(j[i]['artist']['name']) + ' - ' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['artist']['name']) + ' - ' + escapeHtml(j[i]['name']) + ''
}
if ( j.length>3 ){
for (i = 3; i < j.length; i++) {
- html += '' + escapeAmpHtml(j[i]['artist']['name']) + ' - ' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['artist']['name']) + ' - ' + escapeHtml(j[i]['name']) + ''
}
html+= '[Expand]'
}
@@ -336,11 +336,11 @@
var k = initialCount;
if (j.length < 3) k = j.length;
for (var i = 0; i < k; i++) {
- html += '' + escapeAmpHtml(j[i]['artist']['name']) + ' - ' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['artist']['name']) + ' - ' + escapeHtml(j[i]['name']) + ''
}
if ( j.length>3 ){
for (i = 3; i < j.length; i++) {
- html += '' + escapeAmpHtml(j[i]['artist']['name']) + ' - ' + escapeAmpHtml(j[i]['name']) + ''
+ html += '' + escapeHtml(j[i]['artist']['name']) + ' - ' + escapeHtml(j[i]['name']) + ''
}
html+= '[Expand]'
}
diff --git a/static/functions/multiformat_uploader.js b/static/functions/multiformat_uploader.js
index 52ba0ea8..8a58a0b6 100644
--- a/static/functions/multiformat_uploader.js
+++ b/static/functions/multiformat_uploader.js
@@ -32,6 +32,7 @@
addFormats(row);
addBitrates(row);
addReleaseDescription(row);
+ $("#post").val("Upload torrents");
count++;
}
@@ -104,9 +105,11 @@
$("#add_format").show();
filenames.pop();
count--;
+ $("#post").val("Upload torrents");
}
if (count == 1) {
$("#remove_format").hide();
+ $("#post").val("Upload torrent");
}
}
diff --git a/static/styles/dark_ambient/style.css b/static/styles/dark_ambient/style.css
index e421625a..30b734bb 100644
--- a/static/styles/dark_ambient/style.css
+++ b/static/styles/dark_ambient/style.css
@@ -194,7 +194,7 @@ input[type="submit"]:active, input[type="button"]:active {
color: #007dc7 !important;
}
-input[value="Upload torrent"] {
+input[value="Upload torrent"], input[value="Upload torrents"] {
margin: 15px 0 0 0;
background-color: #2e2e2e;
color: a5cce9;
@@ -206,7 +206,7 @@ input[value="Upload torrent"] {
font-weight: bold;
}
-input[value="Upload torrent"]:active {
+input[value="Upload torrent"],input[value="Upload torrents"]:active {
color: #f4f4f4 !important;
}
diff --git a/static/styles/proton/style.css b/static/styles/proton/style.css
index 499ea02f..c40ffbcb 100644
--- a/static/styles/proton/style.css
+++ b/static/styles/proton/style.css
@@ -196,7 +196,7 @@ input[type="submit"]:active, input[type="button"]:active {
color: #007dc7 !important;
}
-input[value="Upload torrent"] {
+input[value="Upload torrent"], input[value="Upload torrents"] {
margin: 15px 0 0 0;
background-color: #007dc7;
color: white;
@@ -207,7 +207,7 @@ input[value="Upload torrent"] {
border-right: 1px solid #005488;
}
-input[value="Upload torrent"]:active {
+input[value="Upload torrent"],input[value="Upload torrents"]:active {
color: #f4f4f4 !important;
}