88386eef1e9ae6b4a1dcc7c78c108d89f1f11c59
bernd Neues Jabber-Modul (noch ni...

bernd authored 16 years ago

1) <?php
2) 
3) require_once('session/start.php');
4) 
5) require_once('domains.php');
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) DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true)));
13) 
14) $jabberaccounts = get_jabber_accounts();
15) 
16) output("<h3>Jabber-Accounts</h3>
17) 
18) 
19) <table>
20) ");
21) 
22) foreach ($jabberaccounts as $acc)
23) {
bernd bisschen XSS-Schutz

bernd authored 16 years ago

24)   $local = filter_input_general($acc['local']);
25)   $domain = filter_input_general( get_domain_name($acc['domain']) );
26)   output("<tr><td>{$local}@$domain</td><td>".internal_link('chpass.php', 'Passwort ändern', 'account='.$acc['id'])."&nbsp;&nbsp;&nbsp;".internal_link('save.php', 'Löschen', 'action=delete&account='.$acc['id']).'</td></tr>');