1
0
mirror of https://git.cant.at/Madeorsk/PollVerlaine synced 2024-11-22 02:04:31 +01:00

Moved index and static files in a webroot directory.

* Security improvement: index.php and static files are now in a webroot directory. The webserver should point to this directory instead of the one containing all the code and the configuration.
This commit is contained in:
Madeorsk 2019-02-24 13:50:50 +01:00
parent e4851eba92
commit 73d932173a
100 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,11 @@
<?php <?php
require __DIR__ . "/vendor/autoload.php"; require __DIR__ . "/../vendor/autoload.php";
require __DIR__ . "/src/models/Poll.php"; require __DIR__ . "/../src/models/Poll.php";
require __DIR__ . "/src/Format.php"; require __DIR__ . "/../src/Format.php";
require __DIR__ . "/config/app.php"; require __DIR__ . "/../config/app.php";
Flight::set("flight.base_url", $VERLAINE["app_url"]); Flight::set("flight.base_url", $VERLAINE["app_url"]);
Flight::set("flight.views.path", "../views");
Flight::route("POST /polls", function () { Flight::route("POST /polls", function () {
$request = Flight::request(); $request = Flight::request();

View File

Before

Width:  |  Height:  |  Size: 531 KiB

After

Width:  |  Height:  |  Size: 531 KiB

View File

Before

Width:  |  Height:  |  Size: 541 KiB

After

Width:  |  Height:  |  Size: 541 KiB

View File

Before

Width:  |  Height:  |  Size: 532 KiB

After

Width:  |  Height:  |  Size: 532 KiB

View File

Before

Width:  |  Height:  |  Size: 539 KiB

After

Width:  |  Height:  |  Size: 539 KiB

View File

Before

Width:  |  Height:  |  Size: 516 KiB

After

Width:  |  Height:  |  Size: 516 KiB

View File

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 526 KiB

View File

Before

Width:  |  Height:  |  Size: 518 KiB

After

Width:  |  Height:  |  Size: 518 KiB

View File

Before

Width:  |  Height:  |  Size: 521 KiB

After

Width:  |  Height:  |  Size: 521 KiB

View File

Before

Width:  |  Height:  |  Size: 534 KiB

After

Width:  |  Height:  |  Size: 534 KiB

View File

Before

Width:  |  Height:  |  Size: 518 KiB

After

Width:  |  Height:  |  Size: 518 KiB

View File

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 526 KiB

View File

Before

Width:  |  Height:  |  Size: 526 KiB

After

Width:  |  Height:  |  Size: 526 KiB

View File

Before

Width:  |  Height:  |  Size: 528 KiB

After

Width:  |  Height:  |  Size: 528 KiB

View File

Before

Width:  |  Height:  |  Size: 535 KiB

After

Width:  |  Height:  |  Size: 535 KiB

View File

Before

Width:  |  Height:  |  Size: 433 KiB

After

Width:  |  Height:  |  Size: 433 KiB

View File

Before

Width:  |  Height:  |  Size: 469 KiB

After

Width:  |  Height:  |  Size: 469 KiB

View File

Before

Width:  |  Height:  |  Size: 460 KiB

After

Width:  |  Height:  |  Size: 460 KiB

View File

Before

Width:  |  Height:  |  Size: 424 KiB

After

Width:  |  Height:  |  Size: 424 KiB