/* header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 $sendheader= headers_sent; */ $company = '1'; $newpath = 'wallpaper/'; $i = 0; if ($dir = @opendir($newpath)) { while (($file[$i] = readdir($dir)) !== false) { $i ++; } closedir($dir); } sort ($file); $rand = rand (3,count($file)); $display = $newpath.$file[$rand]; ?>
|
if (strtoupper(substr($display,-3)) == "JPG")
{
echo ' \n"; } else { fputs ($fp, $request); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } } ?> |