current(); if (!$user) { header(sprintf('Location: %slogin.php', WWW_URL)); exit; } $quota = $users->quota($user); $server = new Server; $free = $server->format_bytes($quota->free); $used = $server->format_bytes($quota->used); $total = $server->format_bytes($quota->total); $www_url = WWW_URL; html('My files', <<
WebDAV URL
{$user->dav_url} (click to manage your files from your browser)
NextCloud URL
{$www_url}
Quota
Used {$used} out of {$total} (free: {$free})
EOF);