1aaaa700cdfda9c1e0bd92741205d07d8e0132de
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

1) <?php
2) 
3) require_once('inc/base.php');
4) require_once('inc/security.php');
5) 
bernd Erlaube *useraccounts* das...

bernd authored 13 years ago

6) require_role(ROLE_SYSTEMUSER);
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

7) 
8) require_once('dnsinclude.php');
9) 
10) 
11) $dyndns = get_dyndns_accounts();
12) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

13) title("DynDNS-Accounts");
14) output("<p>Hier sehen Sie eine Übersicht über die angelegten DynDNS-Accounts.</p>");
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

15) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

16) output('<table><tr><th>Kürzel</th><th>Methode</th><th>aktuelle IP</th><th>letztes Update</th><th>&#160;</th></tr>
17) ');
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

18) 
19) foreach ($dyndns AS $entry) {
20)   $handle = $entry['handle'];
21)   if (!$handle)
22)     $handle = '<em>undefiniert</em>';
23)   $method = '';
24)   if ($entry['sshkey'])
25)     if ($entry['password'])
26)       $method = 'SSH, HTTP';
27)     else
28)       $method = 'SSH';
29)   else
30)     if ($entry['password'])
31)       $method = 'HTTP';
32)     else
33)       $method = '<em>keine</em>';
bernd Benutze überall title() sta...

bernd authored 13 years ago

34)   output("<tr><td>".internal_link('dyndns_edit', $handle, "id={$entry['id']}")."</td><td>{$method}</td><td>{$entry['address']}</td><td>{$entry['lastchange']}</td><td>".internal_link('save', '<img src="'.$prefix.'images/delete.png" width="16" height="16" alt="löschen" title="Account löschen" />', "id={$entry['id']}&type=dyndns&action=delete")."</td></tr>\n");
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

35) }
bernd Benutze überall title() sta...

bernd authored 13 years ago

36) output('</table>');
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

37) 
bernd addnew() eingeführt

bernd authored 14 years ago

38) addnew('dyndns_edit', 'Neuen DynDNS-Account anlegen');