sakura/cover/index.php

15 lines
214 B
PHP
Raw Normal View History

2018-05-26 18:59:29 +08:00
<?php
2018-05-28 00:15:15 +08:00
$img_array = glob("gallery/*.{gif,jpg,png}",GLOB_BRACE);
2018-05-26 18:59:29 +08:00
$img = array_rand($img_array);
$imgurl=$img_array[$img];
if($imgurl) {
header("Location: " . $imgurl);
exit();
} else {
exit('error');
}
?>