Skip to content

Commit 350a863

Browse files
author
Till Brehm
committed
Merge branch 'work-3.0.5.4p3' of git.ispconfig.org:pixcept/ispconfig3-mods into work-3.0.5.4p3
2 parents cb12210 + 90923d2 commit 350a863

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

interface/web/js/scrigo.js.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
session_start();
32
include '../../lib/config.inc.php';
43
header('Content-Type: text/javascript; charset=utf-8'); // the config file sets the content type header so we have to override it here!
54
require_once '../../lib/app.inc.php';

interface/web/sites/web_domain_edit.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,15 @@ function onShowEnd() {
406406
}
407407

408408
$ssl_domain_select = '';
409-
$tmp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ".$this->id);
410-
$ssl_domains = array($tmp["domain"], 'www.'.$tmp["domain"], '*.'.$tmp["domain"]);
409+
$ssl_domains = array();
410+
$tmpd = $app->db->queryAllRecords("SELECT domain, type FROM web_domain WHERE domain_id = ".$this->id." OR parent_domain_id = ".$this->id);
411+
foreach($tmpd as $tmp) {
412+
if($tmp['type'] == 'subdomain' || $tmp['type'] == 'vhostsubdomain') {
413+
$ssl_domains[] = $tmp["domain"];
414+
} else {
415+
$ssl_domains = array_merge($ssl_domains, array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]));
416+
}
417+
}
411418
if(is_array($ssl_domains)) {
412419
foreach( $ssl_domains as $ssl_domain) {
413420
$selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':'';

0 commit comments

Comments
 (0)