\n"); while ($arr = mysql_fetch_assoc($res)) { if ($arr["downloaded"] > 0) { $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3); $ratio = "$ratio"; } elseif ($arr["uploaded"]) $ratio = "Inf."; else $ratio = "---"; print("
  • $arr[username] ".($CURUSER["class"] >= UC_GLOBAL_MODERATOR ? "($ratio)".get_user_icons($arr) : "")."
  • \n"); if ($arr["invitees"] <> 0) invite_tree($arr["user_id"]); } print("\n"); } $id = 0 + $_GET["id"]; if (is_valid_id($id) && $CURUSER["class"] >= UC_GLOBAL_MODERATOR) { $ret = sql_query("SELECT username, donor, invitees FROM users WHERE user_id = $id") or sqlerr(__FILE__, __LINE__); $row = mysql_fetch_assoc($ret); if ($row) $user = "$row[username]".($row["donor"] == "yes" ? "\"Donor\"" : ""); } if (!$user) { $id = $CURUSER["user_id"]; $row = $CURUSER; } if ($row["invitees"] < 1) stderr("No invitees", "It appears that ".($row == $CURUSER ? "you have" : "the user you are trying to view the invite tree of has")." not yet invited any users."); stdhead("Invite tree"); print("

    ".($user ? "Invite tree of $user" : "My invite tree")."

    \n"); print("
    \n"); invite_tree($id); print("
    \n"); stdfoot(); ?>