bernd commited on 2011-02-02 08:56:34
Zeige 2 geänderte Dateien mit 6 Einfügungen und 6 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1916 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -157,14 +157,14 @@ if ($vhost['php'] == 'fastcgi') |
| 157 | 157 |
</div>"; |
| 158 | 158 |
} |
| 159 | 159 |
|
| 160 |
-$have_cgi = ($vhost['cgi'] == 1 ? ' checked="checked" ' : ''); |
|
| 160 |
+$safemode = ($vhost['cgi'] == 1 ? '' : ' checked="checked" '); |
|
| 161 | 161 |
|
| 162 | 162 |
$form .= " |
| 163 | 163 |
<div class=\"vhostoptions\" id=\"options_scriptlang\" ".($vhost_type=='regular' ? '' : 'style="display: none;"')."> |
| 164 | 164 |
".$phpoptions." |
| 165 |
- <h5>CGI</h5> |
|
| 165 |
+ <h5>Abgesicherter Modus</h5> |
|
| 166 | 166 |
<div style=\"margin-left: 2em;\"> |
| 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>
|
|
| 167 |
+ <input type=\"checkbox\" name=\"safemode\" id=\"safemode\" value=\"yes\" {$safemode}/> <label for=\"safemode\">Abgesicherter Modus</label><br /><em>(Deaktiviert CGI, mod_rewrite und einige weitere Funktionen mit denen die Website auf andere Orte des Home-Verzeichnisses zugreifen könnte.)</em>
|
|
| 168 | 168 |
</div> |
| 169 | 169 |
</div> |
| 170 | 170 |
"; |
| ... | ... |
@@ -69,10 +69,10 @@ if ($_GET['action'] == 'edit') |
| 69 | 69 |
/* Wenn etwas anderes kommt, ist das "kein PHP". So einfach ist das. */ |
| 70 | 70 |
} |
| 71 | 71 |
} |
| 72 |
- $cgi = 0; |
|
| 73 |
- if (isset($_POST['cgi']) && isset($_POST['cgi']) && $_POST['cgi'] == 'yes') |
|
| 74 |
- {
|
|
| 75 | 72 |
$cgi = 1; |
| 73 |
+ if (isset($_POST['safemode']) && $_POST['safemode'] == 'yes') |
|
| 74 |
+ {
|
|
| 75 |
+ $cgi = 0; |
|
| 76 | 76 |
} |
| 77 | 77 |
|
| 78 | 78 |
if (isset($_POST['suexec_user'])) |
| 79 | 79 |