From c605dc814f4e22f266873e1022131ca68f1c0e30 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 11 May 2020 18:39:25 -0300 Subject: [PATCH] https://github.com/WWBN/AVideo-Encoder/pull/254 --- install/checkConfiguration.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/checkConfiguration.php b/install/checkConfiguration.php index 3716f2791e..b97fa1e187 100644 --- a/install/checkConfiguration.php +++ b/install/checkConfiguration.php @@ -145,6 +145,16 @@ if(!empty(\$_SERVER['SERVER_NAME']) && \$_SERVER['SERVER_NAME']!=='localhost' && \$global['ddosSecondTimeout'] = 5; \$global['strictDDOSprotection'] = 0; \$global['noDebug'] = 0; +\$global['webSiteRootPath'] = ''; +if(empty(\$global['webSiteRootPath'])){ + preg_match('/https?:\/\/[^\/]+(.*)/i', \$global['webSiteRootURL'], \$matches); + if(!empty(\$matches[1])){ + \$global['webSiteRootPath'] = \$matches[1]; + } +} +if(empty(\$global['webSiteRootPath'])){ + die('Please configure your webSiteRootPath'); +} \$mysqlHost = '{$_POST['databaseHost']}'; \$mysqlPort = '{$_POST['databasePort']}';