= UC_MODERATOR) { $query = "SELECT id, username, added, uploaded, downloaded, donor, warned, UNIX_TIMESTAMP(added) as utadded FROM users WHERE class = ".UC_UPLOADER; $result = mysql_query($query); $num = mysql_num_rows($result); // how many uploaders echo "
We have " . $num . " uploaders
"; $zerofix = $num - 1; // remove one row because mysql starts at zero if ($num > 0) { echo "Num | "; echo "Username | "; echo "Upped / Downed | "; echo "Ratio | "; echo "Num torrents | "; echo "Last upload | "; echo "Send PM | "; echo "||
$counter. | "; echo "$username $star $klicaj | "; echo "" . mksize($uploaded). " / " . mksize($downloaded) . " | "; echo "$ratio | "; if ($numtorrents == 0) echo "$numtorrents torrents | "; else echo "$numtorrents torrents | "; if ($numtorrents > 0) { $lastadded = mysql_result($upperresult, $numtorrents - 1, "added"); echo "" . get_elapsed_time(sql_timestamp_to_unix_timestamp($lastadded)) . " ago (" . gmdate("d. M Y",strtotime($lastadded)) . ") | "; } else echo "--- | "; echo ""; echo " |