![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/-16bcadcf/ |
<?php
// Cache-busting version
header('Content-Type: text/html; charset=UTF-8');
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');
header('Pragma: no-cache');
header('Expires: 0');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
// Get the content directly from Node.js
$url = 'http://localhost:3000' . ($_SERVER['REQUEST_URI'] ?? '/');
$context = stream_context_create([
'http' => [
'method' => $_SERVER['REQUEST_METHOD'] ?? 'GET',
'timeout' => 10,
'ignore_errors' => true
]
]);
$response = file_get_contents($url, false, $context);
if ($response === false) {
// Fallback page
echo '<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Avocat.Quebec - Service Temporairement Indisponible</title>
<style>
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; }
.logo { font-size: 2.5em; margin-bottom: 20px; }
.message { margin: 20px 0; }
.link { color: #667eea; text-decoration: none; font-weight: bold; }
</style>
</head>
<body>
<div class="logo">⚖️ Avocat.Quebec</div>
<div class="message">Service temporairement indisponible</div>
<div class="message">
<a href="mailto:support@lavocat.ca" class="link">Contactez le support</a>
</div>
</body>
</html>';
} else {
// Output the response directly
echo $response;
}
?>