bernd commited on 2010-11-15 15:13:46
              Zeige 1 geänderte Dateien mit 19 Einfügungen und 7 Löschungen.
            
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1843 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... | 
                      @@ -135,21 +135,33 @@ $form .= "<br /><input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" valu  | 
                  
| 135 | 135 | 
                        </div>  | 
                    
| 136 | 136 | 
                        ";  | 
                    
| 137 | 137 | 
                         | 
                    
| 138 | 
                        -$options = array("none" => 'ausgeschaltet', "php53" => 'PHP 5.3' , "fastcgi" => "Kompatibilitätsmodus: PHP 5.2");
                       | 
                    |
| 139 | 138 | 
                         | 
                    
| 140 | 
                        -if ($vhost['php'] == 'mod_php')  | 
                    |
| 139 | 
                        +$have_php = ($vhost['php'] == 'php53' ? ' checked="checked" ' : '');  | 
                    |
| 140 | 
                        +  | 
                    |
| 141 | 
                        +$phpoptions = "<h5>PHP</h5>  | 
                    |
| 142 | 
                        + <div style=\"margin-left: 2em;\">  | 
                    |
| 143 | 
                        +    <input type=\"checkbox\" name=\"php\" id=\"php\" value=\"php53\" {$have_php}/> <label for=\"php\">PHP einschalten</label>
                       | 
                    |
| 144 | 
                        + </div>  | 
                    |
| 145 | 
                        +";  | 
                    |
| 146 | 
                        +  | 
                    |
| 147 | 
                        +/*  | 
                    |
| 148 | 
                        + * Zeige ein Auswahlmenü, wenn bisher PHP 5.2 eingestellt war!  | 
                    |
| 149 | 
                        + */  | 
                    |
| 150 | 
                        +if ($vhost['php'] == 'fastcgi')  | 
                    |
| 141 | 151 | 
                         {
                       | 
                    
| 142 | 
                        - $options['mod_php'] = 'PHP als Apache-Modul (veraltet)';  | 
                    |
| 152 | 
                        +  $options = array("none" => 'ausgeschaltet', "php53" => 'PHP 5.3' , "fastcgi" => "Kompatibilitätsmodus: PHP 5.2");
                       | 
                    |
| 153 | 
                        + $phpoptions = "  | 
                    |
| 154 | 
                        + <h5>PHP</h5>  | 
                    |
| 155 | 
                        + <div style=\"margin-left: 2em;\">  | 
                    |
| 156 | 
                        +    ".html_select("php", $options, $vhost['php'])."
                       | 
                    |
| 157 | 
                        + </div>";  | 
                    |
| 143 | 158 | 
                        }  | 
                    
| 144 | 159 | 
                         | 
                    
| 145 | 160 | 
                        $have_cgi = ($vhost['cgi'] == 1 ? ' checked="checked" ' : '');  | 
                    
| 146 | 161 | 
                         | 
                    
| 147 | 162 | 
                        $form .= "  | 
                    
| 148 | 163 | 
                        <div class=\"vhostoptions\" id=\"options_scriptlang\" ".($vhost_type=='regular' ? '' : 'style="display: none;"').">  | 
                    
| 149 | 
                        - <h5>PHP</h5>  | 
                    |
| 150 | 
                        - <div style=\"margin-left: 2em;\">  | 
                    |
| 151 | 
                        -    ".html_select("php", $options, $vhost['php'])."
                       | 
                    |
| 152 | 
                        - </div>  | 
                    |
| 164 | 
                        + ".$phpoptions."  | 
                    |
| 153 | 165 | 
                        <h5>CGI</h5>  | 
                    
| 154 | 166 | 
                        <div style=\"margin-left: 2em;\">  | 
                    
| 155 | 167 | 
                             <input type=\"checkbox\" name=\"cgi\" id=\"cgi\" value=\"yes\" {$have_cgi}/> <label for=\"cgi\">Erlaube CGI-Nutzung</label><br /><em>(Wenn Sie dies ausschalten, werden einige andere Dinge auch nicht mehr erlaubt.)</em>
                       | 
                    
| 156 | 168 |