Hey everyone,
Due to a big demand for the script I will post it here. Be ready!
1. Create a new directory in you public_html named something like "avatars".
2. Create a text file called "avatar.txt".
3. Paste the following into avatar.txt:
[code:1:57bd26f20b]<?php
$dh = opendir(".");
while (false !== ($file = readdir($dh)))
{
if (preg_match('/.(jpg|gif|png)$/i', $file) and $file != "avatar.gif")
{
$filelist[] = $file;
}
}
srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);
header("Location: " . $filelist[$picnum]);
closedir($dh);
?>[/code:1:57bd26f20b]
4. Create another new text file, this time called ".htaccess". That is the actual file name, not just an extension. In .htaccess, paste the following:
[code:1:57bd26f20b]<FilesMatch avatar.gif>
SetHandler application/x-httpd-php
</FilesMatch>[/code:1:57bd26f20b]
5. Upload avatar.txt and .htaccess to the directory you created.
6. Rename avatar.txt to avatar.gif.
7. Upload images (jpg, gif, png) to your avatars directory.
8. Make sure file permissions for avatar.gif are set to 644 and the avatars folder is set to 755 (not sure if this makes a difference or not).
9. load
http://www.yoursite.com/avatars/avatar.gif
PLEASE ONLY ASK SUPPORT IN THIS TOPIC AND NOT VIA PM!
There you got and enjoy!

-Rabid Bird