From e5948007daafca5deefdcd9cec82d1c3602e8d19 Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 15 Apr 2026 19:53:33 +0100 Subject: [PATCH] mas --- apartados.php | 2 +- funciones.php | 34 ++++++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/apartados.php b/apartados.php index 2c9d58e..f1316df 100755 --- a/apartados.php +++ b/apartados.php @@ -28,7 +28,7 @@ if (!@$apartado) { if (strpos($resultInclude,".php on line ") === false){ echo $resultInclude; }else{ - echo error_html($resultInclude); + echo error_html($resultInclude,true); } die(); } else{ diff --git a/funciones.php b/funciones.php index 81df3cf..989a51f 100755 --- a/funciones.php +++ b/funciones.php @@ -298,19 +298,33 @@ function muestra_breadcrumb($record = array(), $previousLinks = array(),$class = echo ''; } -function error_html($error){ +function error_html($error, $a404 = false) { $result = ''; + $icon = ' + + + + + + + + + + '; + if ($a404){ + $icon = ' + + + + + + + + '; + } $result.='
- - - - - - - - - + '.$icon.'

Se han encontrado errores en la página.

Por favor, contacte con el administrador del sitio.