diff --git a/docker/common/config.d/offline.php b/docker/common/config.d/offline.php new file mode 100644 index 0000000..861c1ee --- /dev/null +++ b/docker/common/config.d/offline.php @@ -0,0 +1,17 @@ + $offline && date('Y-m-d H:i:s') < env('OFFLINE_UNTIL', '2024-12-26 00:00:00'), + 'app.offlineUrl' => '/mantenimiento.php', + 'app.offlineBypassFunction' => function() { + $senha = $_GET['online'] ?? ''; + + if ($senha === env('OFFLINE_BYPASS')) { + $_SESSION['online'] = true; + } + + return $_SESSION['online'] ?? false; + } +]; +