improve scoring to store to presubmitted localhost, fix style and
[ViQa-Kissu.git] / spread-art.php
blobda955c63705bcea12e3254fcd3b3ddbc7b47146a
1 <?php
3 $spreads = scandir(__dir__ . "/static/spreads/");
4 $r = rand(2,sizeof($spreads) - 1);
5 $banner = __dir__ . "/static/spreads/" . $spreads[$r];
6 $ext = [];
8 preg_match("/\..+$/", $banner, $ext);
10 $ext_proc = substr($ext[0], 1);
12 header('Content-Type: image/' . $ext_proc);
13 readfile($banner);