1aaaa700cdfda9c1e0bd92741205d07d8e0132de
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) 
bernd erfordere Kunden- UND Benut...

bernd authored 14 years ago

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

bernd authored 15 years ago

7) 
8) require_once('dnsinclude.php');
9) 
10) 
bernd DNS nur für Domains, die de...

bernd authored 14 years ago

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

bernd authored 15 years ago

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

bernd authored 13 years ago

13) title('DNS-Records');
14) 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 15 years ago

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) {
bernd some updates

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

30)   $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

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

bernd authored 15 years ago

42)       $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";