Florian Schaal
2015-08-16 772dad9fcee423a6f0ca3cbd93ddfc3c56aaec4c
interface/lib/plugins/vm_openvz_plugin.inc.php
@@ -132,9 +132,11 @@
      $sql .= "io_priority = ?, ";
      $sql .= "nameserver = ?, ";
      $sql .= "create_dns = ?, ";
      $sql .= "capability = ? ";
      $sql .= "capability = ?, ";
      $sql .= "features = ?, ";
      $sql .= "iptables = ? ";
      $sql .= "WHERE vm_id = ?";
      $app->db->query($sql, $tpl['diskspace'], $tpl['ram'], $tpl['ram_burst'], $tpl['cpu_units'], $tpl['cpu_num'], $tpl['cpu_limit'], $tpl['io_priority'], $tpl['nameserver'], $tpl['create_dns'], $tpl['capability'], $this->id);
      $app->db->query($sql, $tpl['diskspace'], $tpl['ram'], $tpl['ram_burst'], $tpl['cpu_units'], $tpl['cpu_num'], $tpl['cpu_limit'], $tpl['io_priority'], $tpl['nameserver'], $tpl['create_dns'], $tpl['capability'], $tpl['features'], $tpl['iptables'], $this->id);
   }
@@ -193,6 +195,8 @@
      $tpl->setVar('ip_address', $vm['ip_address']);
      $tpl->setVar('nameserver', $vm['nameserver']);
      $tpl->setVar('capability', $vm['capability']);
      $tpl->setVar('features', $vm['features']);
      $tpl->setVar('iptables', $vm['iptables']);
      $tmp = $app->db->queryOneRecord("SELECT template_file FROM openvz_ostemplate WHERE ostemplate_id = ?", $app->functions->intval($vm['ostemplate_id']));
      $tpl->setVar('ostemplate', $tmp['template_file']);