diff --git a/show.php b/show.php index ec04174..427135e 100644 --- a/show.php +++ b/show.php @@ -3,12 +3,17 @@ $path = realpath($basedir . DIRECTORY_SEPARATOR . ltrim(urldecode($_SERVER["QUERY_STRING"]), '/')); if (strpos($path, $basedir) !== 0 || substr($path, -4) != ".cfg") { - http_response_code(403); - die(); + http_response_code(404); + die("Fichier non trouvé"); } $conf = file_get_contents($path); +if ($conf === false) { + http_error_code(404); + die("Fichier non trouvé"); +} + preg_match("/ sysname ([\w-]+)/", $conf, $sysname); preg_match("/ip address ([\d.]+)/", $conf, $address); $startPattern = "(?<=\n)"; diff --git a/style.css b/style.css index 066994b..38c32ca 100644 --- a/style.css +++ b/style.css @@ -60,7 +60,7 @@ h2 { } .file-list li { - margin-left: 1rem; + margin-left: 1.2rem; } .file-list a::before {