@@ -14,13 +14,13 @@ discard block |
||
| 14 | 14 | if (php_sapi_name() == 'cli-server') { |
| 15 | 15 | $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; |
| 16 | 16 | if (is_file(__DIR__ . '/' . $route)) { |
| 17 | - if(substr($route, -4) == ".php"){ |
|
| 18 | - require __DIR__ . '/' . $route; // Include requested script files |
|
| 17 | + if (substr($route, -4) == ".php") { |
|
| 18 | + require __DIR__ . '/' . $route; // Include requested script files |
|
| 19 | 19 | exit; |
| 20 | 20 | } |
| 21 | - return false; // Serve file as is |
|
| 21 | + return false; // Serve file as is |
|
| 22 | 22 | } else { // Fallback to index.php |
| 23 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
| 23 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | } else { |
| 41 | 41 | echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>'; |
| 42 | 42 | echo '<p>Please try to install the dependencies via: </p>'; |
| 43 | - echo '<code>cd '. realpath('.') .'<br>./install.sh</code>'; |
|
| 44 | - echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>'; |
|
| 43 | + echo '<code>cd ' . realpath('.') . '<br>./install.sh</code>'; |
|
| 44 | + echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ . '</p>'; |
|
| 45 | 45 | exit; |
| 46 | 46 | } |
| 47 | 47 | |