12345678910111213141516171819 |
- <?php
- $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
- $uri = urldecode($uri);
- $public = __DIR__ . '/public';
- $requested = $public . $uri;
- if ($uri !== '/' and file_exists($requested))
- {
- return false;
- }
- require_once $public . '/index.php';
|