query("SELECT info_hash FROM torrents where ID = $TorrentID"); if (list($InfoHash) = $DB->next_record()) { $DB->query("UPDATE users_freeleeches SET Expired=TRUE WHERE UserID=$UserID AND TorrentID=$TorrentID"); $Cache->delete_value('users_tokens_'.$UserID); update_tracker('remove_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID)); } header("Location: userhistory.php?action=token_history&userid=$UserID"); } show_header('Freeleech token history'); list($Page,$Limit) = page_limit(25); $DB->query("SELECT SQL_CALC_FOUND_ROWS f.TorrentID, t.GroupID, f.Time, f.Expired, f.Downloaded, g.Name, 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 WHERE f.UserID = $UserID ORDER BY f.Time DESC LIMIT $Limit"); $Tokens = $DB->to_array(); $Pages=get_pages($Page, $DB->record_count(), 25, 9); ?>

Freeleech token history for

$Name"; } if($Format && $Encoding) { $Name.=' ['.$Format.' / '.$Encoding.']'; } ?>
Torrent Time Expired Downloaded
(expire)":''?>