diff --git a/sections/torrents/user.php b/sections/torrents/user.php index ee3819aa..d780c9cc 100644 --- a/sections/torrents/user.php +++ b/sections/torrents/user.php @@ -129,14 +129,14 @@ function header_link($SortKey,$DefaultWay="DESC") { if(!check_paranoia('seeding', $User['Paranoia'], $UserClass, $UserID)) { error(403); } $Time = '(unix_timestamp(now()) - xfu.timespent)'; $UserField = 'xfu.uid'; - $ExtraWhere = 'AND xfu.Remaining=0'; + $ExtraWhere = 'AND xfu.active=1 AND xfu.Remaining=0'; $From = "xbt_files_users AS xfu JOIN torrents AS t ON t.ID=xfu.fid"; break; case 'leeching': if(!check_paranoia('leeching', $User['Paranoia'], $UserClass, $UserID)) { error(403); } $Time = '(unix_timestamp(now()) - xfu.timespent)'; $UserField = 'xfu.uid'; - $ExtraWhere = 'AND xfu.Remaining>0'; + $ExtraWhere = 'AND xfu.active=1 AND xfu.Remaining>0'; $From = "xbt_files_users AS xfu JOIN torrents AS t ON t.ID=xfu.fid"; break; case 'uploaded': diff --git a/sections/user/user.php b/sections/user/user.php index 2a66d19f..b83f1f0c 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -255,7 +255,7 @@ function check_paranoia_here($Setting) { $ArtistsAdded = 0; } -/*include(SERVER_ROOT.'/classes/class_user_rank.php'); +include(SERVER_ROOT.'/classes/class_user_rank.php'); $Rank = new USER_RANK; $UploadedRank = $Rank->get_rank('uploaded', $Uploaded); @@ -273,7 +273,7 @@ function check_paranoia_here($Setting) { } else { $Ratio = round($Uploaded/$Downloaded, 2); } -$OverallRank = $Rank->overall_score($UploadedRank, $DownloadedRank, $UploadsRank, $RequestRank, $PostRank, $BountyRank, $ArtistsRank, $Ratio);*/ +$OverallRank = $Rank->overall_score($UploadedRank, $DownloadedRank, $UploadsRank, $RequestRank, $PostRank, $BountyRank, $ArtistsRank, $Ratio); ?>