function getDocEditorKey($fileUri) { return GenerateRevisionId(getCurUserHostAddress() . "/" . basename($fileUri)); }
function getVirtualPath() { $storagePath = trim(str_replace(array('/', '\\'), '/', $GLOBALS['STORAGE_PATH']), '/'); $storagePath = $storagePath != "" ? $storagePath . '/' : ""; $virtPath = rtrim(WEB_ROOT_URL, '/') . '/' . $storagePath . getCurUserHostAddress() . '/'; sendlog("getVirtualPath virtPath: " . $virtPath, "logs/common.log"); return $virtPath; }