diff options
-rw-r--r-- | index.php | 4 | ||||
-rw-r--r-- | public/index.php | 10 |
2 files changed, 12 insertions, 2 deletions
@@ -1,8 +1,8 @@ <?php + // SPDX-FileCopyrightText: 2024 Eilertsens Kodeknekkeri // SPDX-FileCopyrightText: 2024 Harald Eilertsen // // SPDX-License-Identifier: AGPL-3.0-or-later -require __DIR__ . '/vendor/autoload.php'; -require __DIR__ . '/src/process-request.php'; +http_response_code(403); diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..98e78d3 --- /dev/null +++ b/public/index.php @@ -0,0 +1,10 @@ +<?php +// SPDX-FileCopyrightText: 2024 Eilertsens Kodeknekkeri +// SPDX-FileCopyrightText: 2024 Harald Eilertsen +// +// SPDX-License-Identifier: AGPL-3.0-or-later + +define('WEBTRAP_ROOT_DIR', dirname(__DIR__)); + +require WEBTRAP_ROOT_DIR . '/vendor/autoload.php'; +require WEBTRAP_ROOT_DIR . '/src/process-request.php'; |