Till Brehm
2014-01-07 c3d8a84506001e2cb227e5f652717a59fa4ced74
interface/web/sites/web_domain_edit.php
@@ -529,8 +529,8 @@
         // only generate quota and traffic warnings if value has changed
         if($this->id > 0) {
            $old_web_values = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$app->functions->intval($this->id));
         } else {
            $old_web_values = $_POST;
         }  else {
            $old_web_values = array();
         }
         //* Check the website quota of the client
@@ -775,8 +775,10 @@
      $php_open_basedir = str_replace("[website_path]", $document_root, $web_config["php_open_basedir"]);
      $php_open_basedir = $app->db->quote(str_replace("[website_domain]", $web_rec['domain'], $php_open_basedir));
      $htaccess_allow_override = $app->db->quote($web_config["htaccess_allow_override"]);
      $added_date = date($app->lng('conf_format_dateshort'));
      $added_by = $app->db->quote($_SESSION['s']['user']['username']);
      $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir'  WHERE domain_id = ".$this->id;
      $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir', added_date = '$added_date', added_by = '$added_by'  WHERE domain_id = ".$this->id;
      $app->db->query($sql);
   }