ca8a4c0294e1f9922ba7c388318798590977711d
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 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 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)) {
33)   system_failure("Sie haben gar keine eigenen Domains.");
34) }
35) 
36) $pending_domains = array();
37) $available_domains = array();
38) 
39) foreach ($domains AS $d) {
40)   if ($d->jabber == 0)
41)     $available_domains[$d->id] = $d->domainname.'.'.$d->tld;
42)   if ($d->jabber == 2)
43)     $pending_domains[] = $d->fqdn;
44) }
45) 
46) 
47) $pending = '';
48) if (count($pending_domains) > 0) {
49)   $pending = '<h3>Wartend auf Freischaltung</h3>
50) <p>Folgende Domains sind bereits eingetragen und werden in der kommenden Nacht im Jabber-Server registriert:</p>
51) <ul>';
52)   foreach($pending_domains AS $d)
53)     $pending .= '<li>'.$d.'</li>';
54)   $pending .= '</ul>';
55) }
56) 
57) 
58) 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

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