1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/guanguans-coole

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
server.php 749
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
yaozm Отправлено 06.09.2022 10:52 3da6114
<?php
declare(strict_types=1);
/**
* This file is part of Coole.
*
* @link https://github.com/guanguans/coole
* @contact guanguans <ityaozm@gmail.com>
* @license https://github.com/guanguans/coole/blob/main/LICENSE
*/
/** This is modified from https://github.com/laravel/laravel. */
$publicPath = getcwd();
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ('/' !== $uri && file_exists($publicPath.$uri)) {
return false;
}
require_once $publicPath.'/index.php';

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/guanguans-coole.git
git@api.gitlife.ru:oschina-mirror/guanguans-coole.git
oschina-mirror
guanguans-coole
guanguans-coole
main