'/download', 'Repository_checkout_for_SLOODLE_2.x' => 'Repository_checkout_for_SLOODLE_2x', 'Repository_checkout_for_SLOODLE_1.x' => 'Repository_checkout_for_SLOODLE_1x', 'Quickstart_Sloodle_1.0' => 'Quickstart_Sloodle_10' ); if (isset($redirects[$page])) { header('Location: '.$redirects[$page]); exit; } $dir = ''; if (!preg_match('/^[A-Za-z0-9_-]+$/', $page) ) { header("HTTP/1.0 404 Not Found"); exit; } if (preg_match('/^(.)(.)(.)/', $page, $matches)) { $dir = '/'.strtolower($matches[1]).'/'.strtolower($matches[2]).'/'.strtolower($matches[3]); } $title = 'SLOODLE Documentation'; $file = dirname(__FILE__).'/wiki/articles'.$dir.'/'.$page.'.html'; if (!file_exists($file)) { header("HTTP/1.0 404 Not Found"); exit; } $contents = file_get_contents($file); if (preg_match('/\
| Language Menu:/', ' | Languages:', $contents);
$sidebar = ' ';
if (preg_match('/(\
|