From c0b520e44008257bfd45953f02498478a5ecdd0f Mon Sep 17 00:00:00 2001 From: Alexandr Fedorov Date: Mon, 23 Nov 2020 11:00:57 +0300 Subject: [PATCH] php: config-refactor --- web/documentserver-example/php/config.php | 8 +++++--- web/documentserver-example/php/doceditor.php | 2 +- web/documentserver-example/php/functions.php | 2 +- web/documentserver-example/php/index.php | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/documentserver-example/php/config.php b/web/documentserver-example/php/config.php index b1bd5eed..2157933b 100644 --- a/web/documentserver-example/php/config.php +++ b/web/documentserver-example/php/config.php @@ -10,10 +10,12 @@ $GLOBALS['DOC_SERV_CONVERT'] = array(".docm", ".doc", ".dotx", ".dotm", ".dot", $GLOBALS['DOC_SERV_TIMEOUT'] = "120000"; -$GLOBALS['DOC_SERV_CONVERTER_URL'] = "https://documentserver/ConvertService.ashx"; -$GLOBALS['DOC_SERV_API_URL'] = "https://documentserver/web-apps/apps/api/documents/api.js"; -$GLOBALS['DOC_SERV_PRELOADER_URL'] = "https://documentserver/web-apps/apps/api/documents/cache-scripts.html"; +$GLOBALS['DOC_SERV_SITE_URL'] = "https://documentserver/"; + +$GLOBALS['DOC_SERV_CONVERTER_URL'] = "ConvertService.ashx"; +$GLOBALS['DOC_SERV_API_URL'] = "web-apps/apps/api/documents/api.js"; +$GLOBALS['DOC_SERV_PRELOADER_URL'] = "web-apps/apps/api/documents/cache-scripts.html"; $GLOBALS['DOC_SERV_JWT_SECRET'] = ""; diff --git a/web/documentserver-example/php/doceditor.php b/web/documentserver-example/php/doceditor.php index fe1ac507..ef3926ad 100644 --- a/web/documentserver-example/php/doceditor.php +++ b/web/documentserver-example/php/doceditor.php @@ -251,7 +251,7 @@ } - +