Empty commit

This commit is contained in:
Git 2015-11-07 08:00:28 +00:00
parent 13a1424698
commit 1aba04093e
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,8 @@
CHANGE LOG
2015-11-06 by newman
Add proper title to torrent stats page. Update token history to display deleted torrents.
2015-10-31 by newman
Add read-only version of site options for mods

View File

@ -77,7 +77,7 @@
$Pie->generate();
$Categories = $Pie->url();
View::show_header();
View::show_header('Detailed torrent statistics');
?>
<div class="box pad center">

View File

@ -70,8 +70,8 @@
t.Format,
t.Encoding
FROM users_freeleeches AS f
JOIN torrents AS t ON t.ID = f.TorrentID
JOIN torrents_group AS g ON g.ID = t.GroupID
LEFT JOIN torrents AS t ON t.ID = f.TorrentID
LEFT JOIN torrents_group AS g ON g.ID = t.GroupID
WHERE f.UserID = $UserID
ORDER BY f.Time DESC
LIMIT $Limit");
@ -106,7 +106,11 @@
foreach ($Tokens as $Token) {
$i = !$i;
list($TorrentID, $GroupID, $Time, $Expired, $Downloaded, $Uses, $Name, $Format, $Encoding) = $Token;
$Name = "<a href=\"torrents.php?torrentid=$TorrentID\">$Name</a>";
if ($Name != '') {
$Name = "<a href=\"torrents.php?torrentid=$TorrentID\">$Name</a>";
} else {
$Name = "(<i>Deleted torrent <a href=\"log.php?search=Torrent+$TorrentID\">$TorrentID</a></i>)";
}
$ArtistName = Artists::display_artists($Artists[$GroupID]);
if ($ArtistName) {
$Name = $ArtistName.$Name;