]> BookStack Code Mirror - bookstack/blob - server.php
Merge pull request #3616 from BookStackApp/oidc_group_sync
[bookstack] / server.php
1 <?php
2
3 /**
4  * Laravel - A PHP Framework For Web Artisans.
5  *
6  * @author   Taylor Otwell <taylorotwell@gmail.com>
7  */
8 $uri = urldecode(
9     parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
10 );
11
12 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
13 // built-in PHP web server. This provides a convenient way to test a Laravel
14 // application without having installed a "real" web server software here.
15 if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
16     return false;
17 }
18
19 require_once __DIR__ . '/public/index.php';
Morty Proxy This is a proxified and sanitized view of the page, visit original site.