mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
15 lines
214 B
PHP
15 lines
214 B
PHP
<?php
|
|
$img_array = glob("gallary/*.{gif,jpg,png}",GLOB_BRACE);
|
|
|
|
$img = array_rand($img_array);
|
|
|
|
$imgurl=$img_array[$img];
|
|
|
|
if($imgurl) {
|
|
header("Location: " . $imgurl);
|
|
exit();
|
|
} else {
|
|
exit('error');
|
|
}
|
|
?>
|