]> jfr.im git - uguu.git/blame - static/php/grill.php
add a /
[uguu.git] / static / php / grill.php
CommitLineData
d8c46ff7
GJ
1<?php
2
3// Array of image paths, feel free to add/remove to/from this list
4$images = array(
5 'img/2.png',
6 'img/3.png',
7 'img/4.png',
8 'img/5.png',
9 'img/6.png',
10 'img/7.png',
11 'img/8.png',
12 'img/9.png',
13 'img/10.png',
14 'img/11.png',
15 'img/12.png',
16 'img/13.png',
17 'img/14.png',
18 'img/15.png',
19);
20
21// Redirect to a random image from the above array using status code "303 See Other"
22if (headers_sent() === false) {
23 header('Location: '.$images[array_rand($images)], true, 303);
24}