sakura/feature/index.php

15 lines
214 B
PHP
Raw Permalink Normal View History

2019-01-02 11:56:56 +08:00
<?php
$img_array = glob("gallery/*.{gif,jpg,png}",GLOB_BRACE);
$img = array_rand($img_array);
$imgurl=$img_array[$img];
if($imgurl) {
header("Location: " . $imgurl);
exit();
} else {
exit('error');
}
?>