Last active
October 14, 2016 13:18
-
-
Save jmarreros/8e03f83c5ba0464db13c7be51be98ce0 to your computer and use it in GitHub Desktop.
Página personalizada de Error de Base de Datos en WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Página de error de Base de Datos personalizada | |
// Referencia @ digwp.com | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); | |
mail("admin@dominio.com", "Error Base de datos", "Hay un error en la BD, verifica!"); | |
?> | |
<!DOCTYPE HTML> | |
<html dir="ltr" lang="es-ES"> | |
<style> | |
body{ | |
font-family: Helvetica; | |
text-align: center; | |
background-color: #EEEEEE; | |
color:#5D616C; | |
} | |
</style> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title><?php _e( 'Database Error' ); ?></title> | |
</head> | |
<body> | |
<img src="https://decodecms.com/wp-content/uploads/2016/10/error-base-datos.svg" width="150" height="150"> | |
<h1><?php _e( 'Error establishing a database connection' ); ?></h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copiar archivo en la carpeta wp-content como plugin dependiente.