I love this script and commend your work ip0li.
I notice that trades that are inactive ie: have not sent traffic within 24 hours will continue to receive traffic from the script unless you have the autostop feature configured for that trade explicitly.
Autostop can be destructive in cases of the trade site having server problems etc..
New trades if added by myself will use forces therefore if(force && $nohits); will negate the need to worry about new trades being added to the inactive trade system.
(Maybe even make this part of the initial webmaster add script.. force = '1')
if a good trade suddenly dies logic states either of 2 things have happened, either the trade host is down or the trade has suddenly dropped you from their list.
In order to contend with both situations my suggestion is to allow the script to feed a configurable field amount of hits to inactive trades by default in order to try reactivate/start a trade without the need for manual editing the trade base. Count days of inactivity, auto delete after so many days etc..
AWESOME SCRIPT BTW
tyvm