Hanno Böck 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. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/ 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. */ require_once('session/start.php'); require_once('class/domain.php'); require_once('jabberaccounts.php'); require_role(ROLE_CUSTOMER); $section = 'jabber_accounts'; $title = "Domain für Jabber freischalten"; title("Eigene Domain für Jabber-Nutzung freischalten"); $domains = get_domain_list((int) $_SESSION['customerinfo']['customerno']); DEBUG($domains); if (! count($domains)) { system_failure("Sie haben gar keine eigenen Domains."); } $pending_domains = array(); $available_domains = array(); foreach ($domains AS $d) { if ($d->jabber == 0) $available_domains[$d->id] = $d->domainname.'.'.$d->tld; if ($d->jabber == 2) $pending_domains[] = $d->fqdn; } $pending = ''; if (count($pending_domains) > 0) { $pending = '

Wartend auf Freischaltung

Folgende Domains sind bereits eingetragen und werden in der kommenden Nacht im Jabber-Server registriert:

'; } output('

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.

'.html_form('jabber_new_domain', 'save', 'action=newdomain', '

Domain wählen: '.html_select('domain', $available_domains).'

').$pending); ?>