Bernd Wurst commited on 2021-01-31 05:35:44
Zeige 1 geänderte Dateien mit 21 Einfügungen und 0 Löschungen.
| ... | ... |
@@ -28,8 +28,13 @@ $jabberdomains = get_jabberable_domains(); |
| 28 | 28 |
|
| 29 | 29 |
DEBUG($jabberdomains); |
| 30 | 30 |
|
| 31 |
+$need_warning = false; |
|
| 31 | 32 |
$options = ''; |
| 32 | 33 |
foreach ($jabberdomains as $dom) {
|
| 34 |
+ if ($dom->jabber == 2) { // New domain, not yet ready for use
|
|
| 35 |
+ $need_warning = true; |
|
| 36 |
+ continue; |
|
| 37 |
+ } |
|
| 33 | 38 |
$options .= '<option value="'.$dom->id.'">'.$dom->fqdn.'</option>'."\n"; |
| 34 | 39 |
} |
| 35 | 40 |
|
| ... | ... |
@@ -46,3 +51,19 @@ output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden na
|
| 46 | 51 |
<br /> |
| 47 | 52 |
<input type="submit" name="submit" value="Anlegen" /> |
| 48 | 53 |
')); |
| 54 |
+ |
|
| 55 |
+ |
|
| 56 |
+if ($need_warning) {
|
|
| 57 |
+ output('<h3>Noch nicht nutzbare Domains</h3>
|
|
| 58 |
+<p>Folgende Domains sind zwar zur Nutzung im Jabber-Server vorgesehen, wurden aber noch nicht in die Serverkonfiguration übernommen. Für diese Domains können Sie bisher noch keine Accounts anlegen.</p> |
|
| 59 |
+<ul>'); |
|
| 60 |
+ foreach ($jabberdomains as $dom) {
|
|
| 61 |
+ if ($dom->jabber == 2) {
|
|
| 62 |
+ output('<li>'.$dom->fqdn.'</li>');
|
|
| 63 |
+ } |
|
| 64 |
+ } |
|
| 65 |
+ output('</ul>');
|
|
| 66 |
+} |
|
| 67 |
+ |
|
| 68 |
+ |
|
| 69 |
+ |
|
| 49 | 70 |