summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-18 15:26:25 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-18 15:26:25 +0100
commitb73c6868cd22de46af8e84fc0eb99933d7a92199 (patch)
tree8e59df4e5493c914eb1c1a60df843662eee2b847 /install.php
parent5005b83ea1cafbed4361462fa3fea649f9a95cf4 (diff)
downloadinstall-b73c6868cd22de46af8e84fc0eb99933d7a92199.tar.gz
install-b73c6868cd22de46af8e84fc0eb99933d7a92199.tar.bz2
install-b73c6868cd22de46af8e84fc0eb99933d7a92199.zip
tidy first install logic so that installed opens in the right place
Diffstat (limited to 'install.php')
-rwxr-xr-xinstall.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/install.php b/install.php
index be27b22..a5a7be7 100755
--- a/install.php
+++ b/install.php
@@ -87,7 +87,11 @@ if( !empty( $_REQUEST['reload'] )) {
}
// for pages that should only be shown during a first install
-if( ( empty( $gBitDbType ) || !$gBitUser->isAdmin() ) || ( $_SESSION['first_install'] ) ) {
+// Drive first-install mode from DB state only — installer access is controlled externally via symlink
+if( !empty( $gBitDbType ) && $gBitInstaller->isInstalled() ) {
+ unset( $_SESSION['first_install'] );
+}
+if( empty( $gBitDbType ) || isset( $_SESSION['first_install'] ) ) {
$onlyDuringFirstInstall = TRUE;
$_SESSION['first_install'] = TRUE;
} else {