hubl/router.php

11 lines
245 B
PHP
Raw Normal View History

2018-09-06 09:25:52 +00:00
<?php
if (PHP_SAPI == 'cli-server') {
$url = parse_url($_SERVER['REQUEST_URI']);
2018-09-21 11:29:45 +00:00
$path = $url['path'];
if(strpos($path, '.') !== false) return false;
$file = __DIR__ . $path;
2018-09-06 09:25:52 +00:00
if (is_file($file)) return false;
}
2018-09-11 23:34:13 +00:00
2018-09-06 09:25:52 +00:00
include "index.html";