require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); ob_start("ob_gzhandler"); stdhead( _("Snatch Details") ); begin_main_frame(); $id = (int) $_GET['id']; if( $id === 0) { stderr( _("Error"), _("Invalid ID") ); } $res3 = do_mysql_query("SELECT COUNT(snatched.id) FROM snatched WHERE snatched.torrentid =" . (int) $_GET['id']) or die(mysql_error()); $row = mysql_fetch_array($res3); $count = $row[0]; $perpage = 50; list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?id=" . $id . "&" ); $res2 = do_mysql_query("SELECT name FROM torrents WHERE id = ".$id); $arr2 = mysql_fetch_assoc($res2); print("
"._('The users at the top finished the download most recently')."
"); echo $pagertop; print(""._('Username')." | "._('Uploaded')." | "._('Downloaded')." | "._('Share Ratio')." | "._('PM')." |
".$arr['username']." | ".$uploaded." | ".$downloaded." | ".$ratio." | ".$arr['username']." |