Yes if they use a tool to fast upload and get more stats they will be punished. They will also be punished if they not are connected for X numbers of hours in a week after download. Anyway, if they get minus upload they get minus uploaded/downloaded (Ratio). This because they get punished as a H&R.
The uploaded/downloaded is getted negative but in the correct it is the uploaded who are negative. As the users not have downloaded more than 5368709120. They might just have downloaded a small amount but not keeped the seed up and then get punished and gotten the uploaded to negative value.
Anyway i need in the sql line so it select first as usual, and then also select the users who have a negative ratio (downloaded/uploaded).
You see in this orginal sql line:
$autowarn=mysql_query("SELECT id, warns FROM users WHERE id_level>=3 AND id_level<=6 AND downloaded>5368709120 AND uploaded/downloaded<0.50 AND disabled='no' AND awarn='no'");
That now, users with id_level bigger or is 3 AND id_level smaller or is 6 will be selected. Theey will also be included if they have downloaded more than 5368709120 AND have a ratio lower than 0.50. Now in here i want just that i should be the same, but the users who have a negative ratio will be included even if they not have downloaded>5368709120. Users who have example a ratio of 0.30 and only have downloaded like 2 GIG should be exluded. Then when they have reech the limit 5 GIG (5368709120) they shall be included to the Awarn system.
Data type is bigint(20) for both.