Bernd Wurst commited on 2018-02-20 11:35:39
Zeige 1 geänderte Dateien mit 15 Einfügungen und 2 Löschungen.
... | ... |
@@ -109,6 +109,19 @@ $section='domains_domains'; |
109 | 109 |
output('<h4>Inhaber der Domain</h4>'); |
110 | 110 |
output('<p>Legen Sie hier einen neuen Inhaber für diese Domain fest.</p>'); |
111 | 111 |
|
112 |
+if ($_SESSION['domains_domainreg_owner'] === NULL) { |
|
113 |
+ $kundenkontakte = get_kundenkontakte(); |
|
114 |
+ $customer = get_contact($kundenkontakte['kunde']); |
|
115 |
+ if (possible_domainholder($customer)) { |
|
116 |
+ $_SESSION['domains_domainreg_owner'] = $kundenkontakte['kunde']; |
|
117 |
+ } else { |
|
118 |
+ $list = array_keys(possible_domainholders()); |
|
119 |
+ if (count($list) > 0) { |
|
120 |
+ $_SESSION['domains_domainreg_owner'] = $list[0]; |
|
121 |
+ } |
|
122 |
+ } |
|
123 |
+} |
|
124 |
+ |
|
112 | 125 |
if ($_SESSION['domains_domainreg_detach'] == 0) { |
113 | 126 |
$_SESSION['domains_domainreg_admin_c'] = $_SESSION['domains_domainreg_owner']; |
114 | 127 |
} |
... | ... |
@@ -130,11 +143,11 @@ if ($_SESSION['domains_domainreg_owner']) { |
130 | 143 |
} else { |
131 | 144 |
output('<p><strong>Inhaber und Verwalter:</strong></p><p><em>Bisher kein Inhaber ausgewählt</em>'); |
132 | 145 |
} |
133 |
-addnew('choose', 'Neuen Inhaber wählen', "type=owner&backto=domainreg"); |
|
146 |
+addnew('choose', 'Inhaber wählen', "type=owner&backto=domainreg"); |
|
134 | 147 |
if ($_SESSION['domains_domainreg_admin_c'] != $_SESSION['domains_domainreg_owner']) { |
135 | 148 |
$admin_c = get_contact($_SESSION['domains_domainreg_admin_c']); |
136 | 149 |
output('<p><strong>Verwalter:</strong></p>'.display_contact($admin_c, '')); |
137 |
- addnew('choose', 'Neuen Verwalter wählen', "type=admin_c&backto=domainreg"); |
|
150 |
+ addnew('choose', 'Anderen Verwalter wählen', "type=admin_c&backto=domainreg"); |
|
138 | 151 |
output('<p class="delete">'.internal_link('', 'Keinen separaten Verwalter festlegen', 'admin_c=none').'</p>'); |
139 | 152 |
} else { |
140 | 153 |
addnew('choose', 'Einen separaten Verwalter wählen', "type=admin_c&detach=1&backto=domainreg"); |
141 | 154 |