8228514240255c8100fc131d6eb3a19fbb2e9a31
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 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 2 years 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 2 years 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 17 years ago

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

bernd authored 17 years ago

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

bernd authored 17 years ago

17) require_once('jabberaccounts.php');
18) 
19) require_role(ROLE_CUSTOMER);
20) 
bernd Neue Jabber-Domains selbst...

bernd authored 15 years ago

21) $section = 'jabber_accounts';
bernd Benutze überall title() sta...

bernd authored 14 years ago

22) title("Neues Jabber-Konto erstellen");
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

23) 
24) $jabberdomains = get_jabberable_domains();
25) 
bernd schokokeks.org-Domain ist w...

bernd authored 17 years ago

26) DEBUG($jabberdomains);
27) 
Bernd Wurst jabber: hide domains not ye...

Bernd Wurst authored 3 years ago

28) $need_warning = false;
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

29) $options = '';
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

30) foreach ($jabberdomains as $dom) {
Bernd Wurst jabber: hide domains not ye...

Bernd Wurst authored 3 years ago

31)     if ($dom->jabber == 2) { // New domain, not yet ready for use
32)         $need_warning = true;
33)         continue;
34)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

35)     $options .= '<option value="' . $dom->id . '">' . $dom->fqdn . '</option>' . "\n";
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

36) }
37) 
38) 
bernd Jabber-Sync-intervall höher

bernd authored 17 years ago

39) output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden nach ca. 10 Minuten automatisch in das System übertragen. Accounts funktionieren also nicht unmittelbar nach dem Anlegen.</p>
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

40) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

41) ' . html_form('jabber_new_account', 'save', 'action=new', '
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

42) <table>
Hanno Böck autocomplete values for jab...

Hanno Böck authored 10 months ago

43) <tr><td>Account-Name:</td><td><input type="text" name="local" value="">&#160;@&#160;<select name="domain" size="1">
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

44) ' . $options . '
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

45) </select></td></tr>
Hanno Böck autocomplete values for jab...

Hanno Böck authored 10 months ago

46) <tr><td>Passwort:</td><td><input type="password" name="password" value="" autocomplete="new-password"></td></tr>
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

47) </table>
Hanno Böck autocomplete values for jab...

Hanno Böck authored 10 months ago

48) <br>
49) <input type="submit" name="submit" value="Anlegen">
bernd Neues Jabber-Modul (noch ni...

bernd authored 17 years ago

50) '));
Bernd Wurst jabber: hide domains not ye...

Bernd Wurst authored 3 years ago

51) 
52) 
53) if ($need_warning) {
54)     output('<h3>Noch nicht nutzbare Domains</h3>
55) <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>
56) <ul>');
57)     foreach ($jabberdomains as $dom) {
58)         if ($dom->jabber == 2) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

59)             output('<li>' . $dom->fqdn . '</li>');