b465c3f0087ff01221d88332c8cf7240f8528ef0
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

1) <?php
2) 
3) require_once('inc/base.php');
4) require_once('inc/security.php');
5) 
6) require_once('class/domain.php');
7) 
8) require_role(ROLE_CUSTOMER);
9) 
10) require_once('dnsinclude.php');
11) 
12) $section = 'dns_dns';
13) 
14) $domain = new Domain((int) $_REQUEST['dom']);
15) 
16) DEBUG($domain);
17) 
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

18) output('<h3>DNS-Records für <em>'.filter_input_general($domain->fqdn).'</em></h3>');
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

19) 
20) $records = get_domain_records($domain->id);
21) $auto_records = get_domain_auto_records($domain->fqdn);
22) 
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

23) output('<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
24) ');
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

25) foreach ($records AS $rec)
26) {
27)   $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] );
28)   if ($rec['dyndns'])
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

29)   {
30)     $dyndns = get_dyndns_account($rec['dyndns']);
31)     $data = internal_link('dyndns_edit', '<em>DynDNS #'.$rec['dyndns'].' ('.$dyndns['handle'].')</em>', 'id='.$rec['dyndns']);
32)   }
33)   if ($rec['type'] == 'mx')
34)   {
35)     $data .= ' ('.$rec['spec'].')';
36)   }
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

37)   $ttl = ($rec['ttl'] ? $rec['ttl'] : 3600);
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

38)   output("<tr><td>".internal_link('dns_record_edit', $rec['fqdn'], "id={$rec['id']}")."</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$ttl} Sek.</td><td>".internal_link('dns_record_save', '<img src="'.$prefix.'images/delete.png" width="16" height="16" alt="löschen" title="Record löschen" />', "id={$rec['id']}&action=delete")."</td></tr>\n");
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

39) }  
40) foreach ($auto_records AS $rec)
41) {
42)   $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] );
43)   $ttl = ($rec['ttl'] ? $rec['ttl'] : 3600);
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

44)   output("<tr><td><em>{$rec['fqdn']}</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$ttl} Sek.</td><td>&#160;</td></tr>\n");
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

45)   
46) }
47) 
48) 
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

49) output('</table>');
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

50) 
51) if ($domain->autodns)
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

52)   output('<p style="font-size: 80%;"><em>Kursive Hostnames bezeichnen automatisch erzeugte Records. Diese können nicht geändert werden.</em></p>');
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

53) else
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

54)   output('<p style="font-size: 80%;"><em>Für diese Domain wurde die Erzeugung automatischer Records deaktiviert.</em></p>');
55) 
56) 
57) output('<h4>Neuen DNS-Record anlegen</h4>
58) <p>Je nach dem, welchen Eintrags-Typ Sie anlegen möchten, werden im nächsten Schritt unterschiedliche Daten abgefragt. Bitte klicken Sie auf den Eintrags-Typ, den Sie anlegen möchten. Momentan werden noch nicht alle Eintrags-Typen über dieses System bereitgestellt. Hier nicht aufgeführte Eintragsarten können Sie beim Support beantragen.</p>
59) 
60) <ul>
bernd Typo

bernd authored 15 years ago

61) <li>'.internal_link('dns_record_edit', 'DynDNS (Hostname für einen DynDNS-Account setzen)', 'id=new&type=dyndns&domain='.$domain->id).'</li>
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

62) <li>'.internal_link('dns_record_edit', 'A (normaler Hostname/normale Subdomain)', 'id=new&type=a&domain='.$domain->id).'</li>
63) <li>'.internal_link('dns_record_edit', 'MX (Posteingangsserver)', 'id=new&type=mx&domain='.$domain->id).'</li>
64) </ul>
65) <ul>
66) <li>'.internal_link('dns_record_edit', 'AAAA (IPv6-Adresse)', 'id=new&type=aaaa&domain='.$domain->id).'</li>
67) <li>'.internal_link('dns_record_edit', 'CNAME (Aliasnamen)', 'id=new&type=cname&domain='.$domain->id).'</li>
68) </ul>
69) ');