f2550e90ad37215b9d890155806986336bf0170c
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 Erlaube Änderung von Name u...

bernd authored 14 years ago

10) 
11) 
12) $shells = available_shells();
13) output("<p>Daten zu Ihrem Benutzeraccount:</p>");
14) $acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']);
15) $shell = $shells[$acc['shell']];
16) $usedquota = get_used_quota($acc['uid']);
17) $quota = array();
18) foreach ($usedquota as $q)
19) {
20)   $percent = round(( $q["used"] / $q["quota"] ) * 100 );
21)   $color = ( $percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green" ));
22)   $width = 2 * min($percent, 100);
23)   $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$q['used']} MB von {$q['quota']} MB belegt.</p> 
24)   <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>";
25) }
bernd Realname auch bei Nichtkund...

bernd authored 14 years ago

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