mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Redirect /manual/ to latest manual version
This commit is contained in:
parent
56aaab7152
commit
7b2d01a9c5
1 changed files with 12 additions and 0 deletions
12
www/manual/index.php
Normal file
12
www/manual/index.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?
|
||||
require_once('Core.php');
|
||||
|
||||
// Redirect to the latest version of the manual
|
||||
|
||||
$dirs = glob(MANUAL_PATH . '/*', GLOB_ONLYDIR);
|
||||
sort($dirs);
|
||||
|
||||
$currentManual = str_replace(WEB_ROOT, '', $dirs[sizeof($dirs) - 1]);
|
||||
|
||||
http_response_code(302);
|
||||
header('Location: ' . $currentManual);
|
Loading…
Add table
Add a link
Reference in a new issue