diff --git a/classes/class_torrents.php b/classes/class_torrents.php
index 83958217..e3fb6364 100644
--- a/classes/class_torrents.php
+++ b/classes/class_torrents.php
@@ -480,7 +480,7 @@ public static function filelist_delim() {
*/
public static function filelist_format_file($File) {
list($Size, $Name) = $File;
- $Name = Format::make_utf8($Name);
+ $Name = Format::make_utf8(strtr($Name, "\n\r\t", " "));
$ExtPos = strrpos($Name, '.');
$Ext = $ExtPos ? substr($Name, $ExtPos) : '';
return sprintf("%s s%ds %s %s", $Ext, $Size, $Name, self::filelist_delim());
diff --git a/sections/forums/forum.php b/sections/forums/forum.php
index 63b4ce0c..be2ed7d9 100644
--- a/sections/forums/forum.php
+++ b/sections/forums/forum.php
@@ -111,6 +111,11 @@
+ if (check_perms('users_mod') || check_perms("site_mark_suggestions")) { ?>
+ Scoreboard
+ } ?>
+
+
/*
if(check_perms('users_mod')) {
diff --git a/sections/tools/data/suggestions.php b/sections/tools/data/suggestions.php
index e285d7d6..b1d23032 100644
--- a/sections/tools/data/suggestions.php
+++ b/sections/tools/data/suggestions.php
@@ -25,6 +25,7 @@
+
=Format::get_size($Data)?> | diff --git a/sections/top10/users.php b/sections/top10/users.php index 18402d26..951d09ad 100644 --- a/sections/top10/users.php +++ b/sections/top10/users.php @@ -40,8 +40,8 @@ JOIN users_info AS ui ON ui.UserID = u.ID LEFT JOIN torrents AS t ON t.UserID=u.ID WHERE u.Enabled='1' - AND Uploaded>'". 5*1024*1024*1024 ."' - AND Downloaded>'". 5*1024*1024*1024 ."' + AND Uploaded>'". 5*1024*1024*1024 ."' + AND Downloaded>'". 5*1024*1024*1024 ."' AND (Paranoia IS NULL OR (Paranoia NOT LIKE '%\"uploaded\"%' AND Paranoia NOT LIKE '%\"downloaded\"%')) GROUP BY u.ID"; @@ -62,7 +62,7 @@ } generate_user_table('Downloaders', 'dl', $TopUserDownloads, $Limit); } - + if($Details=='all' || $Details=='numul') { if (!$TopUserNumUploads = $Cache->get_value('topuser_numul_'.$Limit)) { $DB->query("$BaseQuery ORDER BY NumUploads DESC LIMIT $Limit;"); @@ -101,8 +101,8 @@ function generate_user_table($Caption, $Tag, $Details, $Limit) { global $Time; ?>=$Ups?> upvotes out of =$Total?> total (Score: =round($Score*100)?>). | +=number_format($Ups)?> upvotes out of =number_format($Total)?> total (Score: =number_format($Score*100)?>). | =$TorrentInfo['FileCount']?> | =time_diff($TorrentInfo['Time'])?> | diff --git a/sections/torrents/vote.php b/sections/torrents/vote.php index 75c83332..065e7c31 100644 --- a/sections/torrents/vote.php +++ b/sections/torrents/vote.php @@ -10,11 +10,15 @@||||
=$Match['Username']?> | @@ -198,8 +198,8 @@ =display_str($Match['IP'])?> (=Tools::get_country_code_by_ajax($Match['IP'])?>) S WI