File: //proc/self/cwd/index.php.bak-2025-10-09-0600
<?php
$proto = isset($_SERVER["SERVER_PROTOCOL"]) ? $_SERVER["SERVER_PROTOCOL"] : "HTTP/1.1";
header($proto." 503 Service Unavailable", true, 503);
header("Retry-After: 3600");
$baseDir = dirname(__FILE__) . "/maintenance";
$target = file_exists($baseDir . "/index.htm") ? $baseDir . "/index.htm" : $baseDir . "/index.html";
if (!file_exists($target)) {
echo "<h1>Maintenance file not found</h1>";
exit;
}
$html = file_get_contents($target);
if (stripos($html, "<base ") === false) {
$html = preg_replace("/<head[^>]*>/i", "$0\n<base href=\"/maintenance/\">", $html, 1);
}
echo $html;
exit;