From 79e603b700bcd6ddccc49f05ad8d5ae43bfb831f Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 28 Apr 2026 11:13:13 +0200 Subject: [PATCH] Redirect properly if not config.inc.php file --- html/index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/html/index.php b/html/index.php index 7ffeef768..475b9aa84 100644 --- a/html/index.php +++ b/html/index.php @@ -134,8 +134,8 @@ * */ - -if (! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php') ) +// -- if there is not config.inc.php file then redirect to install.php +if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php') ) { echo << EOF; - - header("Location: install.php"); - exit(0); }