*/?>
*/ $dir_name=dirname(__FILE__).'/images/bg/'; if (is_dir($dir_name)) { if ($dir = opendir($dir_name)) { while ($file = readdir($dir)) { if ($file != "." && $file != "..") { $list[] = $file; } } closedir($dir); } } shuffle($list); ?>