merge index and options

This commit is contained in:
2024-10-18 16:14:52 +02:00
parent 17a628cc11
commit 0c736158aa
7 changed files with 638 additions and 619 deletions

View File

@ -11,7 +11,7 @@ foreach ($options as $arg => $value) {
if (is_null($value)) {
http_response_code(400);
$errorMessage = "Valeur incorrecte pour le paramètre <var>$arg</var> : " . filter_input(INPUT_GET, $arg, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
include_once "options.php";
include_once ".";
die();
} else if ($value) {
if ($value === true) {
@ -33,7 +33,7 @@ exec($command, $stderr, $retcode);
if ($retcode) {
http_response_code(500);
$errorMessage = implode("<br/>\n", $stderr);
include_once "options.php";
include_once ".";
die();
}