2626dd47daad110c63a82c0560b134e2364eeac3
bernd Neue Jabber-Domains selbst...

bernd authored 14 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 5 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 Neue Jabber-Domains selbst...

bernd authored 14 years ago

16) 
17) require_once('session/start.php');
18) 
19) require_once('class/domain.php');
20) require_once('jabberaccounts.php');
21) 
22) require_role(ROLE_CUSTOMER);
23) 
24) $section = 'jabber_accounts';
25) $title = "Domain für Jabber freischalten";
bernd Benutze überall title() sta...

bernd authored 13 years ago

26) title("Eigene Domain für Jabber-Nutzung freischalten");
bernd Neue Jabber-Domains selbst...

bernd authored 14 years ago

27) 
28) 
29) $domains = get_domain_list((int) $_SESSION['customerinfo']['customerno']);
30) DEBUG($domains);
31) 
32) if (! count($domains)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

33)     system_failure("Sie haben gar keine eigenen Domains.");
bernd Neue Jabber-Domains selbst...

bernd authored 14 years ago

34) }
35) 
36) $pending_domains = array();
37) $available_domains = array();
38) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

39) foreach ($domains as $d) {
40)     if ($d->jabber == 0) {
41)         $available_domains[$d->id] = $d->domainname.'.'.$d->tld;
42)     }
43)     if ($d->jabber == 2) {
44)         $pending_domains[] = $d->fqdn;
45)     }
bernd Neue Jabber-Domains selbst...

bernd authored 14 years ago

46) }
47) 
48) 
49) $pending = '';
50) if (count($pending_domains) > 0) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

51)     $pending = '<h3>Wartend auf Freischaltung</h3>
bernd Neue Jabber-Domains selbst...

bernd authored 14 years ago

52) <p>Folgende Domains sind bereits eingetragen und werden in der kommenden Nacht im Jabber-Server registriert:</p>
53) <ul>';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

54)     foreach ($pending_domains as $d) {
55)         $pending .= '<li>'.$d.'</li>';
56)     }
57)     $pending .= '</ul>';
bernd Neue Jabber-Domains selbst...

bernd authored 14 years ago

58) }
59) 
60) 
61) output('<p>Sie können hier eine Ihrer eigenen Domains für Jabber-Nutzung freischalten. Da dafür ein Neustart des Jabber-Servers nötig ist, können Sie die Domain erst ab dem darauffolgenden Tag für eigene Jabber-Accounts nutzen.</p>
Bernd Wurst Hinweis zum TLS-Cert für ei...

Bernd Wurst authored 6 years ago

62) <p><strong>Bitte beachten Sie:</strong> Damit beim Verbinden ihrer Jabber-Accounts kein Fehler auftritt, nutzen wir für die TLS-Verschlüsselung ein Zertifikat der Webserver-Konfiguration mit dem passenden Domainnamen, sofern dort ein gültiges Zertifikat vorhanden ist. Ohne passendes Zertifikat wird beim Verbinden eines Accounts mit einer eigenen Domain ein Zertifikat-Fehler auftreten.</p>