From 4852973888479e20669f52db75b01665d8fc9718 Mon Sep 17 00:00:00 2001 From: zk_exe Date: Mon, 4 Aug 2025 04:46:10 -0300 Subject: [PATCH] filtragem de erros --- index.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 9a2905c..5d83d54 100644 --- a/index.php +++ b/index.php @@ -23,13 +23,21 @@ Error 404, arquivo não encontrado

"); + if (!file_exists($file)) { + http_response_code(404); + die("

Error 404, arquivo não encontrado

"); + } + } catch (Exception $e) { + $file = "componentes/inicio.php"; } require_once $file; ?>