Update funciones.php

This commit is contained in:
Jordan
2026-04-15 19:53:58 +01:00
parent e5948007da
commit 6cd37bd2c1

View File

@@ -311,6 +311,7 @@ function error_html($error, $a404 = false) {
<path d="M9.5 15.05a3.5 3.5 0 0 1 5 0" />
</svg>
';
$message = $a404 ? "Página no encontrada" : "Error en la página";
if ($a404){
$icon = '
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 24 24" fill="none" stroke="#607d8b" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
@@ -326,7 +327,7 @@ function error_html($error, $a404 = false) {
<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;color:#607d8b;">
'.$icon.'
<p>Se han encontrado errores en la página. </p>
<p>'.$message.'</p>
<small style="margin-top:10px;display:block;">Por favor, contacte con el administrador del sitio.</small>
</div>
</div>';