From 817932652623ad311fe957033642bec609abc3a2 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Tue, 9 Jun 2026 18:22:05 +0000 Subject: [PATCH] Fix NOVACPX_ROOT undefined on panel pages (black screen) Constants were only defined in api/index.php, so direct requests to admin/reseller/user index.php got a fatal error before rendering any HTML. Co-Authored-By: Claude Sonnet 4.6 --- panel/public/admin/index.php | 2 ++ panel/public/reseller/index.php | 2 ++ panel/public/user/index.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/panel/public/admin/index.php b/panel/public/admin/index.php index 5a6691f..c72f95e 100644 --- a/panel/public/admin/index.php +++ b/panel/public/admin/index.php @@ -1,5 +1,7 @@ '?v=' . @filemtime(dirname(__DIR__) . $f); require_once dirname(__DIR__) . '/_branding.php'; ?> diff --git a/panel/public/reseller/index.php b/panel/public/reseller/index.php index a10ba1f..badf74a 100644 --- a/panel/public/reseller/index.php +++ b/panel/public/reseller/index.php @@ -1,5 +1,7 @@ '?v=' . @filemtime(dirname(__DIR__) . $f); require_once dirname(__DIR__) . '/_branding.php'; $_pname = novacpx_panel_name('NovaCPX'); diff --git a/panel/public/user/index.php b/panel/public/user/index.php index a23b010..fde588f 100644 --- a/panel/public/user/index.php +++ b/panel/public/user/index.php @@ -1,5 +1,7 @@ '?v=' . @filemtime(dirname(__DIR__) . $f); require_once dirname(__DIR__) . '/_branding.php'; $_pname = novacpx_panel_name('NovaCPX');