ec0c81a8b70e6ac664c291f0e583345d066b7484
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 Entities repariert

bernd authored 16 years ago

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