Update funciones.php
This commit is contained in:
@@ -311,6 +311,7 @@ function error_html($error, $a404 = false) {
|
|||||||
<path d="M9.5 15.05a3.5 3.5 0 0 1 5 0" />
|
<path d="M9.5 15.05a3.5 3.5 0 0 1 5 0" />
|
||||||
</svg>
|
</svg>
|
||||||
';
|
';
|
||||||
|
$message = $a404 ? "Página no encontrada" : "Error en la página";
|
||||||
if ($a404){
|
if ($a404){
|
||||||
$icon = '
|
$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">
|
<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;">
|
<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;color:#607d8b;">
|
||||||
'.$icon.'
|
'.$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>
|
<small style="margin-top:10px;display:block;">Por favor, contacte con el administrador del sitio.</small>
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user