mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
12 lines
276 B
PHP
12 lines
276 B
PHP
<?
|
|
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);
|