354c05a4ddd678c49bcbba458bffa7d13482139a
bernd Stub für dns-Admin-Interface

bernd authored 15 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

13) 
14) require_once('inc/base.php');
15) require_once('inc/security.php');
Bernd Wurst Erzeuge nicht einen DynDNS-...

Bernd Wurst authored 7 years ago

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

bernd authored 15 years ago

17) 
bernd Erlaube *useraccounts* das...

bernd authored 14 years ago

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

bernd authored 15 years ago

19) 
20) require_once('dnsinclude.php');
21) 
22) 
23) $dyndns = get_dyndns_accounts();
24) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

25) title("DynDNS-Accounts");
26) 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

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

bernd authored 13 years ago

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

bernd authored 15 years ago

30) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

31) foreach ($dyndns as $entry) {
32)     $handle = $entry['handle'];
33)     if (!$handle) {
34)         $handle = '<em>undefiniert</em>';
35)     }
36)     $method = '';
37)     if ($entry['sshkey']) {
38)         if ($entry['password']) {
39)             $method = 'SSH, HTTP';
40)         } else {
41)             $method = 'SSH';
42)         }
43)     } elseif ($entry['password']) {
44)         $method = 'HTTP';
45)     } else {
46)         $method = '<em>keine</em>';
47)     }
Bernd Wurst Zeige IPv6-Adresse beim DynDNS

Bernd Wurst authored 5 years ago

48)     $address = $entry['address'];
49)     if ($address == '') {
50)         $address = "<em>keine IPv4-Adresse</em>";
51)     }
52)     if ($entry['ipv6']) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

53)         $address .= " / " . $entry['ipv6'];
Bernd Wurst Zeige IPv6-Adresse beim DynDNS

Bernd Wurst authored 5 years ago

54)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

55)     output("<tr><td>" . internal_link('dyndns_edit', $handle, "id={$entry['id']}") . "</td><td>{$method}</td><td>{$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 15 years ago

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

bernd authored 13 years ago

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

bernd authored 15 years ago

58)