diff options
| author | Austin Gillmann <alucard@cuntflaps.me> | 2017-01-04 02:12:58 +0100 |
|---|---|---|
| committer | Austin Gillmann <alucard@cuntflaps.me> | 2017-01-04 02:12:58 +0100 |
| commit | b4fc2f892b877fe0cfb90063248d720bf87b49c8 (patch) | |
| tree | bc549baf7bbfcc1fb5af576a41fbce4439d3d1f4 /build/grill.php | |
| parent | 2a57c9e78f3b23c9251adfd8773681fe695fe76d (diff) | |
Merge php submodule into pomf, delete expiry.
Diffstat (limited to 'build/grill.php')
| -rw-r--r-- | build/grill.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build/grill.php b/build/grill.php new file mode 100644 index 0000000..9b41c7b --- /dev/null +++ b/build/grill.php @@ -0,0 +1,19 @@ +<?php + +// Array of image paths, feel free to add/remove to/from this list +$images = array( + 'img/2.png', + 'img/3.png', + 'img/4.png', + 'img/5.png', + 'img/6.png', + 'img/7.png', + 'img/8.png', + 'img/9.png', + 'img/10.png', +); + +// Redirect to a random image from the above array using status code "303 See Other" +if (headers_sent() === false) { + header('Location: '.$images[array_rand($images)], true, 303); +} |
