c208bd906b3991555db11b9229846c4601ca408c
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) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
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 erfordere Kunden- UND Benut...

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) 
bernd DNS nur für Domains, die de...

bernd authored 14 years ago

25) $domains = get_domain_list($_SESSION['customerinfo']['customerno'], $_SESSION['userinfo']['uid']);
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

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

bernd authored 14 years ago

27) title('DNS-Records');
28) output('<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>');
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

29) 
30) //$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
31) //';
32) 
33) $output .=  '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automatische records</th></tr>';
34) 
35) DEBUG($domains);
36) 
37) foreach($domains AS $dom)
38) {
bernd some updates

bernd authored 16 years ago

39)   if ($dom->dns == 0)
40)     continue;
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

41)   $records = get_domain_records($dom->id);
42) 
43)   $autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein');
bernd eliminate .php extensions f...

bernd authored 16 years ago

44)   $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td></tr>';
bernd Stub für dns-Admin-Interface

bernd authored 16 years ago

45) 
46) /*  if ($records) 
47)   {
48)     #$output .= '<h4>'.$dom->fqdn.'</h4>';
49)     #$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
50)     #';
51)     foreach ($records AS $rec)
52)     {
53)       $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] );
54)       if ($rec['dyndns'])
55)         $data = '<em>DynDNS #'.$rec['dyndns'].'</em>';
bernd eliminate .php extensions f...

bernd authored 16 years ago

56)       $output .= "<tr><td>".internal_link('dns_edit', $rec['fqdn'], "id={$rec['id']}")."</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$rec['ttl']} Sek.</td><td>".internal_link('save', '<img src="'.$prefix.'images/delete.png" width="16" height="16" alt="löschen" title="Account löschen" />', "id={$rec['id']}&type=dns&action=delete")."</td></tr>\n";