query(" SELECT COUNT(DISTINCT x.fid) AS Torrents, SUM(t.Size) AS Size, SUM(xs.seedtime) AS Seedtime, SUM(t.Seeders) AS Seeders FROM users_main AS um LEFT JOIN users_info AS i on um.ID = i.UserID LEFT JOIN xbt_files_users AS x ON um.ID=x.uid LEFT JOIN torrents AS t ON t.ID=x.fid LEFT JOIN xbt_snatched AS xs ON x.uid=xs.uid AND x.fid=xs.fid WHERE um.ID = $UserID AND um.Enabled = '1' AND x.active = 1 AND x.completed = 0 AND x.Remaining = 0 GROUP BY um.ID"); if ($DB->has_results()) { list($NumTorr, $TSize, $TTime, $TSeeds) = $DB->next_record(); $PointsRate += (0.55*($NumTorr * (sqrt(($TSize/$NumTorr)/1073741824) * pow(1.5,($TTime/$NumTorr)/(24*365))))) / (max(1, sqrt(($TSeeds/$NumTorr)+4)/3)); } $PointsRate = intval($PointsRate**0.95); $PointsPerHour = number_format($PointsRate) . " nips/hour"; $PointsPerDay = number_format($PointsRate*24) . " nips/day"; } else { $PointsPerHour = "0 nips/hour"; $PointsPerDay = "Nips disabled"; } //Include the header View::show_header('Store'); ?>

Store

You have nips to spend

You're making ()

Item Cost Description
1GiB Upload 1,000 nips Purchase 1GiB of upload
10GiB Upload 10,000 nips Purchase 10GiB of upload
100GiB Upload 100,000 nips Purchase 100GiB of upload
1,000GiB Upload 1,000,000 nips Purchase 1,000GiB of upload
1,000 nips 1GiB Upload Purchase 1,000 nips
10,000 nips 10GiB Upload Purchase 10,000 nips
100,000 nips 100GiB Upload Purchase 100,000 nips
1,000,000 nips 1,000GiB Upload Purchase 1,000,000 nips
Freeleechize 20,000 nips Make a torrent freeleech (to everyone) for 24 hours
Custom Title 50,000 nips Purchase a custom title
Invite 100,000 nips Purchase an invite for your friend
Promotion nips Get promoted to
Become Admin 4,294,967,296 nips Have your class changed to Sysop
Freeleech Pool Make a donation to the Freeleech Pool

Badges

query(" SELECT ID AS BadgeID, Name, Description FROM badges WHERE ID IN (100, 101, 102, 103, 104, 105, 106, 107)"); if ($DB->has_results()) { $Badges = $DB->to_array(); foreach ($Badges as $ID => $Badge) { ?> '.$Badge['Name'].''; else $BadgeText = $Badge['Name'] ?>
Badge Cost