I need an all-in-one dynamic image randomization PHP script with the following features:
1.) Ability to easily include as many (external) URL sources to insert into the randomization
2.) Ability to set the "weight" (from 1-3) of each URL, at which a higher weight will cause the specific URL to be selected more often into the randomization
3.) Ability to specify at what percent (0-100) to "blank" the image display, in which case an image will not be echoed at all or a blank image will be echoed
4.) Ability to enable a setting so that if a user (by IP) has already seen one image, it will no longer be displayed in further randomization for that IP. If eventually all images/URLs are displayed, it will then just "blank"
5.) Ability to enable or disable referrer blanking
I'd prefer if this was all controlled and configurable with a PHP frontend, though if you mash this all into a single PHP file and comment everything and explain the variables to me, I can work with that also.