Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Can i change upolad ratio? (http://www.bvlist.com/showthread.php?t=11756)

guldhammer 25th September 2018 13:17

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

l3on 25th September 2018 16:36

Drop me a message

BamBam0077 26th September 2018 00:52

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.

fireknight 26th September 2018 15:36

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.

BamBam0077 27th September 2018 02:59

Don't mean to be rude shouldn't you sqlesc the id so less chance of sql injection? or am I just :wallbash:


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


All times are GMT +2. The time now is 14:14.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.