tbrehm
2009-02-14 a89eb2fde33d052a815767f17111a05a2b763e24
interface/web/sites/web_domain_edit.php
@@ -330,15 +330,15 @@
         $client_id = intval($client["client_id"]);
      }
      
      /*
      // Set the values for document_root, system_user and system_group
      $system_user = 'web'.$this->id;
      $system_group = 'client'.$client_id;
      $document_root = str_replace("[client_id]",$client_id,$document_root);
      if($_SESSION["s"]["user"]["typ"] == 'admin' &&  isset($this->dataRecord["client_group_id"]) && $this->dataRecord["client_group_id"] != $this->oldDataRecord["client_group_id"]) {
         // Set the values for document_root, system_user and system_group
         $system_user = 'web'.$this->id;
         $system_group = 'client'.$client_id;
         $document_root = str_replace("[client_id]",$client_id,$document_root);
      
      $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
      $app->db->query($sql);
      */
         $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root' WHERE domain_id = ".$this->id;
         $app->db->query($sql);
      }
      
   }