require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); function bark($msg) { stdhead(); stdmsg("Error", $msg); stdfoot(); exit; } function maketable($res) { $ret = "
Type | Name | Time Alive | Size | Se. | Le. | Upl. | \n" . "Downl. | Ratio |
\n" . " | " . htmlspecialchars($arr["torrentname"]) . " | $ttl | $size | $seeders | $leechers | $uploaded | \n" . "$downloaded | ".$arr['ratio']." |
"._('Type')." | "._('Name')." | "._('Seeders')." | "._('Leechers')." | "._('Uploaded')." | "._('Downloaded')." | "._('Ratio')." | "._('When Completed')." | "._('Last Action')." |
$cat | " . htmlspecialchars($a["name"]) . " | " . "$a[seeders] | $a[leechers] | $uploaded | $downloaded | $ratio | $a[completedat] | $a[last_action] | \n"; } $completed .= "
'.$user['username']. $user['donor_img'].$user['warned_img'] . ' | '.$country.'
This account has been disabled
'; elseif ($CURUSER["id"] <> $user["uid"]) { $r = do_mysql_query('SELECT id FROM friends WHERE userid='.$CURUSER['id'].' AND friendid='.$id) or sqlerr(__FILE__, __LINE__); $friend = mysql_num_rows($r); $r = do_mysql_query('SELECT id FROM blocks WHERE userid='.$CURUSER['id'].' AND blockid='.$id) or sqlerr(__FILE__, __LINE__); $block = mysql_num_rows($r); if ($friend > 0) echo ''; elseif($block > 0) echo ''; else { echo '(add to friends)'; echo ' - (add to blocks)
'; } } if ($_GET["delete"]) { if (get_user_class() >= UC_MODERATOR && $user['invites'] > 0 || $user["uid"] == $CURUSER["id"]) { $deleted = (int) $_GET["delete"]; if (!is_valid_id($deleted)) bark("Bad ID $deleted."); do_mysql_query("DELETE FROM users WHERE id = $deleted AND status = 'pending' AND invited_by = " . $user["uid"] . ""); $invites = $user["invites"] +1; do_mysql_query("UPDATE users SET invites='$invites' WHERE id = " . $user["uid"] . ""); } } $invitees = do_mysql_query("SELECT id, username, email, uploaded, downloaded, added, status, IF( users.downloaded > 0, ROUND(users.uploaded / users.downloaded, 3), '---') as ratio FROM users WHERE invited_by=" . $user["uid"] . " ORDER BY status DESC") or sqlerr(__FILE__, __LINE__); $numbinvitees = mysql_num_rows($invitees); begin_main_frame(); ?>Join date | =$joindate; ?> | ||||
Last seen | =$lastseen;?> | ||||
Last checked | =$last_check;?> | ||||
'.$user['email'].' | |||||
Address | '.$addr.' | ||||
Passkey | '.$user['passkey'].' | ||||
Max. Torrents | '.$user['maxtorrents'].' | ||||
Invited by | '.$invited_by2['username'].' |
Added | User | Ratio | Uploaded | Downloaded | |
" . $subrow["email"] . " | " . $subrow["added"] . " | " . $subrow["username"] . " | " . $subrow['ratio'] . " | " . mksize($subrow["uploaded"]) . " | " . mksize($subrow["downloaded"]) . " |
" . $subrow["email"] . " | " . $subrow["added"] . " | [Delete] |
' . number_format($sr, 3) . ' |
Type | Name | Seeders | Leechers |
$cat | " . htmlspecialchars($a["name"]) . " | " . "$a[seeders] | $a[leechers] |