Skip to content

Instantly share code, notes, and snippets.

View miguel456's full-sized avatar
🌐
Hustling

Miguel Nogueira miguel456

🌐
Hustling
View GitHub Profile
@miguel456
miguel456 / db-error.php
Last active August 1, 2016 13:55 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<?php // Modified version for custom wordpress database error page - php from digwp.com
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600'); // 1 hour = 3600 seconds
/* Delete this comment if you want to be warned by email - This uses PHP's mail(); function so make sure to have it configured on php's config file.
mail("spamless@domain.tld", "subject", "msg", "From: self explanatory");
*/
// Upload this whole file (including html) to /wp-content/ and do not change its name! This file includes the very small change to the fork I made.
?>