mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
d8c46ff78a
This is the code that uguu.se is running, based off Pomf.
25 lines
525 B
PHP
25 lines
525 B
PHP
<?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',
|
|
'img/11.png',
|
|
'img/12.png',
|
|
'img/13.png',
|
|
'img/14.png',
|
|
'img/15.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);
|
|
}
|