12 lines
302 B
PHP
12 lines
302 B
PHP
<?php
|
|
|
|
if (php_sapi_name() === 'cli-server') {
|
|
$filePath = __DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
|
if (is_file($filePath)) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
$_GET['url'] = isset($_SERVER['PATH_INFO']) ? ltrim($_SERVER['PATH_INFO'], '/') : '';
|
|
require __DIR__ . '/index.php';
|