forked from leftypol/leftypol
spooks.php: add spooks image redirector
This commit is contained in:
parent
d120cb0ed3
commit
70c07dceca
1 changed files with 8 additions and 0 deletions
8
spooks.php
Normal file
8
spooks.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
$files = scandir(__dir__ . '/static/spooks/', SCANDIR_SORT_NONE);
|
||||
$files = array_diff($files, ['.', '..']);
|
||||
|
||||
$filename = $files[array_rand($files)];
|
||||
header("Location: /static/spooks/$filename", true, 307);
|
||||
header('Cache-Control: no-cache');
|
Loading…
Add table
Add a link
Reference in a new issue