forked from gitbot/uguu
13 lines
315 B
PHP
13 lines
315 B
PHP
<?php
|
|
|
|
// Array of image paths, feel free to add/remove to/from this list
|
|
$images = array(
|
|
'img/1.png',
|
|
'img/2.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);
|
|
}
|