63a0529b21bfd97a4ef395e8d3d3f513526357c6
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

1) <?php
2) 
3) require_once('inc/base.php');
4) require_once('inc/security.php');
5) 
6) require_role(ROLE_CUSTOMER);
7) 
8) require_once('dnsinclude.php');
9) 
10) 
11) $domains = get_domain_list($_SESSION['customerinfo']['customerno']);
12) 
13) $output .= '<h3>DNS-Records</h3>
14) <p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>';
15) 
16) //$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
17) //';
18) 
19) $output .=  '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automatische records</th></tr>';
20) 
21) DEBUG($domains);
22) 
23) foreach($domains AS $dom)
24) {
25)   $records = get_domain_records($dom->id);
26) 
27)   $autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein');
bernd eliminate .php extensions f...

bernd authored 15 years ago

28)   $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 15 years ago

29) 
30) /*  if ($records) 
31)   {
32)     #$output .= '<h4>'.$dom->fqdn.'</h4>';
33)     #$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
34)     #';
35)     foreach ($records AS $rec)
36)     {
37)       $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] );
38)       if ($rec['dyndns'])
39)         $data = '<em>DynDNS #'.$rec['dyndns'].'</em>';
bernd eliminate .php extensions f...

bernd authored 15 years ago

40)       $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";
bernd Stub für dns-Admin-Interface

bernd authored 15 years ago

41)     }
42)     #$output .= '</table><br />';
43) 
44)   }*/
45) }
46) 
47) $output .= '</table><br />';
bernd eliminate .php extensions f...

bernd authored 15 years ago

48) $output .= '<p>'.internal_link('dns_edit', 'Neuen DNS-Record anlegen').'</p>';