query($sql); $message = "$Tokens freeleech tokens added to all enabled users" . (!isset($_REQUEST['leechdisabled'])?' with enabled leeching privs':'') . '.

'; } elseif (isset($_REQUEST['expire'])) { $Tokens = $_REQUEST['tokens']; foreach ($Tokens as $Token) { list($UserID, $TorrentID) = explode(',', $Token); if (empty($UserID) || empty($TorrentID)) { continue; } $DB->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); if (!isset($_REQUEST['ocelot'])) { update_tracker('remove_token', array('info_hash' => rawurlencode($InfoHash), 'userid' => $UserID)); } } } } if (empty($_GET['showabusers'])) { show_header('Add tokens sitewide'); ?>

Add freeleech tokens to all enabled users

Tokens to add:



= $Ratio "; if (!$Expired) { $SQL .= "AND fl.Expired = 0 "; } $SQL .= "ORDER BY fl.Downloaded/t.Size LIMIT $Limit"; $DB->query($SQL); $Pages = get_pages($Page, $DB->record_count(), 50); $Abuses = $DB->to_array(); ?>

Freeleech token abusers

$Name"; } if($Format && $Encoding) { $Name.=' ['.$Format.' / '.$Encoding.']'; } ?>
User Torrent Size Transferred Ratio Expired