Example #1
0
function getDocEditorKey($fileUri)
{
    return GenerateRevisionId(getCurUserHostAddress() . "/" . basename($fileUri));
}
Example #2
0
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;
}