php code for changing avast logo

I was placing avast logo’s on my site and then I thought of something cool :)…
I made 1 file with the following source

<? $rand=rand(1,11); if($rand == 1) { echo "avast! Server"; } elseif($rand == 2) { echo "avast! for Kerio"; } elseif($rand == 3) { echo "avast! for Linux"; } elseif($rand == 4) { echo "avast! for Linux"; } elseif($rand == 5) { echo "avast! pro PDA"; } elseif($rand == 6) { echo "avast! BART CD"; } elseif($rand == 7) { echo "avast! Professional"; } elseif($rand == 8 ) { echo "avast! Home"; } elseif($rand == 9 ) { echo "avast! antivirus"; } elseif($rand == 10) { echo "avast! antivirus"; } elseif($rand == 11) { echo "avast! reseller"; } ?>

The code is simple… $rand gets a different value everytime this script is loaded. So that means you get a different logo on the page.
And that migth be usefull :slight_smile:
edit: (Only works in php sites ;))