Bernd Wurst commited on 2018-02-17 17:12:45
              Zeige 1 geänderte Dateien mit 7 Einfügungen und 1 Löschungen.
            
| ... | ... | 
                      @@ -211,11 +211,17 @@ $form .= "  | 
                  
| 211 | 211 | 
                        </div>";  | 
                    
| 212 | 212 | 
                         | 
                    
| 213 | 213 | 
                        $certs = user_certs();  | 
                    
| 214 | 
                        - $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen', -1 => 'Automatische Zertifikatsverwaltung mit Let\'s Encrypt');  | 
                    |
| 214 | 
                        + $certselect = array();  | 
                    |
| 215 | 
                        + $certselect[0] = 'kein Zertifikat / System-Standard benutzen';  | 
                    |
| 216 | 
                        +  if ($vhost_type != 'dav' && $vhost_type != 'svn') {
                       | 
                    |
| 217 | 
                        + $certselect[-1] = 'Automatische Zertifikatsverwaltung mit Let\'s Encrypt';  | 
                    |
| 218 | 
                        + }  | 
                    |
| 215 | 219 | 
                        foreach ($certs as $c)  | 
                    
| 216 | 220 | 
                           {
                       | 
                    
| 221 | 
                        +    if (! cert_is_letsencrypt($c['id'])) {
                       | 
                    |
| 217 | 222 | 
                        $certselect[$c['id']] = $c['subject'];  | 
                    
| 218 | 223 | 
                        }  | 
                    
| 224 | 
                        + }  | 
                    |
| 219 | 225 | 
                           if (strstr($vhost['options'], 'letsencrypt')) {
                       | 
                    
| 220 | 226 | 
                        $vhost['certid'] = -1;  | 
                    
| 221 | 227 | 
                        }  | 
                    
| 222 | 228 |