/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Foundation/resources/server.php
23 строки
723 B
StyleCI Bot
Apply fixes from StyleCI
01 июл 2024, 23:58
Не верифицирован
01 июл 2024, 23:58
0d06b47
Код
Авторство
О чём код?
<?php $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; } $formattedDateTime = date('D M j H:i:s Y'); $requestMethod = $_SERVER['REQUEST_METHOD']; $remoteAddress = $_SERVER['REMOTE_ADDR'].':'.$_SERVER['REMOTE_PORT']; file_put_contents('php://stdout', "[$formattedDateTime] $remoteAddress [$requestMethod] URI: $uri\n"); require_once $publicPath.'/index.php';