1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-28 05:26:44 -05:00
shimapan/includes/shimapan.swig
2016-08-14 10:21:53 -04:00

19 lines
523 B
Plaintext

<?php
$images = array(
'/assets/img/girls/1.png',
'/assets/img/girls/2.png',
'/assets/img/girls/3.png',
'/assets/img/girls/4.png',
'/assets/img/girls/5.png',
'/assets/img/girls/6.png',
'/assets/img/girls/7.png',
'/assets/img/girls/8.png',
'/assets/img/girls/9.png',
'/assets/img/girls/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);
}