Hanno Böck This code is published under a 0BSD license. Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once('inc/base.php'); require_once('inc/icons.php'); require_once('useraccounts.php'); require_role(ROLE_SYSTEMUSER); title("Ihr Benutzeraccount"); $section = "systemuser_account"; $shells = available_shells(); output("

Daten zu Ihrem Benutzeraccount:

"); $acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); $shell = $shells[$acc['shell']]; $usedquota = get_used_quota($acc['uid']); $quota = []; foreach ($usedquota as $q) { $mailbar = ''; $mailstring = ''; $mailpercent = round(($q['mailquota'] / $q["systemquota"]) * 100); $mailwidth = 2 * min($mailpercent, 100); if ($q["mailquota"] > 0) { $mailstring = "
(davon {$q["mailquota"]} MB für Postfächer reserviert)"; $mailbar = "
 
"; } $percent = round((($q["systemquota_used"] + $q["mailquota"]) / $q["systemquota"]) * 100); $color = ($percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green")); $width = 2 * min($percent, 100) - $mailwidth; $used_space = $q['systemquota_used'] + $q['mailquota']; $quota[] = "

Server {$q['server']}
{$percent}%: {$used_space} MB von {$q['systemquota']} MB belegt{$mailstring}.

{$mailbar}
 
"; } $customer = get_customer_info($_SESSION['userinfo']['customerno']); $realname = $acc['name'] ? $acc['name'] : $customer['name']; $quotastring = implode('', $quota); output("
Stammdaten

Benutzername: {$acc['username']}

Name: " . filter_output_html($realname) . "

Existiert seit {$acc['erstellungsdatum']}

Verwendete Shell: {$shell}

"); output("

" . internal_link('edit', other_icon('user_edit.png', 'Bearbeiten') . ' Daten bearbeiten') . '

'); output("
\n"); output("
Speicherplatz
{$quotastring}
"); output("

*) Die Werte für den verbrauchten Speicherplatz werden periodisch eingelesen und hier erst verspätet angezeigt!

");