= UC_ADMINISTRATOR) { begin_frame("User Requests for Invites"); print("UserUploadDownloadRatioApproveDeny\n"); $res = mysql_query("SELECT userid FROM inviterequests"); while ($arr = mysql_fetch_assoc($res)) { $id = $arr['userid']; $res = mysql_query("SELECT id, username, uploaded, downloaded FROM users where $id = id"); while ($arr = mysql_fetch_assoc($res)) { if ($arr["downloaded"] > 0) { $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3); $ratio = "$ratio"; } elseif ($arr["uploaded"] > 0) { $ratio = "Inf."; } else { $ratio = "---"; } $upload = mksize($arr["uploaded"]); $download = mksize($arr["downloaded"]); print("".$arr['username']."$upload$download$ratio\n"); } } end_frame(); } else { print("

What The Fuck Do You Think Your Doing?

\n"); } end_main_frame(); stdfoot(); ?>