<?php



$file_types = array('gif','jpg','jpeg','png','swf');$regex = '/\.(' . implode('|',$file_types) . ')$/i';$files = array();$directory = opendir(".");while (FALSE !== ($file = readdir($directory))){if (preg_match($regex,$file)){$files[] = $file;}}if (!empty($files)){$which   = rand(0,sizeof($files)-1);header("Content-type:text/css");header("Expires:Wed,29 Jan 1975 04:15:00 GMT");header("Last-Modified:" . gmdate("D,d M Y H:i:s") . " GMT");header("Cache-Control:no-cache,must-revalidate");header("Pragma:no-cache");print ".himg #headimg{background:#fff url(http://136.243.37.132/sites/all/themes/zeropoint/_custom/headerimg-rtl/%20.%20%24files%5B%24which%5D%20.%20) no-repeat 0 100%;}";}
