... | ... |
@@ -50,8 +50,8 @@ foreach ($usedquota as $q) { |
50 | 50 |
$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
51 | 51 |
$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
52 | 52 |
$quotastring = implode('', $quota); |
53 |
-output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: ".filter_output_html($realname)."</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
|
54 |
-output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
|
53 |
+output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: " . filter_output_html($realname) . "</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
|
54 |
+output("<p>" . internal_link('edit', other_icon('user_edit.png', 'Bearbeiten') . ' Daten bearbeiten') . '</p>'); |
|
55 | 55 |
output("</div>\n"); |
56 | 56 |
output("<h5>Speicherplatz</h5><div style=\"margin-left: 2em;\">{$quotastring}</div>"); |
57 | 57 |
|
... | ... |
@@ -39,7 +39,7 @@ foreach ($usedquota as $q) { |
39 | 39 |
$mailbar = "<div style=\"font-size: 1px; background-color: blue; height: 10px; width: {$mailwidth}px; margin: 0; padding: 0; float: left;\"> </div>"; |
40 | 40 |
} |
41 | 41 |
|
42 |
- $percent = round((($q["systemquota_used"]+$q["mailquota"]) / $q["systemquota"]) * 100); |
|
42 |
+ $percent = round((($q["systemquota_used"] + $q["mailquota"]) / $q["systemquota"]) * 100); |
|
43 | 43 |
$color = ($percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green")); |
44 | 44 |
$width = 2 * min($percent, 100) - $mailwidth; |
45 | 45 |
|
... | ... |
@@ -2,14 +2,11 @@ |
2 | 2 |
/* |
3 | 3 |
This file belongs to the Webinterface of schokokeks.org Hosting |
4 | 4 |
|
5 |
-Written 2008-2018 by schokokeks.org Hosting, namely |
|
5 |
+Written by schokokeks.org Hosting, namely |
|
6 | 6 |
Bernd Wurst <bernd@schokokeks.org> |
7 | 7 |
Hanno Böck <hanno@schokokeks.org> |
8 | 8 |
|
9 |
-To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
|
10 |
- |
|
11 |
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 |
-http://creativecommons.org/publicdomain/zero/1.0/ |
|
9 |
+This code is published under a 0BSD license. |
|
13 | 10 |
|
14 | 11 |
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. |
15 | 12 |
*/ |
... | ... |
@@ -30,7 +30,7 @@ output("<p>Daten zu Ihrem Benutzeraccount:</p>"); |
30 | 30 |
$acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); |
31 | 31 |
$shell = $shells[$acc['shell']]; |
32 | 32 |
$usedquota = get_used_quota($acc['uid']); |
33 |
-$quota = array(); |
|
33 |
+$quota = []; |
|
34 | 34 |
foreach ($usedquota as $q) { |
35 | 35 |
$mailbar = ''; |
36 | 36 |
$mailstring = ''; |
... | ... |
@@ -53,7 +53,7 @@ foreach ($usedquota as $q) { |
53 | 53 |
$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
54 | 54 |
$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
55 | 55 |
$quotastring = implode('', $quota); |
56 |
-output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: {$realname}</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
|
56 |
+output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: ".filter_output_html($realname)."</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
|
57 | 57 |
output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
58 | 58 |
output("</div>\n"); |
59 | 59 |
output("<h5>Speicherplatz</h5><div style=\"margin-left: 2em;\">{$quotastring}</div>"); |
... | ... |
@@ -45,7 +45,7 @@ foreach ($usedquota as $q) { |
45 | 45 |
$percent = round((($q["systemquota_used"]+$q["mailquota"]) / $q["systemquota"]) * 100); |
46 | 46 |
$color = ($percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green")); |
47 | 47 |
$width = 2 * min($percent, 100) - $mailwidth; |
48 |
- |
|
48 |
+ |
|
49 | 49 |
$used_space = $q['systemquota_used'] + $q['mailquota']; |
50 | 50 |
$quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$used_space} MB von {$q['systemquota']} MB belegt{$mailstring}.</p> |
51 | 51 |
<div style=\"margin: 0; padding: 0; width: 200px; border: 1px solid black;\">{$mailbar}<div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; margin-left: {$mailwidth}px; padding: 0;\"> </div></div>"; |
... | ... |
@@ -57,5 +57,5 @@ output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <st |
57 | 57 |
output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
58 | 58 |
output("</div>\n"); |
59 | 59 |
output("<h5>Speicherplatz</h5><div style=\"margin-left: 2em;\">{$quotastring}</div>"); |
60 |
- |
|
60 |
+ |
|
61 | 61 |
output("<p><sup>*</sup>) Die Werte für den verbrauchten Speicherplatz werden periodisch eingelesen und hier erst verspätet angezeigt!</p>"); |
... | ... |
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely |
8 | 8 |
|
9 | 9 |
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
10 | 10 |
|
11 |
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 | 12 |
http://creativecommons.org/publicdomain/zero/1.0/ |
13 | 13 |
|
14 | 14 |
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. |
... | ... |
@@ -31,26 +31,24 @@ $acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo'][' |
31 | 31 |
$shell = $shells[$acc['shell']]; |
32 | 32 |
$usedquota = get_used_quota($acc['uid']); |
33 | 33 |
$quota = array(); |
34 |
-foreach ($usedquota as $q) |
|
35 |
-{ |
|
36 |
- $mailbar = ''; |
|
37 |
- $mailstring = ''; |
|
38 |
- $mailpercent = round(( $q['mailquota'] / $q["systemquota"]) * 100); |
|
39 |
- $mailwidth = 2 * min($mailpercent, 100); |
|
40 |
- |
|
41 |
- if ($q["mailquota"] > 0) { |
|
42 |
- $mailstring = "<br />(davon {$q["mailquota"]} MB für Postfächer reserviert)"; |
|
34 |
+foreach ($usedquota as $q) { |
|
35 |
+ $mailbar = ''; |
|
36 |
+ $mailstring = ''; |
|
37 |
+ $mailpercent = round(($q['mailquota'] / $q["systemquota"]) * 100); |
|
38 |
+ $mailwidth = 2 * min($mailpercent, 100); |
|
39 |
+ |
|
40 |
+ if ($q["mailquota"] > 0) { |
|
41 |
+ $mailstring = "<br />(davon {$q["mailquota"]} MB für Postfächer reserviert)"; |
|
43 | 42 |
$mailbar = "<div style=\"font-size: 1px; background-color: blue; height: 10px; width: {$mailwidth}px; margin: 0; padding: 0; float: left;\"> </div>"; |
44 |
- } |
|
43 |
+ } |
|
45 | 44 |
|
46 |
- $percent = round(( ($q["systemquota_used"]+$q["mailquota"]) / $q["systemquota"] ) * 100 ); |
|
47 |
- $color = ( $percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green" )); |
|
48 |
- $width = 2 * min($percent, 100) - $mailwidth; |
|
45 |
+ $percent = round((($q["systemquota_used"]+$q["mailquota"]) / $q["systemquota"]) * 100); |
|
46 |
+ $color = ($percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green")); |
|
47 |
+ $width = 2 * min($percent, 100) - $mailwidth; |
|
49 | 48 |
|
50 |
- $used_space = $q['systemquota_used'] + $q['mailquota']; |
|
51 |
- $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$used_space} MB von {$q['systemquota']} MB belegt{$mailstring}.</p> |
|
49 |
+ $used_space = $q['systemquota_used'] + $q['mailquota']; |
|
50 |
+ $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$used_space} MB von {$q['systemquota']} MB belegt{$mailstring}.</p> |
|
52 | 51 |
<div style=\"margin: 0; padding: 0; width: 200px; border: 1px solid black;\">{$mailbar}<div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; margin-left: {$mailwidth}px; padding: 0;\"> </div></div>"; |
53 |
- |
|
54 | 52 |
} |
55 | 53 |
$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
56 | 54 |
$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
... | ... |
@@ -61,6 +59,3 @@ output("</div>\n"); |
61 | 59 |
output("<h5>Speicherplatz</h5><div style=\"margin-left: 2em;\">{$quotastring}</div>"); |
62 | 60 |
|
63 | 61 |
output("<p><sup>*</sup>) Die Werte für den verbrauchten Speicherplatz werden periodisch eingelesen und hier erst verspätet angezeigt!</p>"); |
64 |
- |
|
65 |
- |
|
66 |
-?> |
... | ... |
@@ -1,4 +1,19 @@ |
1 | 1 |
<?php |
2 |
+/* |
|
3 |
+This file belongs to the Webinterface of schokokeks.org Hosting |
|
4 |
+ |
|
5 |
+Written 2008-2012 by schokokeks.org Hosting, namely |
|
6 |
+ Bernd Wurst <bernd@schokokeks.org> |
|
7 |
+ Hanno Böck <hanno@schokokeks.org> |
|
8 |
+ |
|
9 |
+To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
|
10 |
+ |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 |
+http://creativecommons.org/publicdomain/zero/1.0/ |
|
13 |
+ |
|
14 |
+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. |
|
15 |
+*/ |
|
16 |
+ |
|
2 | 17 |
require_once('inc/base.php'); |
3 | 18 |
require_once('inc/icons.php'); |
4 | 19 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1991 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -18,11 +18,24 @@ $usedquota = get_used_quota($acc['uid']); |
18 | 18 |
$quota = array(); |
19 | 19 |
foreach ($usedquota as $q) |
20 | 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;\"> </div></div>"; |
|
21 |
+ $mailbar = ''; |
|
22 |
+ $mailstring = ''; |
|
23 |
+ $mailpercent = round(( $q['mailquota'] / $q["systemquota"]) * 100); |
|
24 |
+ $mailwidth = 2 * min($mailpercent, 100); |
|
25 |
+ |
|
26 |
+ if ($q["mailquota"] > 0) { |
|
27 |
+ $mailstring = "<br />(davon {$q["mailquota"]} MB für Postfächer reserviert)"; |
|
28 |
+ $mailbar = "<div style=\"font-size: 1px; background-color: blue; height: 10px; width: {$mailwidth}px; margin: 0; padding: 0; float: left;\"> </div>"; |
|
29 |
+ } |
|
30 |
+ |
|
31 |
+ $percent = round(( ($q["systemquota_used"]+$q["mailquota"]) / $q["systemquota"] ) * 100 ); |
|
32 |
+ $color = ( $percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green" )); |
|
33 |
+ $width = 2 * min($percent, 100) - $mailwidth; |
|
34 |
+ |
|
35 |
+ $used_space = $q['systemquota_used'] + $q['mailquota']; |
|
36 |
+ $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$used_space} MB von {$q['systemquota']} MB belegt{$mailstring}.</p> |
|
37 |
+ <div style=\"margin: 0; padding: 0; width: 200px; border: 1px solid black;\">{$mailbar}<div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; margin-left: {$mailwidth}px; padding: 0;\"> </div></div>"; |
|
38 |
+ |
|
26 | 39 |
} |
27 | 40 |
$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
28 | 41 |
$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1830 87cf0b9e-d624-0410-a070-f6ee81989793
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1812 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,11 +6,9 @@ require_once('useraccounts.php'); |
6 | 6 |
|
7 | 7 |
require_role(ROLE_SYSTEMUSER); |
8 | 8 |
|
9 |
-$title = "Benutzeraccount"; |
|
9 |
+title("Ihr Benutzeraccount"); |
|
10 | 10 |
|
11 | 11 |
|
12 |
-output("<h3>System-Benutzeraccount</h3>"); |
|
13 |
- |
|
14 | 12 |
$shells = available_shells(); |
15 | 13 |
output("<p>Daten zu Ihrem Benutzeraccount:</p>"); |
16 | 14 |
$acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1725 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -25,7 +25,8 @@ foreach ($usedquota as $q) |
25 | 25 |
$quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$q['used']} MB von {$q['quota']} MB belegt.</p> |
26 | 26 |
<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;\"> </div></div>"; |
27 | 27 |
} |
28 |
-$realname = $acc['name'] ? $acc['name'] : $_SESSION['customerinfo']['name']; |
|
28 |
+$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
|
29 |
+$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
|
29 | 30 |
$quotastring = implode('', $quota); |
30 | 31 |
output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: {$realname}</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
31 | 32 |
output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1722 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,38 @@ |
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 |
+ |
|
9 |
+$title = "Benutzeraccount"; |
|
10 |
+ |
|
11 |
+ |
|
12 |
+output("<h3>System-Benutzeraccount</h3>"); |
|
13 |
+ |
|
14 |
+$shells = available_shells(); |
|
15 |
+output("<p>Daten zu Ihrem Benutzeraccount:</p>"); |
|
16 |
+$acc = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); |
|
17 |
+$shell = $shells[$acc['shell']]; |
|
18 |
+$usedquota = get_used_quota($acc['uid']); |
|
19 |
+$quota = array(); |
|
20 |
+foreach ($usedquota as $q) |
|
21 |
+{ |
|
22 |
+ $percent = round(( $q["used"] / $q["quota"] ) * 100 ); |
|
23 |
+ $color = ( $percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green" )); |
|
24 |
+ $width = 2 * min($percent, 100); |
|
25 |
+ $quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$q['used']} MB von {$q['quota']} MB belegt.</p> |
|
26 |
+ <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;\"> </div></div>"; |
|
27 |
+} |
|
28 |
+$realname = $acc['name'] ? $acc['name'] : $_SESSION['customerinfo']['name']; |
|
29 |
+$quotastring = implode('', $quota); |
|
30 |
+output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: {$realname}</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
|
31 |
+output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
|
32 |
+output("</div>\n"); |
|
33 |
+output("<h5>Speicherplatz</h5><div style=\"margin-left: 2em;\">{$quotastring}</div>"); |
|
34 |
+ |
|
35 |
+output("<p><sup>*</sup>) Die Werte für den verbrauchten Speicherplatz werden periodisch eingelesen und hier erst verspätet angezeigt!</p>"); |
|
36 |
+ |
|
37 |
+ |
|
38 |
+?> |