Browse code

nodocroot für svn-hosts

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@947 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on12/02/2008 00:40:52
Showing1 changed files
... ...
@@ -201,6 +201,10 @@ function save_vhost($vhost)
201 201
   $ssl = maybe_null($vhost['ssl']);
202 202
   $logtype = maybe_null($vhost['logtype']);
203 203
   $errorlog = (int) $vhost['errorlog'];
204
+  if (is_svn) {
205
+    if (! $vhost['options']) $vhost['options']='nodocroot';
206
+    else $vhost['options']+=",nodocroot";
207
+  }
204 208
   $options = mysql_real_escape_string( $vhost['options'] );
205 209
 
206 210
   if ($id != 0) {