63a0529b21bfd97a4ef395e8d3d3f513526357c6
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

1) <?php
2) 
3) require_once('session/start.php');
4) 
bernd Domain-Klasse benutzen

bernd authored 16 years ago

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

bernd authored 16 years ago

6) require_once('jabberaccounts.php');
7) 
bernd bisschen XSS-Schutz

bernd authored 16 years ago

8) require_once('inc/security.php');
9) 
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

10) require_role(ROLE_CUSTOMER);
11) 
12) $jabberaccounts = get_jabber_accounts();
13) 
14) output("<h3>Jabber-Accounts</h3>
15) 
16) 
17) <table>
18) ");
19) 
20) foreach ($jabberaccounts as $acc)
21) {
bernd bisschen XSS-Schutz

bernd authored 16 years ago

22)   $local = filter_input_general($acc['local']);
bernd Domain-Klasse benutzen

bernd authored 16 years ago

23)   $domain = new Domain( (int) $acc['domain']  );
24)   if ($domain->id == NULL)
25)   {
26)     $domain = new Domain();
27)     $domain->fqdn='schokokeks.org';
28)   }
bernd eliminate .php extensions f...

bernd authored 15 years ago

29)   output("<tr><td>{$local}@{$domain->fqdn}</td><td>".internal_link('chpass', 'Passwort ändern', 'account='.$acc['id'])."&#160;&#160;&#160;".internal_link('save', 'Löschen', 'action=delete&account='.$acc['id']).'</td></tr>');
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

30) }
31) 
32) output('</table>
33) 
bernd eliminate .php extensions f...

bernd authored 15 years ago

34) <p>'.internal_link("new_account", "Neues Jabber-Konto anlegen").'</p>');