Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
sql_query("UPDATE users SET bonus = bonus + $points_per_cleanup WHERE users.id IN (SELECT userid FROM peers WHERE seeder = 'yes')") or sqlerr(__FILE__,__LINE__);
// mod bonus-min-speed
sql_query("UPDATE
(SELECT kid.userid, kid.koef
FROM
(SELECT peers.userid,
count( peers.seeder ) AS koef,
sum( peers.uploadoffset /15 /60 /1024 /2) AS speed
FROM peers
WHERE peers.seeder = 'yes' AND peers.uploadoffset /15 /60 /1024 /2 > 5
GROUP BY peers.userid
) AS kid
WHERE kid.speed >10
) AS kidusr, users
SET users.bonus = users.bonus + ( $points_per_cleanup * kidusr.koef )
WHERE kidusr.userid = users.id ;") or sqlerr(__FILE__,__LINE__);
// end mod
$points_per_hour = 1;
TBdev SVN
а где ты такую модификацию TBDev'а видел ?