92e8e2f9bd0dae4a04fefd07bededaded62b9cff
bernd Erlaube Änderung von Name u...

bernd authored 14 years ago

1) <?php
2) require_once('inc/base.php');
3) require_once('inc/icons.php');
4) 
5) require_once('useraccounts.php');
6) 
7) require_role(ROLE_SYSTEMUSER);
8) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

9) title("Ihr Benutzeraccount");
bernd Systemuser-Modul sollte übe...

bernd authored 14 years ago

10) $section = "systemuser_account";
bernd Erlaube Änderung von Name u...

bernd authored 14 years ago

11) 
12) 
13) $shells = available_shells();
14) output("<p>Daten zu Ihrem Benutzeraccount:</p>");
15) $acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']);
16) $shell = $shells[$acc['shell']];
17) $usedquota = get_used_quota($acc['uid']);
18) $quota = array();
19) foreach ($usedquota as $q)
20) {
21)   $percent = round(( $q["used"] / $q["quota"] ) * 100 );
22)   $color = ( $percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green" ));
23)   $width = 2 * min($percent, 100);
24)   $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$q['used']} MB von {$q['quota']} MB belegt.</p> 
25)   <div style=\"margin: 0; padding: 0; width: 200px; border: 1px solid black;\"><div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; padding: 0;\">&#160;</div></div>";
26) }
bernd Realname auch bei Nichtkund...

bernd authored 14 years ago

27) $customer = get_customer_info($_SESSION['userinfo']['customerno']);
28) $realname = $acc['name'] ? $acc['name'] : $customer['name'];