mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +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');
|