summaryrefslogtreecommitdiff
path: root/build/grill.php
blob: 9b41c7b8d81f7b6c7a658def282c44320ca4c089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}