1e93ecd95396b695cf56400e606f46993b204ac7
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) require_role(ROLE_CUSTOMER);
8) 
9) require_once('dnsinclude.php');
10) 
11) 
bernd DNS nur für Domains, die de...

bernd authored 14 years ago

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

bernd authored 15 years ago

13) 
14) $output .= '<h3>DNS-Records</h3>
15) <p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>';
16) 
17) //$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th>&#160;</th></tr>
18) //';
19) 
20) $output .=  '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automatische records</th></tr>';
21) 
22) DEBUG($domains);
23) 
24) foreach($domains AS $dom)
25) {
bernd some updates

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

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

bernd authored 15 years ago

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