56c162ea4143be0821eb3c5634aca400a8d4b2fc
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']);
bernd Prüfe, ob Domain wirklich d...

bernd authored 14 years ago

15) $domain->ensure_customerdomain();
bernd git-svn-id: https://svn.sch...

bernd authored 15 years ago

16) 
17) DEBUG($domain);
18) 
bernd DNs-record-Interface ist je...

bernd authored 15 years ago

19) 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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

39)   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

40) }  
41) foreach ($auto_records AS $rec)
42) {
43)   $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] );
44)   $ttl = ($rec['ttl'] ? $rec['ttl'] : 3600);
bernd Einige Dummheiten repariert...

bernd authored 14 years ago

45)   output("<tr><td><em>{$rec['fqdn']}</em></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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

53)   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

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

bernd authored 15 years ago

55)   output('<p style="font-size: 80%;"><em>Für diese Domain wurde die Erzeugung automatischer Records deaktiviert.</em></p>');
56) 
57) 
58) output('<h4>Neuen DNS-Record anlegen</h4>
59) <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>
60) 
61) <ul>
bernd Typo

bernd authored 15 years ago

62) <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

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