website

Code for the bare sturcture of concealed.world.
git clone git://git.concealed.world/website
Log | Files | Refs | README | LICENSE

bg.php (366B)


      1 <?php
      2 $dir = '../img/bgs/';
      3 $files = scandir($dir);
      4 $images = array_diff($files, array('.', '..'));
      5 $name = $images[array_rand($images)];
      6 $fp = fopen($dir . $name, 'rb');
      7 
      8 header('Cache-Control: no-cache');
      9 header('Pragma: no-cache');
     10 header('Expires: 0');
     11 header('Content-Type: ' . $fp['type']);
     12 header('Content-Length: ' . $fp['bytes']);
     13 
     14 fpassthru($fp);
     15 exit;
     16 ?>