delete_value('staff_new_cheater_count'); } elseif ($_POST['delete']){ $res = sql_query ("SELECT id FROM cheaters WHERE id IN (" . implode(", ", $_POST[delcheater]) . ")"); while ($arr = mysql_fetch_assoc($res)) sql_query ("DELETE from cheaters WHERE id = $arr[id]") or sqlerr(); $Cache->delete_value('staff_new_cheater_count'); } $count = get_row_count("cheaters"); if (!$count){ stderr($lang_cheaterbox['std_oho'], $lang_cheaterbox['std_no_suspect_detected']); } $perpage = 10; list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "cheaterbox.php?"); stdhead($lang_cheaterbox['head_cheaterbox']); ?> ".$lang_cheaterbox['text_cheaterbox'].""); print("\n"); print(""); print(""); $cheatersres = sql_query("SELECT * FROM cheaters ORDER BY dealtwith ASC, id DESC $limit"); while ($row = mysql_fetch_array($cheatersres)) { $upspeed = ($row['uploaded'] > 0 ? $row['uploaded'] / $row['anctime'] : 0); $lespeed = ($row['downloaded'] > 0 ? $row['downloaded'] / $row['anctime'] : 0); $torrentres = sql_query("SELECT name FROM torrents WHERE id=".sqlesc($row['torrentid'])); $torrentrow = mysql_fetch_array($torrentres); if ($torrentrow) $torrent = "".htmlspecialchars($torrentrow['name']).""; else $torrent = $lang_cheaterbox['text_torrent_does_not_exist']; if ($row['dealtwith']) $dealtwith = "".$lang_cheaterbox['text_yes']." - " . get_username($row['dealtby']); else $dealtwith = "".$lang_cheaterbox['text_no'].""; print("\n"); } ?> "); print($pagerbottom); end_main_frame(); stdfoot(); ?>
".$lang_cheaterbox['col_added']."".$lang_cheaterbox['col_suspect']."".$lang_cheaterbox['col_hit']."".$lang_cheaterbox['col_torrent']."".$lang_cheaterbox['col_ul']."".$lang_cheaterbox['col_dl']."".$lang_cheaterbox['col_ann_time']."".$lang_cheaterbox['col_seeders']."".$lang_cheaterbox['col_leechers']."".$lang_cheaterbox['col_comment']."".$lang_cheaterbox['col_dealt_with']."".$lang_cheaterbox['col_action']."
".gettime($row['added'])."" . get_username($row['userid']) . "" . $row['hit'] . "" . $torrent . "".mksize($row['uploaded']).($upspeed ? " @ ".mksize($upspeed)."/s" : "")."".mksize($row['downloaded']).($lespeed ? " @ ".mksize($lespeed)."/s" : "")."".$row['anctime']." sec"."".$row['seeders']."".$row['leechers']."".htmlspecialchars($row['comment'])."".$dealtwith."