... | ... |
@@ -23,7 +23,7 @@ require_role(ROLE_SYSTEMUSER); |
23 | 23 |
require_once('dnsinclude.php'); |
24 | 24 |
|
25 | 25 |
|
26 |
-$domains = get_domain_list($_SESSION['customerinfo']['customerno'], $_SESSION['userinfo']['uid']); |
|
26 |
+$domains = get_domain_list((isset($_SESSION['customerinfo']['customerno']) ? $_SESSION['customerinfo']['customerno'] : null), $_SESSION['userinfo']['uid']); |
|
27 | 27 |
|
28 | 28 |
title('DNS-Records'); |
29 | 29 |
output('<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>'); |
... | ... |
@@ -85,7 +85,7 @@ foreach ($domains as $dom) { |
85 | 85 |
$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"; |
86 | 86 |
} |
87 | 87 |
#$output .= '</table><br />'; |
88 |
- |
|
88 |
+ |
|
89 | 89 |
}*/ |
90 | 90 |
} |
91 | 91 |
|
... | ... |
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely |
8 | 8 |
|
9 | 9 |
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
10 | 10 |
|
11 |
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 | 12 |
http://creativecommons.org/publicdomain/zero/1.0/ |
13 | 13 |
|
14 | 14 |
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. |
... | ... |
@@ -35,80 +35,76 @@ $output .= '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automati |
35 | 35 |
|
36 | 36 |
DEBUG($domains); |
37 | 37 |
|
38 |
-$external_domains = False; |
|
39 |
-$unused_dns = False; |
|
40 |
-foreach($domains AS $dom) |
|
41 |
-{ |
|
42 |
- if ($dom->provider != 'terions') { |
|
43 |
- $external_domains = True; |
|
44 |
- } |
|
45 |
- $style=""; |
|
46 |
- if ($dom->dns == 0) { |
|
47 |
- if (strstr($dom->domainname, '.')) { |
|
48 |
- $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>Subdomain ohne eigene DNS-Zone</td></tr>'; |
|
49 |
- } else { |
|
50 |
- $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' Es wird ein externer DNS-Server benutzt<br />'.internal_link('save', icon_add().' Lokalen DNS-Server aktivieren', "dom={$dom->id}&dns=1").'</td></tr>'; |
|
38 |
+$external_domains = false; |
|
39 |
+$unused_dns = false; |
|
40 |
+foreach ($domains as $dom) { |
|
41 |
+ if ($dom->provider != 'terions') { |
|
42 |
+ $external_domains = true; |
|
51 | 43 |
} |
52 |
- continue; |
|
53 |
- } |
|
54 |
- $records = get_domain_records($dom->id); |
|
55 |
- |
|
56 |
- $autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
|
57 |
- if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == NULL || $dom->kuendigungsdatum != NULL) { |
|
58 |
- $state = check_dns($dom->domainname, $dom->tld); |
|
59 |
- if ($state !== True) { |
|
60 |
- $current = 'Momentaner DNS-Server (u.A.): '.$state; |
|
61 |
- if ($state == 'NXDOMAIN') { |
|
62 |
- $current = 'Diese Domain ist aktuell nicht registriert.'; |
|
63 |
- } |
|
64 |
- if (substr_compare($state, config('masterdomain'), -strlen(config('masterdomain')), strlen(config('masterdomain'))) === 0) { |
|
65 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().'Es werden veraltete DNS-Server benutzt<br />'.$current.'</td></tr>'; |
|
44 |
+ $style=""; |
|
45 |
+ if ($dom->dns == 0) { |
|
46 |
+ if (strstr($dom->domainname, '.')) { |
|
47 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>Subdomain ohne eigene DNS-Zone</td></tr>'; |
|
48 |
+ } else { |
|
49 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' Es wird ein externer DNS-Server benutzt<br />'.internal_link('save', icon_add().' Lokalen DNS-Server aktivieren', "dom={$dom->id}&dns=1").'</td></tr>'; |
|
50 |
+ } |
|
66 | 51 |
continue; |
67 |
- } else { |
|
68 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().' Lokaler DNS-Server eingeschaltet aber nicht genutzt<br />'.$current.'<br />'.internal_link('save', icon_delete().' Lokalen DNS-Server abschalten', "dom={$dom->id}&dns=0").'</td></tr>'; |
|
69 |
- $unused_dns = True; |
|
70 |
- continue; |
|
71 |
- } |
|
72 | 52 |
} |
73 |
- } |
|
74 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'</td></tr>'; |
|
75 |
- |
|
76 |
-/* if ($records) |
|
77 |
- { |
|
78 |
- #$output .= '<h4>'.$dom->fqdn.'</h4>'; |
|
79 |
- #$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th> </th></tr> |
|
80 |
- #'; |
|
81 |
- foreach ($records AS $rec) |
|
82 |
- { |
|
83 |
- $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] ); |
|
84 |
- if ($rec['dyndns']) |
|
85 |
- $data = '<em>DynDNS #'.$rec['dyndns'].'</em>'; |
|
86 |
- $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"; |
|
53 |
+ $records = get_domain_records($dom->id); |
|
54 |
+ |
|
55 |
+ $autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
|
56 |
+ if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == null || $dom->kuendigungsdatum != null) { |
|
57 |
+ $state = check_dns($dom->domainname, $dom->tld); |
|
58 |
+ if ($state !== true) { |
|
59 |
+ $current = 'Momentaner DNS-Server (u.A.): '.$state; |
|
60 |
+ if ($state == 'NXDOMAIN') { |
|
61 |
+ $current = 'Diese Domain ist aktuell nicht registriert.'; |
|
62 |
+ } |
|
63 |
+ if (substr_compare($state, config('masterdomain'), -strlen(config('masterdomain')), strlen(config('masterdomain'))) === 0) { |
|
64 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().'Es werden veraltete DNS-Server benutzt<br />'.$current.'</td></tr>'; |
|
65 |
+ continue; |
|
66 |
+ } else { |
|
67 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().' Lokaler DNS-Server eingeschaltet aber nicht genutzt<br />'.$current.'<br />'.internal_link('save', icon_delete().' Lokalen DNS-Server abschalten', "dom={$dom->id}&dns=0").'</td></tr>'; |
|
68 |
+ $unused_dns = true; |
|
69 |
+ continue; |
|
70 |
+ } |
|
71 |
+ } |
|
87 | 72 |
} |
88 |
- #$output .= '</table><br />'; |
|
89 |
- |
|
90 |
- }*/ |
|
73 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'</td></tr>'; |
|
74 |
+ |
|
75 |
+ /* if ($records) |
|
76 |
+ { |
|
77 |
+ #$output .= '<h4>'.$dom->fqdn.'</h4>'; |
|
78 |
+ #$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th> </th></tr> |
|
79 |
+ #'; |
|
80 |
+ foreach ($records AS $rec) |
|
81 |
+ { |
|
82 |
+ $data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] ); |
|
83 |
+ if ($rec['dyndns']) |
|
84 |
+ $data = '<em>DynDNS #'.$rec['dyndns'].'</em>'; |
|
85 |
+ $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"; |
|
86 |
+ } |
|
87 |
+ #$output .= '</table><br />'; |
|
88 |
+ |
|
89 |
+ }*/ |
|
91 | 90 |
} |
92 | 91 |
|
93 | 92 |
$output .= '</table><br />'; |
94 | 93 |
|
95 | 94 |
if ($external_domains) { |
96 |
- $own_ns = own_ns(); |
|
97 |
- asort($own_ns); |
|
98 |
- $output.='<h4>Hinweis zu extern registrierten Domains</h4> |
|
95 |
+ $own_ns = own_ns(); |
|
96 |
+ asort($own_ns); |
|
97 |
+ $output.='<h4>Hinweis zu extern registrierten Domains</h4> |
|
99 | 98 |
<p>Wenn Sie Ihre Domains bei einem anderen Provider registrieren und dennoch unsere DNS-Server nutzen möchten, dann stellen Sie bitte sicher, dass der DNS-Server oben eingeschaltet ist und stellen Sie dann folgende DNS-Server ein:<p> |
100 | 99 |
<ul>'; |
101 |
- foreach ($own_ns as $ns) { |
|
102 |
- $output.='<li>'.$ns.'</li>'; |
|
103 |
- } |
|
104 |
- $output.='</ul>'; |
|
100 |
+ foreach ($own_ns as $ns) { |
|
101 |
+ $output.='<li>'.$ns.'</li>'; |
|
102 |
+ } |
|
103 |
+ $output.='</ul>'; |
|
105 | 104 |
} |
106 | 105 |
if ($unused_dns) { |
107 |
- $output.='<h4>Wichtiger Hinweis</h4> |
|
106 |
+ $output.='<h4>Wichtiger Hinweis</h4> |
|
108 | 107 |
<p>In der obigen Liste befinden sich Domains, bei denen unser DNS-Server aktiviert ist aber die Domain momentan auf einen anderen DNS-Server eingerichtet ist. <strong>Dies ist normal bei bevorstehenden Domain-Transfers zu uns</strong>, sollte aber nicht dauerhaft so bleiben.<p> |
109 | 108 |
<p>Wenn Sie weiterhin einen externen DNS-Server benutzen möchten, dann schalten Sie bitte unseren DNS-Server für diese Domain aus, damit es nicht zu Fehlfunktionen kommt.</p> |
110 | 109 |
<p>Im Zweifel sprechen Sie bitte unseren Support an.</p>'; |
111 | 110 |
} |
112 |
- |
|
113 |
- |
|
114 |
-?> |
... | ... |
@@ -54,7 +54,7 @@ foreach($domains AS $dom) |
54 | 54 |
$records = get_domain_records($dom->id); |
55 | 55 |
|
56 | 56 |
$autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
57 |
- if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == NULL) { |
|
57 |
+ if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == NULL || $dom->kuendigungsdatum != NULL) { |
|
58 | 58 |
$state = check_dns($dom->domainname, $dom->tld); |
59 | 59 |
if ($state !== True) { |
60 | 60 |
$current = 'Momentaner DNS-Server (u.A.): '.$state; |
... | ... |
@@ -45,9 +45,9 @@ foreach($domains AS $dom) |
45 | 45 |
$style=""; |
46 | 46 |
if ($dom->dns == 0) { |
47 | 47 |
if (strstr($dom->domainname, '.')) { |
48 |
- $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' DNS-Server für Subdomains bitte mit dem Support besprechen</td></tr>'; |
|
48 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>Subdomain ohne eigene DNS-Zone</td></tr>'; |
|
49 | 49 |
} else { |
50 |
- $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' '.internal_link('save', icon_add().' Einschalten', "dom={$dom->id}&dns=1").'</td></tr>'; |
|
50 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' Es wird ein externer DNS-Server benutzt<br />'.internal_link('save', icon_add().' Lokalen DNS-Server aktivieren', "dom={$dom->id}&dns=1").'</td></tr>'; |
|
51 | 51 |
} |
52 | 52 |
continue; |
53 | 53 |
} |
... | ... |
@@ -62,10 +62,10 @@ foreach($domains AS $dom) |
62 | 62 |
$current = 'Diese Domain ist aktuell nicht registriert.'; |
63 | 63 |
} |
64 | 64 |
if (substr_compare($state, config('masterdomain'), -strlen(config('masterdomain')), strlen(config('masterdomain'))) === 0) { |
65 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').icon_warning('Es werden veraltete DNS-Server benutzt').' '.$current.'</td></tr>'; |
|
65 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().'Es werden veraltete DNS-Server benutzt<br />'.$current.'</td></tr>'; |
|
66 | 66 |
continue; |
67 | 67 |
} else { |
68 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').icon_warning('DNS-Server eingeschaltet aber nicht genutzt').' '.$current.'<br />'.internal_link('save', icon_delete().' Abschalten', "dom={$dom->id}&dns=0").'</td></tr>'; |
|
68 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'<br />'.icon_warning().' Lokaler DNS-Server eingeschaltet aber nicht genutzt<br />'.$current.'<br />'.internal_link('save', icon_delete().' Lokalen DNS-Server abschalten', "dom={$dom->id}&dns=0").'</td></tr>'; |
|
69 | 69 |
$unused_dns = True; |
70 | 70 |
continue; |
71 | 71 |
} |
... | ... |
@@ -54,7 +54,7 @@ foreach($domains AS $dom) |
54 | 54 |
$records = get_domain_records($dom->id); |
55 | 55 |
|
56 | 56 |
$autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
57 |
- if ($dom->provider != 'terions' || $dom->billing != 'regular') { |
|
57 |
+ if ($dom->provider != 'terions' || $dom->billing != 'regular' || $dom->registrierungsdatum == NULL) { |
|
58 | 58 |
$state = check_dns($dom->domainname, $dom->tld); |
59 | 59 |
if ($state !== True) { |
60 | 60 |
$current = 'Momentaner DNS-Server (u.A.): '.$state; |
... | ... |
@@ -105,7 +105,7 @@ if ($external_domains) { |
105 | 105 |
} |
106 | 106 |
if ($unused_dns) { |
107 | 107 |
$output.='<h4>Wichtiger Hinweis</h4> |
108 |
-<p>In der obigen Liste befinden sich Domains, bei denen unser DNS-Server aktiviert ist aber die Domain momentan auf einen anderen DNS-Server eingerichtet ist. Dies ist normal bei bevorstehenden Domain-Transfers zu uns, sollte aber nicht dauerhaft so bleiben.<p> |
|
108 |
+<p>In der obigen Liste befinden sich Domains, bei denen unser DNS-Server aktiviert ist aber die Domain momentan auf einen anderen DNS-Server eingerichtet ist. <strong>Dies ist normal bei bevorstehenden Domain-Transfers zu uns</strong>, sollte aber nicht dauerhaft so bleiben.<p> |
|
109 | 109 |
<p>Wenn Sie weiterhin einen externen DNS-Server benutzen möchten, dann schalten Sie bitte unseren DNS-Server für diese Domain aus, damit es nicht zu Fehlfunktionen kommt.</p> |
110 | 110 |
<p>Im Zweifel sprechen Sie bitte unseren Support an.</p>'; |
111 | 111 |
} |
... | ... |
@@ -15,6 +15,7 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r |
15 | 15 |
*/ |
16 | 16 |
|
17 | 17 |
require_once('inc/base.php'); |
18 |
+require_once('inc/icons.php'); |
|
18 | 19 |
require_once('inc/security.php'); |
19 | 20 |
|
20 | 21 |
require_role(ROLE_SYSTEMUSER); |
... | ... |
@@ -30,18 +31,47 @@ output('<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ih |
30 | 31 |
//$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th> </th></tr> |
31 | 32 |
//'; |
32 | 33 |
|
33 |
-$output .= '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automatische records</th></tr>'; |
|
34 |
+$output .= '<table><tr><th>Domainname</th><th>Manuelle records</th><th>Automatische records</th><th>Status</th></tr>'; |
|
34 | 35 |
|
35 | 36 |
DEBUG($domains); |
36 | 37 |
|
38 |
+$external_domains = False; |
|
39 |
+$unused_dns = False; |
|
37 | 40 |
foreach($domains AS $dom) |
38 | 41 |
{ |
39 |
- if ($dom->dns == 0) |
|
42 |
+ if ($dom->provider != 'terions') { |
|
43 |
+ $external_domains = True; |
|
44 |
+ } |
|
45 |
+ $style=""; |
|
46 |
+ if ($dom->dns == 0) { |
|
47 |
+ if (strstr($dom->domainname, '.')) { |
|
48 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' DNS-Server für Subdomains bitte mit dem Support besprechen</td></tr>'; |
|
49 |
+ } else { |
|
50 |
+ $output .= '<tr style="color: #999;"><td>'.$dom->fqdn.'</td><td>---</td><td>---</td><td>'.icon_disabled('DNS-Server ausgeschaltet').' '.internal_link('save', icon_add().' Einschalten', "dom={$dom->id}&dns=1").'</td></tr>'; |
|
51 |
+ } |
|
40 | 52 |
continue; |
53 |
+ } |
|
41 | 54 |
$records = get_domain_records($dom->id); |
42 | 55 |
|
43 | 56 |
$autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
44 |
- $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td></tr>'; |
|
57 |
+ if ($dom->provider != 'terions' || $dom->billing != 'regular') { |
|
58 |
+ $state = check_dns($dom->domainname, $dom->tld); |
|
59 |
+ if ($state !== True) { |
|
60 |
+ $current = 'Momentaner DNS-Server (u.A.): '.$state; |
|
61 |
+ if ($state == 'NXDOMAIN') { |
|
62 |
+ $current = 'Diese Domain ist aktuell nicht registriert.'; |
|
63 |
+ } |
|
64 |
+ if (substr_compare($state, config('masterdomain'), -strlen(config('masterdomain')), strlen(config('masterdomain'))) === 0) { |
|
65 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').icon_warning('Es werden veraltete DNS-Server benutzt').' '.$current.'</td></tr>'; |
|
66 |
+ continue; |
|
67 |
+ } else { |
|
68 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').icon_warning('DNS-Server eingeschaltet aber nicht genutzt').' '.$current.'<br />'.internal_link('save', icon_delete().' Abschalten', "dom={$dom->id}&dns=0").'</td></tr>'; |
|
69 |
+ $unused_dns = True; |
|
70 |
+ continue; |
|
71 |
+ } |
|
72 |
+ } |
|
73 |
+ } |
|
74 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td><td>'.icon_enabled('DNS-Server aktiv').'</td></tr>'; |
|
45 | 75 |
|
46 | 76 |
/* if ($records) |
47 | 77 |
{ |
... | ... |
@@ -62,4 +92,23 @@ foreach($domains AS $dom) |
62 | 92 |
|
63 | 93 |
$output .= '</table><br />'; |
64 | 94 |
|
95 |
+if ($external_domains) { |
|
96 |
+ $own_ns = own_ns(); |
|
97 |
+ asort($own_ns); |
|
98 |
+ $output.='<h4>Hinweis zu extern registrierten Domains</h4> |
|
99 |
+<p>Wenn Sie Ihre Domains bei einem anderen Provider registrieren und dennoch unsere DNS-Server nutzen möchten, dann stellen Sie bitte sicher, dass der DNS-Server oben eingeschaltet ist und stellen Sie dann folgende DNS-Server ein:<p> |
|
100 |
+<ul>'; |
|
101 |
+ foreach ($own_ns as $ns) { |
|
102 |
+ $output.='<li>'.$ns.'</li>'; |
|
103 |
+ } |
|
104 |
+ $output.='</ul>'; |
|
105 |
+} |
|
106 |
+if ($unused_dns) { |
|
107 |
+ $output.='<h4>Wichtiger Hinweis</h4> |
|
108 |
+<p>In der obigen Liste befinden sich Domains, bei denen unser DNS-Server aktiviert ist aber die Domain momentan auf einen anderen DNS-Server eingerichtet ist. Dies ist normal bei bevorstehenden Domain-Transfers zu uns, sollte aber nicht dauerhaft so bleiben.<p> |
|
109 |
+<p>Wenn Sie weiterhin einen externen DNS-Server benutzen möchten, dann schalten Sie bitte unseren DNS-Server für diese Domain aus, damit es nicht zu Fehlfunktionen kommt.</p> |
|
110 |
+<p>Im Zweifel sprechen Sie bitte unseren Support an.</p>'; |
|
111 |
+} |
|
112 |
+ |
|
113 |
+ |
|
65 | 114 |
?> |
... | ... |
@@ -1,4 +1,18 @@ |
1 | 1 |
<?php |
2 |
+/* |
|
3 |
+This file belongs to the Webinterface of schokokeks.org Hosting |
|
4 |
+ |
|
5 |
+Written 2008-2012 by schokokeks.org Hosting, namely |
|
6 |
+ Bernd Wurst <bernd@schokokeks.org> |
|
7 |
+ Hanno Böck <hanno@schokokeks.org> |
|
8 |
+ |
|
9 |
+To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
|
10 |
+ |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 |
+http://creativecommons.org/publicdomain/zero/1.0/ |
|
13 |
+ |
|
14 |
+Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. |
|
15 |
+*/ |
|
2 | 16 |
|
3 | 17 |
require_once('inc/base.php'); |
4 | 18 |
require_once('inc/security.php'); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1812 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -10,8 +10,8 @@ require_once('dnsinclude.php'); |
10 | 10 |
|
11 | 11 |
$domains = get_domain_list($_SESSION['customerinfo']['customerno'], $_SESSION['userinfo']['uid']); |
12 | 12 |
|
13 |
-$output .= '<h3>DNS-Records</h3> |
|
14 |
-<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>'; |
|
13 |
+title('DNS-Records'); |
|
14 |
+output('<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>'); |
|
15 | 15 |
|
16 | 16 |
//$output .= '<table><tr><th>Hostname</th><th>Typ</th><th>IP-Adresse/Inhalt</th><th>TTL</th><th> </th></tr> |
17 | 17 |
//'; |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1731 87cf0b9e-d624-0410-a070-f6ee81989793
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1616 87cf0b9e-d624-0410-a070-f6ee81989793
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1608 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -8,7 +8,7 @@ require_role(ROLE_CUSTOMER); |
8 | 8 |
require_once('dnsinclude.php'); |
9 | 9 |
|
10 | 10 |
|
11 |
-$domains = get_domain_list($_SESSION['customerinfo']['customerno']); |
|
11 |
+$domains = get_domain_list($_SESSION['customerinfo']['customerno'], $_SESSION['userinfo']['uid']); |
|
12 | 12 |
|
13 | 13 |
$output .= '<h3>DNS-Records</h3> |
14 | 14 |
<p>Hier sehen Sie eine Übersicht über die angelegten DNS-records zu Ihren Domains.</p>'; |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1134 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -22,6 +22,8 @@ DEBUG($domains); |
22 | 22 |
|
23 | 23 |
foreach($domains AS $dom) |
24 | 24 |
{ |
25 |
+ if ($dom->dns == 0) |
|
26 |
+ continue; |
|
25 | 27 |
$records = get_domain_records($dom->id); |
26 | 28 |
|
27 | 29 |
$autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
... | ... |
@@ -45,6 +47,5 @@ foreach($domains AS $dom) |
45 | 47 |
} |
46 | 48 |
|
47 | 49 |
$output .= '</table><br />'; |
48 |
-$output .= '<p>'.internal_link('dns_edit', 'Neuen DNS-Record anlegen').'</p>'; |
|
49 | 50 |
|
50 | 51 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1128 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -25,7 +25,7 @@ foreach($domains AS $dom) |
25 | 25 |
$records = get_domain_records($dom->id); |
26 | 26 |
|
27 | 27 |
$autorec = ($dom->autodns == 1 ? 'Ja' : 'Nein'); |
28 |
- $output .= '<tr><td>'.internal_link("dns_domain.php", $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td></tr>'; |
|
28 |
+ $output .= '<tr><td>'.internal_link('dns_domain', $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td></tr>'; |
|
29 | 29 |
|
30 | 30 |
/* if ($records) |
31 | 31 |
{ |
... | ... |
@@ -37,7 +37,7 @@ foreach($domains AS $dom) |
37 | 37 |
$data = ( $rec['ip'] ? $rec['ip'] : $rec['data'] ); |
38 | 38 |
if ($rec['dyndns']) |
39 | 39 |
$data = '<em>DynDNS #'.$rec['dyndns'].'</em>'; |
40 |
- $output .= "<tr><td>".internal_link("dns_edit.php", $rec['fqdn'], "id={$rec['id']}")."</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$rec['ttl']} Sek.</td><td>".internal_link("save.php", '<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"; |
|
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"; |
|
41 | 41 |
} |
42 | 42 |
#$output .= '</table><br />'; |
43 | 43 |
|
... | ... |
@@ -45,6 +45,6 @@ foreach($domains AS $dom) |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
$output .= '</table><br />'; |
48 |
-$output .= '<p>'.internal_link('dns_edit.php', 'Neuen DNS-Record anlegen').'</p>'; |
|
48 |
+$output .= '<p>'.internal_link('dns_edit', 'Neuen DNS-Record anlegen').'</p>'; |
|
49 | 49 |
|
50 | 50 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1127 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,50 @@ |
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> </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'); |
|
28 |
+ $output .= '<tr><td>'.internal_link("dns_domain.php", $dom->fqdn, "dom={$dom->id}").'</td><td>'.count($records).'</td><td>'.$autorec.'</td></tr>'; |
|
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> </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>'; |
|
40 |
+ $output .= "<tr><td>".internal_link("dns_edit.php", $rec['fqdn'], "id={$rec['id']}")."</td><td>".strtoupper($rec['type'])."</td><td>$data</td><td>{$rec['ttl']} Sek.</td><td>".internal_link("save.php", '<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"; |
|
41 |
+ } |
|
42 |
+ #$output .= '</table><br />'; |
|
43 |
+ |
|
44 |
+ }*/ |
|
45 |
+} |
|
46 |
+ |
|
47 |
+$output .= '</table><br />'; |
|
48 |
+$output .= '<p>'.internal_link('dns_edit.php', 'Neuen DNS-Record anlegen').'</p>'; |
|
49 |
+ |
|
50 |
+?> |