2626dd47daad110c63a82c0560b134e2364eeac3
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) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

34) foreach ($dyndns as $entry) {
35)     $handle = $entry['handle'];
36)     if (!$handle) {
37)         $handle = '<em>undefiniert</em>';
38)     }
39)     $method = '';
40)     if ($entry['sshkey']) {
41)         if ($entry['password']) {
42)             $method = 'SSH, HTTP';
43)         } else {
44)             $method = 'SSH';
45)         }
46)     } elseif ($entry['password']) {
47)         $method = 'HTTP';
48)     } else {
49)         $method = '<em>keine</em>';
50)     }
51)     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

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

bernd authored 14 years ago

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

bernd authored 16 years ago

54)