diff --git a/web/documentserver-example/php/common.php b/web/documentserver-example/php/common.php index a1321e35..07a56538 100644 --- a/web/documentserver-example/php/common.php +++ b/web/documentserver-example/php/common.php @@ -145,6 +145,13 @@ function serverPath() { } function getCurUserHostAddress($userAddress = NULL) { + if ($GLOBALS['ALONE']) { + if (empty($GLOBALS['STORAGE_PATH'])) { + return "Storage"; + } else { + return ""; + } + } if (is_null($userAddress)) {$userAddress = getClientIp();} return preg_replace("[^0-9a-zA-Z.=]", '_', $userAddress); } diff --git a/web/documentserver-example/php/config.php b/web/documentserver-example/php/config.php index dd505edd..1accc4c5 100644 --- a/web/documentserver-example/php/config.php +++ b/web/documentserver-example/php/config.php @@ -2,6 +2,7 @@ $GLOBALS['FILE_SIZE_MAX'] = 5242880; $GLOBALS['STORAGE_PATH'] = ""; +$GLOBALS['ALONE'] = FALSE; $GLOBALS['MODE'] = "";