5effc2bd7685822df276c1372dab480cff321941
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 Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 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) 
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) */
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) 
33) foreach ($jabberaccounts as $acc)
34) {
bernd Zeige letzte Aktivität bei...

bernd authored 12 years ago

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

bernd authored 17 years ago

47)   $local = filter_input_general($acc['local']);
bernd Domain-Klasse benutzen

bernd authored 17 years ago

48)   $domain = new Domain( (int) $acc['domain']  );
49)   if ($domain->id == NULL)
50)   {
51)     $domain = new Domain();
bernd Mehr config-optionen und co...

bernd authored 15 years ago

52)     $domain->fqdn = config('masterdomain');
bernd Domain-Klasse benutzen

bernd authored 17 years ago

53)   }
bernd Zeige letzte Aktivität bei...

bernd authored 12 years ago

54)   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

55) }
56) 
bernd addnew() eingeführt

bernd authored 15 years ago

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

bernd authored 17 years ago

58) 
bernd addnew() eingeführt

bernd authored 15 years ago

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

bernd authored 15 years ago

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