require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); ob_start("ob_gzhandler"); stdhead("Active Reports"); begin_main_frame(); if (get_user_class() < UC_MODERATOR) { stderr( _('Error'), _('Permission denied')); } $type = $_GET["type"]; if ($type == "user") $where = " WHERE type = 'user'"; else if ($type == "torrent") $where = " WHERE type = 'torrent'"; else $where = ""; $res = mysql_query("SELECT count(id) FROM reports $where") or die(mysql_error()); $row = mysql_fetch_array($res); $count = $row[0]; $perpage = 25; list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?type=" . $_GET["type"] . "&" ); print("
By | Reporting | Type | Reason | Dealt With | Mark Dealt With |