HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
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;