bernd commited on 2009-11-21 11:36:01
Zeige 3 geänderte Dateien mit 12 Einfügungen und 18 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1509 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -132,33 +132,21 @@ $form .= "<br /><input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" valu |
| 132 | 132 |
</div> |
| 133 | 133 |
"; |
| 134 | 134 |
|
| 135 |
+$options = array("none" => 'ausgeschaltet', "fastcgi" => "PHP 5.2", "php53" => 'Testbetrieb: PHP 5.3');
|
|
| 136 |
+ |
|
| 135 | 137 |
if ($vhost['php'] == 'mod_php') |
| 136 | 138 |
{
|
| 137 |
-$form .= " |
|
| 138 |
-<div class=\"vhostoptions\" id=\"options_scriptlang\" ".($vhost_type=='regular' ? '' : 'style="display: none;"')."> |
|
| 139 |
- <h5>PHP</h5> |
|
| 140 |
- <div style=\"margin-left: 2em;\"> |
|
| 141 |
- <select name=\"php\" id=\"php\"> |
|
| 142 |
- <option value=\"none\" ".($vhost['php'] == NULL ? 'selected="selected"' : '')." >ausgeschaltet</option> |
|
| 143 |
- <option value=\"mod_php\" ".($vhost['php'] == 'mod_php' ? 'selected="selected"' : '')." >Eingeschaltet als Apache-Modul (veraltet)</option> |
|
| 144 |
- <option value=\"fastcgi\" ".($vhost['php'] == 'fastcgi' ? 'selected="selected"' : '')." >Eingeschaltet</option> |
|
| 145 |
- <!-- <option value=\"rubyonrails\" ".($vhost['php'] == 'rubyonrails' ? 'selected="selected"' : '')." >Ruby-on-Rails</option> --> |
|
| 146 |
- </select> |
|
| 147 |
- </div> |
|
| 148 |
-</div> |
|
| 149 |
-"; |
|
| 139 |
+ $options['mod_php'] = 'PHP als Apache-Modul (veraltet)'; |
|
| 150 | 140 |
} |
| 151 |
-else |
|
| 152 |
-{
|
|
| 141 |
+ |
|
| 153 | 142 |
$form .= " |
| 154 | 143 |
<div class=\"vhostoptions\" id=\"options_scriptlang\" ".($vhost_type=='regular' ? '' : 'style="display: none;"')."> |
| 155 | 144 |
<h5>PHP</h5> |
| 156 | 145 |
<div style=\"margin-left: 2em;\"> |
| 157 |
- <input type=\"checkbox\" name=\"php\" id=\"php\" value=\"fastcgi\" ".($vhost['php'] == 'fastcgi' ? 'checked="checked" ' : '')." /> <label for=\"php\">PHP aktivieren</label> |
|
| 146 |
+ ".html_select("php", $options, $vhost['php'])."
|
|
| 158 | 147 |
</div> |
| 159 | 148 |
</div> |
| 160 | 149 |
"; |
| 161 |
-} |
|
| 162 | 150 |
|
| 163 | 151 |
$form .= " |
| 164 | 152 |
<div class=\"vhostoptions\" id=\"options_webapp\" ".($vhost_type=='webapp' ? '' : 'style="display: none;"')."> |
| ... | ... |
@@ -93,7 +93,10 @@ if (count($vhosts) > 0) |
| 93 | 93 |
$php = icon_warning('[mod_php] Veraltet, bitte umstellen!').' Apache-Modul';
|
| 94 | 94 |
break; |
| 95 | 95 |
case 'fastcgi': |
| 96 |
- $php = icon_enabled('PHP eingeschaltet');
|
|
| 96 |
+ $php = icon_enabled('PHP eingeschaltet (PHP 5.2)');
|
|
| 97 |
+ break; |
|
| 98 |
+ case 'php53': |
|
| 99 |
+ $php = icon_enabled('PHP eingeschaltet (PHP 5.3)');
|
|
| 97 | 100 |
break; |
| 98 | 101 |
} |
| 99 | 102 |
output("<td>{$php}</td>");
|
| 100 | 103 |