c42127d3cab5c78430e578a07038f54f8cdff459
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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) */
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

16) 
17) require_once('session/start.php');
18) 
bernd Domain-Klasse benutzen

bernd authored 17 years ago

19) require_once('class/domain.php');
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

20) require_once('jabberaccounts.php');
21) 
bernd bisschen XSS-Schutz

bernd authored 17 years ago

22) require_once('inc/security.php');
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 15 years ago

23) require_once('inc/icons.php');
bernd bisschen XSS-Schutz

bernd authored 17 years ago

24) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

25) require_role(ROLE_CUSTOMER);
26) 
27) $jabberaccounts = get_jabber_accounts();
28) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

29) title("Jabber-Accounts");
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

30) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

31) output("<table>");
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

32) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

33) foreach ($jabberaccounts as $acc) {
34)     $not_ready = '';
35)     if ($acc['create'] == 1) {
36)         $not_ready = " ".icon_warning('Dieser Account wird in Kürze auf dem Server eingerichtet.');
37)     }
38)     $lastactivity = $acc['lastactivity'];
39)     // Innerhalb der letzten Woche verwendet
40)     if ($lastactivity > strftime('%Y-%m-%d', time()-7*24*60*60)) {
41)         $lastactivity = 'Kürzlich';
42)     }
43)     if (! $lastactivity) {
44)         $lastactivity = 'Bisher nie verwendet';
45)     }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

46)     $local = filter_output_html($acc['local']);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

47)     $domain = new Domain((int) $acc['domain']);
48)     if ($domain->id == null) {
49)         $domain = new Domain();
50)         $domain->fqdn = config('masterdomain');
51)     }
52)     output("<tr><td>{$local}@{$domain->fqdn}{$not_ready}<br /><span style=\"font-size: 80%; font-style: italic;\">Letzte Nutzung: {$lastactivity}</span></td><td>".internal_link('chpass', icon_pwchange('Passwort ändern'), 'account='.$acc['id'])."&#160;&#160;&#160;".internal_link('save', icon_delete("»{$local}@{$domain->fqdn}« löschen"), 'action=delete&account='.$acc['id']).'</td></tr>');
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

53) }
54) 
bernd addnew() eingeführt

bernd authored 15 years ago

55) output('</table>');
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

56) 
bernd addnew() eingeführt

bernd authored 15 years ago

57) addnew("new_account", "Neues Jabber-Konto anlegen");