You have made a good and simple script.
I made a modification to your script. I added the feature to require a minimum amount of time between downloads. This will enable you to:
- Keep your bandwidth exactly within your monthly download quotum (without manually having to intervene). Just set the interval to ("seconds in a month"/"allowed downloads per month" = "interval in seconds")
- Don't get all users on the same server, which results in slow downloads for all users.
- Temporarily remove a server as a download mirror. Which is useful if you are reaching your download quotum. Just set the interval to a 100 million seconds to do this.
- Smart conditioning. You can add a server twice in the list. First with a very thight condition and also last with no condition on the time in case all the other servers bail out.
SCREENSHOTS:


Note that the modified script is not compattible with the original script since I had to add two fields in the mysql database for each download file (time interval, last download time). If you just add the downloads again, they will just work fine.
The modified files are linked in this post below. All lines of code that are changed are marked with: "Revaro 040807".
INSTALL:
DOWNLOAD Download_Tracker_Mod.zip
To install the modification download "Web Download Tracker 1.4.R.2" from
http://www.checkndo.com/index.php?optio ... &Itemid=44
and replace the files with the files from within the zip-archive.
Continue by using the install instructions from Web Download Tracker 1.4.R.2.
Disclaimer:
I am not a professional PHP-coder. I know c-code very well so I am not a compete idiot. However this is probably only my 10th PHP file I used to edit so it is not guaranteed to be bug free.
Enjoy
