<?php require_once __DIR__ . "/ui_autoshell.php"; if (!defined("PACIFIC_NO_SHELL")) define("PACIFIC_NO_SHELL", false); if (function_exists("pacific_enable_autoshell")) pacific_enable_autoshell(); require_once __DIR__ . '/initialize.php'; function require_login(): void { if (!is_logged_in()) { $next = urlencode($_SERVER['REQUEST_URI'] ?? '/adminconsole/dashboard.php'); redirect("/adminconsole/login.php?next={$next}"); } }