Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Torrent Strike
Reply
  #1  
Old 25-09-18, 13:17
guldhammer's Avatar
guldhammer guldhammer is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 27
Default Can i change upolad ratio?
Hi.

I can see that the upload ratio is 0.5
can i change it??

https://www.dropbox.com/s/a0e79inoqb...82%29.png?dl=0
Reply With Quote
  #2  
Old 25-09-18, 16:36
l3on's Avatar
l3on l3on is offline
Coder
 
Join Date: Jul 2012
Posts: 116
Default
Drop me a message
Reply With Quote
  #3  
Old 26-09-18, 00:52
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 288
Default
please share your bonus script so I could read and see if I can do it for you.
look via your notepad++ for the ratio 0.5 within and change it too either 1.0 or 1.1 or whatever your intentions are.
Reply With Quote
  #4  
Old 26-09-18, 15:36
fireknight's Avatar
fireknight fireknight is offline
VIP
 
Join Date: Aug 2010
Australia
Posts: 142
Default
include / cleanup.php

Find
Code:
/////////Update Seederbonus/////////
   $res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);
   if (mysql_num_rows($res) > 0)
   {
       while ($arr = mysql_fetch_assoc($res))
       {
       mysql_query("UPDATE users SET seedbonus = seedbonus+0.125 WHERE id = $arr[userid]") or sqlerr(__FILE__, __LINE__);
       }
   }
This part is where you adjust the bonus
Code:
seedbonus = seedbonus+0.125
Seedbonus updates every 15 mins, depending on the setting you have in config.php for $autoclean_interval. 900 equals 15 mins.

So 0.125 * 4 = 0.5.
Reply With Quote
  #5  
Old 27-09-18, 02:59
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 288
Post
Don't mean to be rude shouldn't you sqlesc the id so less chance of sql injection? or am I just


PHP Code:
mysql_query("UPDATE users SET seedbonus = seedbonus+0.125 WHERE id = $arr[userid]") or sqlerr(__FILE____LINE__); 

[PHP]
mysql_query("UPDATE users SET seedbonus = seedbonus+0.125 WHERE id = '.sqlesc($arr[userid]).'") or sqlerr(__FILE__, __LINE__);
[PHP]


not tested just quick idea
Reply With Quote
Reply

Tags
change , ratio , upolad

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 22:42. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.