Cachet/server.php

19 lines
410 B
PHP
Raw Normal View History

2014-11-16 22:26:08 +00:00
<?php
2015-04-18 16:55:51 +01:00
/*
* This file is part of Cachet.
*
2015-05-25 17:59:08 +01:00
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-05-25 18:31:51 +01:00
$uri = urldecode(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
2014-11-16 22:26:08 +00:00
2015-03-20 18:32:24 -06:00
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
2014-11-16 22:26:08 +00:00
}
2015-03-20 18:30:45 -06:00
require_once __DIR__.'/public/index.php';