| | |
| | | |
| | | $ssl_domain_select = ''; |
| | | $tmp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ".$this->id); |
| | | $ssl_domains = array($tmp["domain"],'www.'.$tmp["domain"]); |
| | | $ssl_domains = array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]); |
| | | if(is_array($ssl_domains)) { |
| | | foreach( $ssl_domains as $ssl_domain) { |
| | | $selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':''; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | // nginx: if redirect type is proxy and redirect path is no URL, display error |
| | | //if($this->dataRecord["redirect_type"] == 'proxy' && substr($this->dataRecord['redirect_path'],0,1) == '/'){ |
| | | // $app->tform->errorMessage .= $app->tform->lng("error_proxy_requires_url")."<br />"; |
| | | //} |
| | | |
| | | // Set a few fixed values |
| | | $this->dataRecord["parent_domain_id"] = 0; |
| | |
| | | if($client['limit_perl'] != 'y') $this->dataRecord['perl'] = '-'; |
| | | if($client['limit_ruby'] != 'y') $this->dataRecord['ruby'] = '-'; |
| | | if($client['limit_python'] != 'y') $this->dataRecord['python'] = '-'; |
| | | if($client['force_suexec'] != 'n') $this->dataRecord['suexec'] = '-'; |
| | | if($client['force_suexec'] == 'y') $this->dataRecord['suexec'] = 'y'; |
| | | if($client['limit_hterror'] != 'y') $this->dataRecord['errordocs'] = '-'; |
| | | if($client['limit_wildcard'] != 'y' && $this->dataRecord['subdomain'] == '*') $this->dataRecord['subdomain'] = '-'; |
| | | if($client['limit_ssl'] != 'y') $this->dataRecord['ssl'] = '-'; |