828df758a7b28057a552c24fe6034a44ea344ae2
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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

bernd authored 17 years ago

13) 
14) require_once('session/start.php');
15) 
bernd Domain-Klasse benutzen

bernd authored 17 years ago

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

bernd authored 17 years ago

17) require_once('jabberaccounts.php');
18) 
bernd bisschen XSS-Schutz

bernd authored 17 years ago

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

bernd authored 15 years ago

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

bernd authored 17 years ago

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

bernd authored 17 years ago

22) require_role(ROLE_CUSTOMER);
23) 
24) $jabberaccounts = get_jabber_accounts();
25) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

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

bernd authored 17 years ago

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

bernd authored 14 years ago

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

bernd authored 17 years ago

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

Hanno authored 6 years ago

30) foreach ($jabberaccounts as $acc) {
31)     $not_ready = '';
32)     if ($acc['create'] == 1) {
33)         $not_ready = " ".icon_warning('Dieser Account wird in Kürze auf dem Server eingerichtet.');
34)     }
35)     $lastactivity = $acc['lastactivity'];
36)     // Innerhalb der letzten Woche verwendet
Hanno Böck codingstyle, spaces between...

Hanno Böck authored 1 year ago

37)     if ($lastactivity > strftime('%Y-%m-%d', time() - 7 * 24 * 60 * 60)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

38)         $lastactivity = 'Kürzlich';
39)     }
40)     if (! $lastactivity) {
41)         $lastactivity = 'Bisher nie verwendet';
42)     }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

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

Hanno authored 6 years ago

44)     $domain = new Domain((int) $acc['domain']);
45)     if ($domain->id == null) {
46)         $domain = new Domain();
47)         $domain->fqdn = config('masterdomain');
48)     }
49)     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

50) }
51) 
bernd addnew() eingeführt

bernd authored 15 years ago

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

bernd authored 17 years ago

53) 
bernd addnew() eingeführt

bernd authored 15 years ago

54) addnew("new_account", "Neues Jabber-Konto anlegen");
bernd Neue Jabber-Domains selbst...

bernd authored 15 years ago

55) addnew("new_domain", "Eigene Domain für Jabber freischalten");