From ab7b295b8753b8c46a7cc1691d01cf820a00b4e6 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Sat, 31 Jul 2021 17:07:37 +0200 Subject: [PATCH] switch basedir path source Use $amp_conf['AMPWEBROOT'] instead of $_SERVER['DOCUMENT_ROOT'] as at least in one case the latter appears to be empty --- install.php | 25 ++++++++++++++++--------- sccpManClasses/Sccp.class.php.v433 | 3 ++- sccpManClasses/extconfigs.class.php | 3 ++- sccpManClasses/formcreate.class.php | 3 ++- sccpManTraits/bmoFunctions.php | 3 ++- views/advserver.model.php | 3 ++- 6 files changed, 26 insertions(+), 14 deletions(-) diff --git a/install.php b/install.php index a720b2c..253b758 100644 --- a/install.php +++ b/install.php @@ -341,9 +341,10 @@ function CheckSCCPManagerDBVersion() function CheckPermissions() { + global $amp_conf; outn("