Commit d96e29ee authored by Marius Cramer's avatar Marius Cramer

- added alias- and subdomains to ssl domain select

parent 90b13a17
...@@ -406,8 +406,15 @@ class page_action extends tform_actions { ...@@ -406,8 +406,15 @@ class page_action extends tform_actions {
} }
$ssl_domain_select = ''; $ssl_domain_select = '';
$tmp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ".$this->id); $ssl_domains = array();
$ssl_domains = array($tmp["domain"], 'www.'.$tmp["domain"], '*.'.$tmp["domain"]); $tmpd = $app->db->queryAllRecords("SELECT domain, type FROM web_domain WHERE domain_id = ".$this->id." OR parent_domain_id = ".$this->id);
foreach($tmpd as $tmp) {
if($tmp['type'] == 'subdomain' || $tmp['type'] == 'vhostsubdomain']) {
$ssl_domains[] = $tmp["domain"];
} else {
$ssl_domains = array_merge($ssl_domains, array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]));
}
}
if(is_array($ssl_domains)) { if(is_array($ssl_domains)) {
foreach( $ssl_domains as $ssl_domain) { foreach( $ssl_domains as $ssl_domain) {
$selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':''; $selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':'';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment