query(" SELECT um.BonusPoints, 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 = ? AND um.Enabled = '1' AND x.active = 1 AND x.completed = 0 AND x.Remaining = 0 GROUP BY um.ID", $UserID); # BASE BONUS POINTS RATE # See /wiki.php?action=article&name=bonuspoints if ($DB->has_results()) { list($BonusPoints, $NumTorr, $TSize, $TTime, $TSeeds) = $DB->next_record(); $ENV = ENV::go(); $PointsRate = ($ENV->BP_COEFF + (0.55*($NumTorr * (sqrt(($TSize/$NumTorr)/1073741824) * pow(1.5, ($TTime/$NumTorr)/(24*365))))) / (max(1, sqrt(($TSeeds/$NumTorr)+4)/3)))**0.95; } $PointsRate = intval(max(min($PointsRate, ($PointsRate * 2) - ($BonusPoints/1440)), 0)); $PointsPerHour = number_format($PointsRate) . " ".BONUS_POINTS."/hour"; $PointsPerDay = number_format($PointsRate*24) . " ".BONUS_POINTS."/day"; } else { $PointsPerHour = "0 ".BONUS_POINTS."/hour"; $PointsPerDay = BONUS_POINTS." disabled"; } // Include the header View::show_header('Store'); ?>

Store

You have to spend

You're making ()

Item Cost Description
0.1 GiB Upload 15 Purchase 0.1 GiB of upload
1 GiB Upload 150 Purchase 1 GiB of upload
10 GiB Upload 1,500 Purchase 10 GiB of upload
100 GiB Upload 15,000 Purchase 100 GiB of upload
10 0.15 GiB Upload Purchase 10
100 1.5 GiB Upload Purchase 100
1,000 15 GiB Upload Purchase 1,000
10,000 150 GiB Upload Purchase 10,000
Freeleech Token 1,000 Purchase a freeleech token for yourself
Freeleechize 2,000 Make a torrent freeleech (for everyone) for 24 hours
Custom Title 5,000 Purchase a custom title
Invite 10,000 Purchase an invite for your friend
Freeleech Pool Make a donation to the Freeleech Pool

Badges

query(" SELECT ID AS BadgeID, Name, Description FROM badges WHERE ID IN (40, 41, 42, 43, 44, 45, 46, 47, 48) "); if ($DB->has_results()) { $Badges = $DB->to_array(); foreach ($Badges as $ID => $Badge) { ?> '.$Badge['Name'].''; } else { $BadgeText = $Badge['Name']; } ?>
Badge Cost Description