mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
9 lines
231 B
PHP
9 lines
231 B
PHP
<?php
|
|
|
|
$files = scandir('static/banners/', SCANDIR_SORT_NONE);
|
|
$files = array_diff($files, ['.', '..']);
|
|
|
|
$name = $files[array_rand($files)];
|
|
header("Location: /static/banners/$name", true, 307);
|
|
header('Cache-Control: no-cache');
|