Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 28th October 2014, 17:45
aleksto aleksto is offline
Member
 
Join Date: Oct 2014
Posts: 3
Default limited downloads
Hi, I want to limited downloads in my tracker for users with low ratio. I added next text in my download.php file

$ratio = (($CURUSER['downloaded'] > (1024*1024*1024)) ? ($CURUSER['uploaded'] / $CURUSER['downloaded']) : 1);
if($ratio <= 0.50)
stderr("Stop!", "Your rating is less than 0.50. Please seed, to raise it!");

But now this limited is for all users. How to ignore donors and VIP users from this code?
Reply With Quote
Reply

Tags
downloads , limited

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 23:08. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.