b797d2d14e605ddfe1f3bf9528d7bc8d2c1efebf
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written 2008-2018 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) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

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) */
16) 
17) require_once('inc/debug.php');
18) require_once('inc/icons.php');
19) 
20) require_once('class/domain.php');
21) require_once('domains.php');
22) 
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

23) require_role(array(ROLE_CUSTOMER, ROLE_SYSTEMUSER));
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

24) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

25) $dom = null;
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

26) if (isset($_REQUEST['id'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

27)     $dom = new Domain((int) $_REQUEST['id']);
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

28)     $_SESSION['domains_detail_domainname'] = $dom->fqdn;
29) } elseif (isset($_SESSION['domains_detail_domainname'])) {
30)     $dom = new Domain($_SESSION['domains_detail_domainname']);
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

31) } else {
32)     system_failure("Keine Domain angegeben");
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

33) }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

34) if (!$dom) {
35)     system_failure("Keine Domain gewählt!");
36) }
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

37) if (have_role(ROLE_CUSTOMER)) {
38)     $dom->ensure_customerdomain();
39) } else {
40)     $dom->ensure_userdomain();
41) }
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

42) 
43) title("Domain {$dom->fqdn}");
44) $section = 'domains_domains';
45) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

46) // Block zuständiger Useraccount
47) 
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

48) $is_current_user = true;
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

49) $is_current_customer = false;
50) if (have_role(ROLE_CUSTOMER) && isset($_SESSION['customerinfo']['customerno']) && ($dom->kunde == $_SESSION['customerinfo']['customerno'])) {
51)     $is_current_customer = true;
52)     $useraccounts = list_useraccounts();
53)     if (count($useraccounts) > 1) {
54)         if ($dom->useraccount != $_SESSION['userinfo']['uid']) {
55)             $is_current_user = false;
56)         }
57)         // Mehrere User vorhanden
58)         $options = array();
59)         foreach ($useraccounts as $u) {
60)             $options[$u['uid']] = $u['username'];
61)         }
62)         if (!array_key_exists($dom->useraccount, $options)) {
63)             $options[$dom->useraccount] = $dom->useraccount;
64)         }
65)         output('<h4>Zuständiges Benutzerkonto</h4>');
66)         $form = '<p>Diese Domain nutzen im Benutzerkonto '.html_select('domainuser', $options, $dom->useraccount).' <input type="submit" name="submit" value="Änderung speichern"></p>';
67)         output(html_form('update-user', 'update', 'action=chguser&id='.$dom->id, $form));
68)     } elseif (!have_role(ROLE_SYSTEMUSER) || $dom->useraccount != $_SESSION['userinfo']['uid']) {
69)         // Kunde hat keine mehreren User, Domain ist trotzdem in einem anderen Useraccount
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

70)         $is_current_user = false;
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

71)         output('<h4>Zuständiges Benutzerkonto</h4>');
72)         output('<p>Diese Domain wird im Benutzerkonto mit der User-ID #'.$dom->useraccount.' verwendet.</p>');
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

73)     }
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

74) }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

75) 
76) 
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

77) // Block Nutzung
78) 
79) if ($is_current_user) {
80)     output("<h4>Aktuelle Nutzung dieser Domain</h4>");
Bernd Wurst Deeplinks als Flex-Tiles

Bernd Wurst authored 6 years ago

81)     output('<div class="tile-container">');
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

82)     $everused = false;
83)     if (have_module('dns') && $dom->dns == 1) {
84)         $used = dns_in_use($dom->id);
85)         output("<div class=\"tile usage ".($used ? "used" : "unused")."\"><p><strong>".internal_link('../dns/dns_domain', "DNS-Server", 'dom='.$dom->id)."</strong></p><p>".($used ? "Manuelle DNS-Records vorhanden." : "DNS-Records möglich")."</p></div>");
86)         $everused = true;
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

87)     }
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

88)     if (have_module('email') && ($dom->mail != 'none')) {
Bernd Wurst Erzeuge Warnung wenn bei ei...

Bernd Wurst authored 4 years ago

89)         if ($dom->provider != 'terions') {
90)             $mxresult = dns_get_record($dom->fqdn, DNS_MX);
91)             $found = false;
92)             foreach ($mxresult as $mx) {
93)                 if (substr_compare($mx['target'], config('masterdomain'), -strlen(config('masterdomain'))) === 0) {
94)                     $found = true;
95)                 }
96)             }
97)             if (! $found) {
98)                 DEBUG('MX für '.$dom->fqdn.':');
99)                 DEBUG($mxresult);
100)                 warning('Bei dieser Domain ist der Mail-Empfang aktiviert, jedoch verweist das DNS-System scheinbar nicht auf unsere Anlagen. Wenn Sie keine E-Mails empfangen möchten, schalten Sie die Mail-Verarbeitung für diese Domain aus.');
101)             }
102)         }
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

103)         $used = mail_in_use($dom->id);
Bernd Wurst Zeige Mail-Deeplink korrekt...

Bernd Wurst authored 6 years ago

104)         $vmail = count_vmail($dom->id);
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

105)         if ($used) {
106)             if ($vmail > 0) {
107)                 output("<div class=\"tile usage used\"><p><strong>".internal_link('../email/vmail', "E-Mail", 'filter='.$dom->fqdn)."</strong></p><p>E-Mail-Postfächer unter dieser Domain: <strong>{$vmail}</strong></p></div>");
108)             } else {
109)                 output("<div class=\"tile usage unused\"><p><strong>".internal_link('../email/imap', "E-Mail")."</strong></p><p>Manuelle Mail-Konfiguration ist aktiv</p></div>");
110)             }
Bernd Wurst Zeige Mail-Deeplink korrekt...

Bernd Wurst authored 6 years ago

111)         } else {
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

112)             output("<div class=\"tile usage unused\"><p><strong>".internal_link('../email/vmail', "E-Mail", 'filter='.$dom->fqdn)."</strong></p><p>Bisher keine E-Mail-Postfächer unter dieser Domain.</p></div>");
Bernd Wurst Zeige Mail-Deeplink korrekt...

Bernd Wurst authored 6 years ago

113)         }
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

114)         $everused = true;
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

115)     }
116)     if (have_module('mailman') && mailman_subdomains($dom->id)) {
Bernd Wurst Funktion zum Löschen einer...

Bernd Wurst authored 4 years ago

117)         use_module('mailman');
118)         include('mailman.php');
Bernd Wurst Deeplink von Domain zu Mail...

Bernd Wurst authored 5 years ago

119)         $mailmanhosts = mailman_subdomains($dom->id);
120)         $hostname = $dom->fqdn;
121)         if (count($mailmanhosts) == 1) {
122)             $hostname = $mailmanhosts[0]['hostname'].'.'.$dom->fqdn;
123)         }
Bernd Wurst Funktion zum Löschen einer...

Bernd Wurst authored 4 years ago

124)         $lists = lists_on_domain($dom->id);
Bernd Wurst changed wording in domain d...

Bernd Wurst authored 4 years ago

125)         $msg = '<p>Diese Domain wird für Mailinglisten verwendet</p>';
Bernd Wurst Funktion zum Löschen einer...

Bernd Wurst authored 4 years ago

126)         if (count($lists) == 0) {
Bernd Wurst changed wording in domain d...

Bernd Wurst authored 4 years ago

127)             $msg = '<p>Für Mailinglisten eingerichtet aber keine Mailingliste mehr vorhanden.</p><p class="delete">'.internal_link('save', "Nicht mehr für Mailinglisten verwenden", "action=nomailman&domain=".$dom->id).'</p>';
Bernd Wurst Funktion zum Löschen einer...

Bernd Wurst authored 4 years ago

128)         }
Bernd Wurst changed wording in domain d...

Bernd Wurst authored 4 years ago

129)         output("<div class=\"tile usage used\"><p><strong>".internal_link('../mailman/lists', "Mailinglisten", 'filter='.$hostname)."</strong></p>$msg</div>");
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

130)         $used = true;
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

131)         $everused = true;
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

132)     }
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

133)     if (have_module('vhosts')) {
134)         $used = web_in_use($dom->id);
135)         output("<div class=\"tile usage ".($used ? "used" : "unused")."\"><p><strong>".internal_link('../vhosts/vhosts', "Websites", 'filter='.$dom->fqdn)."</strong></p><p>".($used ? "Es gibt Website-Einstellungen für diese Domain" : "Bisher keine Website eingerichtet")."</p></div>");
136)         $everused = true;
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

137)     }
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

138)     if (have_module('jabber')) {
139)         if ($dom->jabber == 1) {
140)             output("<div class=\"tile usage used\"><p><strong>".internal_link('../jabber/accounts', "Jabber/XMPP")."</strong></p><p>Diese Domain wird für Jabber verwendet</p></div>");
141)         } else {
142)             output("<div class=\"tile usage unused\"><p><strong>".internal_link('../jabber/new_domain', "Jabber/XMPP")."</strong></p><p>Diese Domain wird bisher nicht für Jabber verwendet</p></div>");
143)         }
144)         $everused = true;
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

145)     }
Bernd Wurst Deeplinks als Flex-Tiles

Bernd Wurst authored 6 years ago

146)     output('</div>');
Bernd Wurst styling der Nutzungsangaben...

Bernd Wurst authored 6 years ago

147)     if (! $everused) {
148)         output('<p><em>Keine Nutzung dieser Domain (die hier angezeigt wird)</em></p>');
149)     }
Bernd Wurst Domain-Nutzung mit Deeplink...

Bernd Wurst authored 6 years ago

150) }
151) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

152) // Block Domain-Inhaber
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

153) 
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

154) if ($is_current_customer && config('http.net-apikey') && $dom->provider == 'terions' && ($dom->cancel_date === null || $dom->cancel_date > date('Y-m-d'))) {
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

155)     use_module('contacts');
156)     require_once('contacts.php');
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

157)     require_once('domainapi.php');
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

158) 
159)     output('<h4>Inhaberwechsel der Domain</h4>');
160)     output('<p>Legen Sie hier einen neuen Inhaber für diese Domain fest.</p>');
161) 
162)     if (isset($_REQUEST['id'])) {
163)         api_download_domain($_REQUEST['id']);
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

164)         $_SESSION['domains_detail_domainname'] = $dom->fqdn;
165)         $_SESSION['domains_detail_owner'] = $dom->owner;
166)         $_SESSION['domains_detail_admin_c'] = $dom->admin_c;
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

167)     }
168)     if (!update_possible($dom->id)) {
169)         warning("Diese Domain verwendet eine unübliche Endung. Daher kann der Inhaber nicht auf diesem Weg verändert werden. Bitte kontaktieren Sie den Support.");
170)     } else {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

171)         if ($_SESSION['domains_detail_admin_c'] == $dom->admin_c &&
172)                 $_SESSION['domains_detail_owner'] != $dom->owner &&
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

173)                 (!isset($_SESSION['domains_detail_detach']) || $_SESSION['domains_detail_detach'] == 0)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

174)             // Wenn der Owner geändert wurde, der Admin aber nicht und das detach-Flag
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

175)             // nicht gesetzt ist, dann wird der Admin gleich dem Owner gesetzt
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

176)             $_SESSION['domains_detail_admin_c'] = $_SESSION['domains_detail_owner'];
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

177)         }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

178) 
179)         if (isset($_GET['admin_c']) && $_GET['admin_c'] == 'none') {
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

180)             $_SESSION['domains_detail_admin_c'] = $_SESSION['domains_detail_owner'];
181)             unset($_SESSION['domains_detail_detach']);
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

182)         }
183) 
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

184)         $owner = get_contact($_SESSION['domains_detail_owner']);
185)         $admin_c = get_contact($_SESSION['domains_detail_admin_c']);
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

186)         $function = 'Inhaber';
187)         if ($owner['id'] == $admin_c['id']) {
188)             $function .= ' und Verwalter';
189)         }
190)         $cssclass = '';
191)         if ($owner['id'] != $dom->owner) {
192)             $cssclass = 'modified';
193)         }
194)         output('<p><strong>'.$function.':</strong></p>'.display_contact($owner, '', $cssclass));
195)         addnew('choose', 'Neuen Inhaber wählen', "type=owner");
196)         if ($owner['id'] != $admin_c['id']) {
197)             $cssclass = '';
198)             if ($admin_c['id'] != $dom->admin_c) {
199)                 $cssclass = 'modified';
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

200)             }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

201)             output('<p><strong>Verwalter:</strong></p>'.display_contact($admin_c, '', $cssclass));
202)             addnew('choose', 'Neuen Verwalter wählen', "type=admin_c");
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

203)             output('<p class="delete">'.internal_link('', 'Keinen separaten Verwalter festlegen', 'admin_c=none').'</p>');
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

204)         } else {
205)             addnew('choose', 'Einen separaten Verwalter wählen', "type=admin_c&detach=1");
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

206)         }
207) 
208) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

209)         if ($owner['id'] != $dom->owner || $admin_c['id'] != $dom->admin_c) {
210)             if (isset($_GET['error']) && $_GET['error'] == '1') {
211)                 input_error('Sie müssen der Übertragung explizit zustimmen!');
212)             }
213)             $form = '<p>Es sind Änderungen vorgenommen worden, die noch nicht gespeichert wurden</p>';
214)             $form .= '<p><input type="checkbox" name="accept" value="1" id="accept"><label for="accept"> Ich bestätige, dass ich die nachfolgenden Hinweise zur Kenntnis genommen habe.</p>
215)                 <p>Mit Speichern dieser Änderungen führen Sie möglicherweise einen Inhaberwechsel bei der Domain '.$dom->fqdn.' aus. Inhaberwechsel sind bei einigen Domainendungen (z.B. com/net/org) zustimmungspflichtig vom alten und vom neuen Inhaber. Die Registrierungsstelle kann nach eigenem Ermessen diese Zustimmung per separater E-Mail einfordern. Wird diese Zustimmung nicht oder verspätet erteilt, kann eine Domain gesperrt werden. Dieser Vorgang wird nicht von '.config('company_name').' kontrolliert.</p>
216)                 <p>Sie sind ferner darüber informiert, dass die Adresse des Domaininhabers öffentlich abrufbar ist.</p>';
217)             $form .= '<p><input type="submit" name="sumbit" value="Änderungen speichern und Domaininhaber ändern"></p>';
218)             output(html_form('domains_update', 'update', "action=ownerchange&id=".$dom->id, $form));
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

219)         }
Bernd Wurst Ermögliche das Ändern eines...

Bernd Wurst authored 6 years ago

220)     }
221) }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

222) 
223) // Block Externe Domain umziehen
224) 
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

225) if ($is_current_customer && config('http.net-apikey')) {
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

226)     if ($dom->status == 'prereg') {
227)         output('<h4>Domain-Registrierung abschließen</h4>
228)                 <p>'.internal_link('domainreg', 'Domain registrieren', "domain={$dom->fqdn}").'</p>');
229)     } elseif ($dom->status == 'pretransfer') {
230)         output('<h4>Domain zu '.config('company_name').' umziehen</h4>
231)                 <p>'.internal_link('domainreg', 'Umzugsautrag (ggf. nochmals) erteilen', "domain={$dom->fqdn}").'</p>');
232)     } elseif ($dom->provider != 'terions') {
233)         output('<h4>Domain zu '.config('company_name').' umziehen</h4>
234)                 <p>'.internal_link('domainreg', 'Domain-Transfer starten', "domain={$dom->fqdn}").'</p>');
235)     }
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

236) }
237) 
Bernd Wurst Transfer-Freigabe und Kündi...

Bernd Wurst authored 6 years ago

238) // Block Domain löschen/kündigen
239) 
240) $domain_in_use = mailman_subdomains($dom->id) || mail_in_use($dom->id) || web_in_use($dom->id) || $dom->jabber == 1;
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

241) if ($is_current_customer && !$domain_in_use && ($dom->status == 'prereg' || $dom->status == 'pretransfer' || $dom->status == 'transferfailed' || $dom->status == 'external')) {
Bernd Wurst Transfer-Freigabe und Kündi...

Bernd Wurst authored 6 years ago

242)     output('<h4>Domain wieder entfernen</h4>');
243)     output('<p class="delete">'.internal_link('save', 'Die Domain '.$dom->fqdn.' entfernen', 'action=delete&domain='.$dom->id).'</p>');
Bernd Wurst show domain details to syst...

Bernd Wurst authored 4 years ago

244) } elseif ($is_current_customer && config('http.net-apikey') && $dom->provider == 'terions' && (!$dom->cancel_date || ($dom->cancel_date > date('Y-m-d')))) {
Bernd Wurst Blende Aktionen aus, wenn d...

Bernd Wurst authored 6 years ago

245)     require_once('domainapi.php');
Bernd Wurst Transfer-Freigabe und Kündi...

Bernd Wurst authored 6 years ago

246)     output('<h4>Domain kündigen</h4>');
247)     $info = api_download_domain($dom->id);
248)     if ($info['authInfo']) {
Bernd Wurst change spelling in domains/...

Bernd Wurst authored 3 years ago

249)         output('<p>Für die Domain <strong>'.$dom->fqdn.'</strong> ist der Umzug zu einem andren Anbieter möglich.</p>');
250)         output('<p>Das Auth-Info für die Domain <strong>'.$dom->fqdn.'</strong> lautet: <strong>'.$info['authInfo'].'</strong></p>');
Bernd Wurst Transfer-Freigabe und Kündi...

Bernd Wurst authored 6 years ago

251)         output('<p>Wenden Sie sich an den Support, wenn Sie den Domainumzug wieder sperren möchten.</p>');
252)     } else {
253)         output('<p>Hier können Sie die Domain zum Umzug freigeben.</p>');
254)         $form = '<p><input type="hidden" name="domain" value="'.$dom->id.'"><input type="submit" name="submit" value="Die Domain '.$dom->fqdn.' zum Umzug freigeben"></p>';
255)         output(html_form('domains_transfer', 'save', 'action=transfer', $form));
256)     }
257)     output('<p>Die aktuelle Laufzeit der Domain dauert noch bis '.$info['currentContractPeriodEnd'].'</p>');
258)     if ($info['deletionDate']) {
259)         output('<p>Es liegt aktuell eine Kündigung vor auf <strong>'.$info['deletionDate'].'</strong></p><p>Um die Kündigung aufzuheben, wenden Sie sich bitte an den Support.</p>');
260)     } else {
Bernd Wurst change spelling in domains/...

Bernd Wurst authored 3 years ago

261)         output('<p>Die Laufzeit wird automatisch um ein weiteres Jahr verlängert, sofern Sie keine Kündigung auslösen oder die Domain vor diesem Datum zu einem anderen Anbieter umziehen.</p>');
Bernd Wurst Transfer-Freigabe und Kündi...

Bernd Wurst authored 6 years ago

262)         output('<p class="delete">'.internal_link('save', 'Die Domain '.$dom->fqdn.' kündigen', 'action=cancel&domain='.$dom->id).'</p>');
263)     }
264) }
265) 
266) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

267) // Block Domain bestätigen
268) 
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

269) if ($dom->mailserver_lock == 1 && $dom->status != 'prereg') {
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

270)     if (has_own_ns($dom->domainname, $dom->tld)) {
271)         unset_mailserver_lock($dom);
272)         success_msg("Die Domain {$dom->fqdn} wurde erfolgreich bestätigt und kann nun in vollem Umfang verwendet werden.");
273)         redirect("");
274)     }
275)     output('<h3>Mailserver-Sperre aktiv</h3>
276)             <p>Bisher ist für diese Domain die Nutzung als Mail-Domain eingeschränkt, da wir noch keine Gewissheit haben, ob Sie der rechtmäßige Nutzer der Domain sind. Eine Domain, die für E-Mail-Aktivität genutzt werden soll, muss entweder die DNS-Server von '.config('company_name').' verwenden oder die Inhaberschaft muss durch einen passend gesetzten DNS-Record nachgewiesen werden. Nachfolgend werden die Möglichkeiten im Detail vorgestellt.</p>');
277)     if (!$dom->secret) {
278)         create_domain_secret($dom);
279)     }
280) 
281)     $TXT = get_txt_record('_schokokeks', $dom->domainname, $dom->tld);
282)     if ($TXT == $dom->secret) {
283)         unset_mailserver_lock($dom);
284)         success_msg("Die Domain {$dom->fqdn} wurde erfolgreich bestätigt und kann nun in vollem Umfang verwendet werden.");
Bernd Wurst Lasse die API bestimmen was...

Bernd Wurst authored 6 years ago

285)         redirect("");
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

286)     }
287) 
288)     if ($dom->dns == 1 || have_module('dns')) {
289)         output('<h4>DNS-Server von '.config('company_name').' nutzen</h4>');
290)         output('<p>Wenn Sie die lokalen DNS-Server als zuständig einrichten, wird die Domain automatisch bestätigt.</p>');
291)         if ($dom->dns == 0) {
292)             output('<p>Bisher ist der lokale DNS-Server ausgeschaltet. Besuchen Sie die DNS-Einstellungen um dies zu ändern.</p>');
293)             output('<p>'.internal_link('../dns/dns', 'DNS-Einstellungen aufrufen').'</p>');
294)         } else {
295)             $own_ns = own_ns();
296)             asort($own_ns);
297)             output('<p>Wenn Sie die DNS-Server von '.config('company_name').' nutzen möchten, dann richten Sie bei Ihrem Domain-Registrar bitte folgende DNS-Server als zuständig für diese Domain ein:</p>
298)                     <ul>');
299)             foreach ($own_ns as $ns) {
300)                 output('<li>'.$ns.'</li>');
301)             }
302)             output('</ul>');
303)             output('<p>Nachdem die Änderungen bei der Registrierungsstelle übernommen wurden (das kann mehrere Stunden dauern), reicht ein erneuter Aufruf dieser Seite um die Sperrung aufzuheben.</p>');
304)         }
305)     }
306)     output('<h4>Inhaberschaft bestätigen</h4>');
307)     output('<p>Um eine extern registrierte Domain in vollem Umfang zu nutzen, ohne die lokalen DNS-Server als zuständig einzurichten, müssen Sie die Inhaberschaft bestätigen. Erst nach diesem Schritt können Sie diese Domain bei '.config('company_name').' als Mail-Domain nutzen.</p>');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

308) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

309)     output('<p>Die Zeichenkette zur Bestätigung lautet <strong>'.$dom->secret.'</strong>.</p>');
310)     output('<p>Richten Sie bitte auf dem zuständigen DNS-Server einen DNS-Record vom Typ TXT unter dem Hostname <strong>_schokokeks.'.$dom->fqdn.'</strong> ein und hinterlegen Sie dort diese Zeichenkette als Inhalt:</p>
311)             <p><code>_schokokeks.'.$dom->fqdn.'.    IN TXT "'.$dom->secret.'"</code></p>
312)             <p>Beachten Sie, dass Aktualisierungen am DNS-Server i.d.R. mit einigen Minuten verzögerung abgerufen werden können.</p>');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

313)     #output('<p>Sie können diese entweder als DNS-Record vom Typ TXT unter dem Hostname <strong>_schokokeks.'.$dom->fqdn.'</strong> einrichten oder auf dem zuständigen Webserver eine Datei hinterlegen mit dem Code als Inhalt und der Abruf-URL <strong>http://'.$dom->fqdn.'/'.$dom->secret.'.txt</strong></p>');