rendered paste body" . $a["username"] . ""; else $latestuser = $a['username']; */ $registered = number_format(get_row_count("users")); //$unverified = number_format(get_row_count("users", "WHERE status='pending'")); $downloads = number_format(get_row_count("downloads")); //$dead = number_format(get_row_count("torrents", "WHERE visible='no'")); $r = mysql_query("SELECT value_u FROM avps WHERE arg='upladers'") or sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $uploaders = 0 + $a[0]; $r = mysql_query("SELECT value_u FROM avps WHERE arg='leechers'") or sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $leechers = 0 + $a[0]; if ($leechers == 0) $ratio = 0; else $ratio = round($seeders / $leechers * 100); $peers = number_format($seeders + $leechers); $seeders = number_format($seeders); $leechers = number_format($leechers); /* $dt = gmtime() - 180; $dt = sqlesc(get_date_time($dt)); $res = mysql_query("SELECT id, username, class, donated FROM users WHERE last_access >= $dt ORDER BY username") or print(mysql_error()); while ($arr = mysql_fetch_assoc($res)) { if ($activeusers) $activeusers .= ",\n"; switch ($arr["class"]) { case UC_SYSOP: case UC_ADMINISTRATOR: case UC_MODERATOR: $arr["username"] = "" . $arr["username"] . ""; break; case UC_UPLOADER: $arr["username"] = "" . $arr["username"] . ""; break; } $donator = $arr["donated"] > 0; if ($donator) $activeusers .= ""; if ($CURUSER) $activeusers .= "" . $arr["username"] . ""; else $activeusers .= "$arr[username]"; if ($donator) $activeusers .= "Donated $$arr[donated]"; } if (!$activeusers) $activeusers = "There have been no active users in the last 15 minutes."; */ stdhead(); //echo "Welcome to our newest member, $latestuser!\n"; print("
"); print("