View Single Post
  #4  
Old 26th September 2018, 15:36
fireknight's Avatar
fireknight fireknight is offline
Administrator
 
Join Date: Aug 2010
Australia
Posts: 173
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