354c05a4ddd678c49bcbba458bffa7d13482139a
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 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 1 year 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 1 year 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 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 16 years ago

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

bernd authored 13 years ago

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

bernd authored 16 years ago

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

Hanno authored 5 years ago

30) foreach ($jabberaccounts as $acc) {
31)     $not_ready = '';
32)     if ($acc['create'] == 1) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

33)         $not_ready = " " . icon_warning('Dieser Account wird in Kürze auf dem Server eingerichtet.');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

34)     }
35)     $lastactivity = $acc['lastactivity'];
36)     // Innerhalb der letzten Woche verwendet
Hanno Böck codingstyle, spaces between...

Hanno Böck authored 8 months ago

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

Hanno authored 5 years ago

38)         $lastactivity = 'Kürzlich';
39)     }
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

40)     if (!$lastactivity) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

41)         $lastactivity = 'Bisher nie verwendet';
42)     }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 4 years ago

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

Hanno authored 5 years ago

44)     $domain = new Domain((int) $acc['domain']);
45)     if ($domain->id == null) {
46)         $domain = new Domain();
47)         $domain->fqdn = config('masterdomain');
48)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

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 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

53) 
bernd addnew() eingeführt

bernd authored 14 years ago

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

bernd authored 14 years ago

55) addnew("new_domain", "Eigene Domain für Jabber freischalten");
Bernd Wurst implemented deletion of unu...

Bernd Wurst authored 4 years ago

56) 
57) $obsolete_domains = domains_without_accounts();
58) 
59) if (count($obsolete_domains) > 0) {
60)     output('<h4>Unbenutzte Jabber-Domains</h4>');
61)     output('<p>Folgende Domains sind für die Nutzung im Jabber-Server eingerichtet, werden aber momentan nicht genutzt (kein Jabber-Account vorhanden).</p><ul>');
62)     foreach ($obsolete_domains as $d) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

63)         output('<li><strong>' . $d->fqdn . '</strong> ' . internal_link('save', icon_delete('Domain aus dem Jabber-Server entfernen'), 'action=deldomain&domain=' . $d->id) . '</li>');