| | |
| | | $domain_select .= " selected"; |
| | | $selected_domain = $domain['domain']; |
| | | } |
| | | $domain_select .= ">" . $domain['domain'] . "</option>\r\n"; |
| | | $domain_select .= ">" . $app->functions->idn_decode($domain['domain']) . "</option>\r\n"; |
| | | } |
| | | } |
| | | else { |
| | |
| | | $this->dataRecord["ipv6_address"] = $parent_domain["ipv6_address"]; |
| | | $this->dataRecord["client_group_id"] = $parent_domain["client_group_id"]; |
| | | $this->dataRecord["vhost_type"] = 'name'; |
| | | $this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"]; |
| | | |
| | | $this->parent_domain_record = $parent_domain; |
| | | |
| | |
| | | |
| | | $sql = "SELECT domain_id, domain FROM domain WHERE domain_id = " . $app->functions->intval($this->dataRecord['sel_domain']); |
| | | if ($_SESSION["s"]["user"]["typ"] != 'admin') { |
| | | $sql .= "AND sys_groupid =" . $client_group_id; |
| | | $sql .= " AND sys_groupid =" . $client_group_id; |
| | | } |
| | | $domain_check = $app->db->queryOneRecord($sql); |
| | | if(!$domain_check) { |
| | |
| | | if($check && $check['cnt'] > 0) { |
| | | $app->tform->errorMessage .= $app->tform->lng("web_folder_unique_txt")."<br>"; |
| | | } |
| | | } else { |
| | | $this->dataRecord["domain"] = $this->dataRecord["domain"].'.'.$parent_domain["domain"]; |
| | | } |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != 'admin') { |