cf54502a10b16c985ea28db17885d377226b6145
bernd Stub für dns-Admin-Interface

bernd authored 16 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) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 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) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

16) 
17) require_once('inc/base.php');
18) require_once('inc/security.php');
Bernd Wurst Erzeuge nicht einen DynDNS-...

Bernd Wurst authored 8 years ago

19) require_once('inc/icons.php');
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

20) 
bernd Erlaube *useraccounts* das...

bernd authored 14 years ago

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

bernd authored 16 years ago

22) 
23) require_once('dnsinclude.php');
24) 
25) 
26) $dyndns = get_dyndns_accounts();
27) 
bernd Benutze überall title() sta...

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

33) 
34) foreach ($dyndns AS $entry) {
35)   $handle = $entry['handle'];
36)   if (!$handle)
37)     $handle = '<em>undefiniert</em>';
38)   $method = '';
39)   if ($entry['sshkey'])
40)     if ($entry['password'])
41)       $method = 'SSH, HTTP';
42)     else
43)       $method = 'SSH';
44)   else
45)     if ($entry['password'])
46)       $method = 'HTTP';
47)     else
48)       $method = '<em>keine</em>';
Bernd Wurst Erzeuge nicht einen DynDNS-...

Bernd Wurst authored 8 years ago

49)   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', icon_delete("Account löschen"), "id={$entry['id']}&type=dyndns&action=delete").' '.internal_link('dyndns_hostnames', other_icon("world_link.png", "Hostnames verwalten"), "id={$entry['id']}")."</td></tr>\n");
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

52) 
bernd addnew() eingeführt

bernd authored 15 years ago

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