f12aba6daa6e2848a8ed60ea57b26874d6675f52
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 Updated copyright notice (2...

Bernd Wurst authored 11 years ago

5) Written 2008-2013 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');
19) 
bernd Erlaube *useraccounts* das...

bernd authored 14 years ago

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

bernd authored 16 years ago

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

bernd authored 14 years ago

27) title("DynDNS-Accounts");
28) 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

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

bernd authored 14 years ago

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

bernd authored 16 years ago

32) 
33) foreach ($dyndns AS $entry) {
34)   $handle = $entry['handle'];
35)   if (!$handle)
36)     $handle = '<em>undefiniert</em>';
37)   $method = '';
38)   if ($entry['sshkey'])
39)     if ($entry['password'])
40)       $method = 'SSH, HTTP';
41)     else
42)       $method = 'SSH';
43)   else
44)     if ($entry['password'])
45)       $method = 'HTTP';
46)     else
47)       $method = '<em>keine</em>';
bernd Benutze überall title() sta...

bernd authored 14 years ago

48)   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 16 years ago

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

bernd authored 14 years ago

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

bernd authored 16 years ago

51) 
bernd addnew() eingeführt

bernd authored 15 years ago

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