|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Drop me a message
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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__); } } Code:
seedbonus = seedbonus+0.125 So 0.125 * 4 = 0.5. |
#5
|
|||
|
|||
Don't mean to be rude shouldn't you sqlesc the id so less chance of sql injection? or am I just
PHP Code:
[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 |
Tags |
change , ratio , upolad |
|
|