<?php
#Script developed by whiteShadow;
header ("Pragma: no-cache");
header ("Cache-Control: no-cache, must-revalidate");
if ( isset($HTTP_GET_VARS['profile']) || isset($HTTP_POST_VARS['profile']) )
{
$filename = ( isset($HTTP_GET_VARS['profile']) ? $HTTP_GET_VARS['profile'] : $HTTP_POST_VARS['profile'] ) . ".pro";
}
if(file_exists($filename)){
$names = file($filename);
srand ((double) microtime() * 1000000);
$randval = rand(0, sizeof($names)-1);
$pic=$names[$randval];
header ("Location: $pic");
}
else {
// do nothing... the profile file doesn't exist;
}
?>
and ofcourse you need an accompanying .pro file containing the URL's of all the avatars you wish to use. then put
http://www.WEBSITE.LOL/DIR/filename.php?profile=otherfilenameany problems pm me