Marius Cramer
2015-05-07 f6e42fc631acad20006ad79f63ccecc0a86ad0eb
Merge branch 'master' into 'master'

Prevent empty hostname during install

See merge request !184
56 files modified
109 ■■■■ changed files
install/install.php 10 ●●●●● patch | view | raw | blame | history
install/sql/incremental/upd_dev_collection.sql 2 ●●●●● patch | view | raw | blame | history
install/sql/ispconfig3.sql 4 ●●● patch | view | raw | blame | history
interface/lib/plugins/vm_openvz_plugin.inc.php 6 ●●●●● patch | view | raw | blame | history
interface/web/admin/form/server_config.tform.php 14 ●●●●● patch | view | raw | blame | history
interface/web/vm/form/openvz_template.tform.php 8 ●●●●● patch | view | raw | blame | history
interface/web/vm/form/openvz_vm.tform.php 8 ●●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ar_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ar_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/bg_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/bg_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/br_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/br_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/cz_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/cz_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/de_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/de_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/el_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/el_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/en_openvz_template.lng 2 ●●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/en_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/es_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/es_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/fi_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/fi_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/fr_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/fr_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/hr_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/hr_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/hu_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/hu_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/id_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/id_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/it_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/it_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ja_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ja_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/nl_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/nl_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/pl_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/pl_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/pt_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/pt_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ro_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ro_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ru_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/ru_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/se_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/se_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/sk_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/sk_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/tr_openvz_template.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/lib/lang/tr_openvz_vm.lng 1 ●●●● patch | view | raw | blame | history
interface/web/vm/templates/openvz.conf.tpl 1 ●●●● patch | view | raw | blame | history
interface/web/vm/templates/openvz_template_advanced_edit.htm 5 ●●●● patch | view | raw | blame | history
interface/web/vm/templates/openvz_vm_advanced_edit.htm 4 ●●●● patch | view | raw | blame | history
install/install.php
@@ -171,8 +171,16 @@
//** Get the hostname
$tmp_out = array();
exec('hostname -f', $tmp_out);
$conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', @$tmp_out[0],'hostname');
$conf['hostname'] = @$tmp_out[0];
unset($tmp_out);
//** Prevent empty hostname
$check = false;
do {
    $conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $conf['hostname'], 'hostname');
    $conf['hostname']=trim($conf['hostname']);
    $check = @($conf['hostname'] !== '')?true:false;
    if(!$check) swriteln('Hostname may not be empty.');
} while (!$check);
// Check if the mysql functions are loaded in PHP
if(!function_exists('mysql_connect')) die('No PHP MySQL functions available. Please ensure that the PHP MySQL module is loaded.');
install/sql/incremental/upd_dev_collection.sql
@@ -145,3 +145,5 @@
ALTER TABLE openvz_template ADD COLUMN `features` varchar(255) DEFAULT NULL AFTER `capability`;
ALTER TABLE openvz_vm ADD COLUMN `features` TEXT DEFAULT NULL AFTER `capability`;
ALTER TABLE openvz_template ADD COLUMN `iptables` varchar(255) DEFAULT NULL AFTER `features`;
ALTER TABLE openvz_vm ADD COLUMN `iptables` TEXT DEFAULT NULL AFTER `features`;
install/sql/ispconfig3.sql
@@ -1089,6 +1089,7 @@
  `create_dns` varchar(1) NOT NULL DEFAULT 'n',
  `capability` varchar(255) DEFAULT NULL,
  `features` varchar(255) DEFAULT NULL,
  `iptables` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`template_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;
@@ -1096,7 +1097,7 @@
-- Dumping data for table `openvz_template`
--
INSERT INTO `openvz_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `template_name`, `diskspace`, `traffic`, `bandwidth`, `ram`, `ram_burst`, `cpu_units`, `cpu_num`, `cpu_limit`, `io_priority`, `active`, `description`, `numproc`, `numtcpsock`, `numothersock`, `vmguarpages`, `kmemsize`, `tcpsndbuf`, `tcprcvbuf`, `othersockbuf`, `dgramrcvbuf`, `oomguarpages`, `privvmpages`, `lockedpages`, `shmpages`, `physpages`, `numfile`, `avnumproc`, `numflock`, `numpty`, `numsiginfo`, `dcachesize`, `numiptent`, `swappages`, `hostname`, `nameserver`, `create_dns`, `capability`, `features`) VALUES(1, 1, 1, 'riud', 'riud', '', 'small', 10, -1, -1, 256, 512, 1000, 4, 400, 4, 'y', '', '999999:999999', '7999992:7999992', '7999992:7999992', '65536:65536', '2147483646:2147483646', '214748160:396774400', '214748160:396774400', '214748160:396774400', '214748160:396774400', '65536:65536', '131072:131072', '999999:999999', '65536:65536', '0:2147483647', '23999976:23999976', '180:180', '999999:999999', '500000:500000', '999999:999999', '2147483646:2147483646', '999999:999999', '256000:256000', 'v{VEID}.test.tld', '8.8.8.8 8.8.4.4', 'n', '', '');
INSERT INTO `openvz_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `template_name`, `diskspace`, `traffic`, `bandwidth`, `ram`, `ram_burst`, `cpu_units`, `cpu_num`, `cpu_limit`, `io_priority`, `active`, `description`, `numproc`, `numtcpsock`, `numothersock`, `vmguarpages`, `kmemsize`, `tcpsndbuf`, `tcprcvbuf`, `othersockbuf`, `dgramrcvbuf`, `oomguarpages`, `privvmpages`, `lockedpages`, `shmpages`, `physpages`, `numfile`, `avnumproc`, `numflock`, `numpty`, `numsiginfo`, `dcachesize`, `numiptent`, `swappages`, `hostname`, `nameserver`, `create_dns`, `capability`, `features`, `iptables`) VALUES(1, 1, 1, 'riud', 'riud', '', 'small', 10, -1, -1, 256, 512, 1000, 4, 400, 4, 'y', '', '999999:999999', '7999992:7999992', '7999992:7999992', '65536:65536', '2147483646:2147483646', '214748160:396774400', '214748160:396774400', '214748160:396774400', '214748160:396774400', '65536:65536', '131072:131072', '999999:999999', '65536:65536', '0:2147483647', '23999976:23999976', '180:180', '999999:999999', '500000:500000', '999999:999999', '2147483646:2147483646', '999999:999999', '256000:256000', 'v{VEID}.test.tld', '8.8.8.8 8.8.4.4', 'n', '', '', '');
-- --------------------------------------------------------
@@ -1153,6 +1154,7 @@
  `create_dns` varchar(1) NOT NULL DEFAULT 'n',
  `capability` text,
  `features` text,
  `iptabless` text,
  `config` mediumtext,
  PRIMARY KEY (`vm_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;
interface/lib/plugins/vm_openvz_plugin.inc.php
@@ -133,9 +133,10 @@
        $sql .= "nameserver = ?, ";
        $sql .= "create_dns = ?, ";
        $sql .= "capability = ?, ";
        $sql .= "features = ? ";
        $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'], $tpl['features'], $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);
    }
@@ -195,6 +196,7 @@
        $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']);
interface/web/admin/form/server_config.tform.php
@@ -616,14 +616,12 @@
            'width' => '40',
            'maxlength' => '255'
        ),
        /*
'vhost_rewrite_v6' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n',1 => 'y')
),
*/
        'vhost_rewrite_v6' => array (
            'datatype' => 'VARCHAR',
            'formtype' => 'CHECKBOX',
            'default' => 'n',
            'value' => array(0 => 'n',1 => 'y')
        ),
        'vhost_conf_dir' => array(
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
interface/web/vm/form/openvz_template.tform.php
@@ -467,6 +467,14 @@
            'width'  => '30',
            'maxlength' => '255'
        ),
        'iptables' => array (
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'default' => '',
            'value'  => '',
            'width'  => '30',
            'maxlength' => '255'
        ),
        //#################################
        // ENDE Datatable fields
        //#################################
interface/web/vm/form/openvz_vm.tform.php
@@ -314,6 +314,14 @@
                'width'  => '30',
                'maxlength' => '255'
            ),
            'iptables' => array (
                'datatype' => 'VARCHAR',
                'formtype' => 'TEXT',
                'default' => '',
                'value'  => '',
                'width'  => '30',
                'maxlength' => '255'
            ),
            //#################################
            // ENDE Datatable fields
            //#################################
interface/web/vm/lib/lang/ar_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ar_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/bg_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/bg_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/br_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/br_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/cz_openvz_template.lng
@@ -91,5 +91,6 @@
$wb['Template'] = 'Šablona';
$wb['Advanced'] = 'Pokročilý';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/cz_openvz_vm.lng
@@ -38,5 +38,6 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Pokročilý';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/de_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Erweitert';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/de_openvz_vm.lng
@@ -37,4 +37,5 @@
$wb['template_nameserver_error_empty'] = 'Nameserver ist leer.';
$wb['Virtual server'] = 'Virtueller Server';
$wb['Advanced'] = 'Erweitert';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/el_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/el_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Εικονικός server';
$wb['Advanced'] = 'Για προχωρημένους';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/en_openvz_template.lng
@@ -91,4 +91,6 @@
$wb["Template"] = 'Template';
$wb["Advanced"] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb['features_txt'] = 'iptables';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/en_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb["Virtual server"] = 'Virtual server';
$wb["Advanced"] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/es_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Plantilla';
$wb['Advanced'] = 'Avanzado';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/es_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Servidor virtual';
$wb['Advanced'] = 'Avanzado';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/fi_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/fi_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/fr_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Modèle';
$wb['Advanced'] = 'Avancé';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/fr_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Serveur virtuel';
$wb['Advanced'] = 'Avancé';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/hr_openvz_template.lng
@@ -91,6 +91,7 @@
$wb['Template'] = 'Predložak';
$wb['Advanced'] = 'Napredno';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/hr_openvz_vm.lng
@@ -38,6 +38,7 @@
$wb['Virtual server'] = 'Virtualni server';
$wb['Advanced'] = 'Napredno';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/hu_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/hu_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/id_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/id_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/it_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/it_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ja_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ja_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/nl_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/nl_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/pl_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/pl_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/pt_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/pt_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ro_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ro_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ru_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/ru_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/se_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/se_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/sk_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/sk_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/tr_openvz_template.lng
@@ -91,4 +91,5 @@
$wb['Template'] = 'Template';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/lib/lang/tr_openvz_vm.lng
@@ -38,4 +38,5 @@
$wb['Virtual server'] = 'Virtual server';
$wb['Advanced'] = 'Advanced';
$wb['features_txt'] = 'Features';
$wb[iptables_txt] = iptables;
?>
interface/web/vm/templates/openvz.conf.tpl
@@ -49,3 +49,4 @@
CAPABILITY="{tmpl_var name='capability'}"
FEATURES="{tmpl_var name='features'}"
IPTABLES="{tmpl_var name='iptables'}"
interface/web/vm/templates/openvz_template_advanced_edit.htm
@@ -75,8 +75,11 @@
                <label for="capability" class="col-sm-3 control-label">{tmpl_var name='capability_txt'}</label>
                <div class="col-sm-9"><input type="text" name="capability" id="capability" value="{tmpl_var name='capability'}" class="form-control" /></div></div>
            <div class="form-group">
                <label for="capability" class="col-sm-3 control-label">{tmpl_var name='features_txt'}</label>
                <label for="features" class="col-sm-3 control-label">{tmpl_var name='features_txt'}</label>
                <div class="col-sm-9"><input type="text" name="features" id="features" value="{tmpl_var name='features'}" class="form-control" /></div></div>
            <div class="form-group">
                <label for="iptables" class="col-sm-3 control-label">{tmpl_var name='iptables_txt'}</label>
                <div class="col-sm-9"><input type="text" name="iptables" id="iptables" value="{tmpl_var name='iptables'}" class="form-control" /></div></div>
        
            
        <input type="hidden" name="id" value="{tmpl_var name='id'}">
interface/web/vm/templates/openvz_vm_advanced_edit.htm
@@ -54,6 +54,10 @@
                <label for="features" class="col-sm-3 control-label">{tmpl_var name='features_txt'}</label>
                <div class="col-sm-9"><input type="text" name="features" id="features" value="{tmpl_var name='features'}" class="form-control" />
            </div></div>
            <div class="form-group">
                <label for="iptables" class="col-sm-3 control-label">{tmpl_var name='iptables_txt'}</label>
                <div class="col-sm-9"><input type="text" name="iptables" id="iptables" value="{tmpl_var name='iptables'}" class="form-control" />
            </div></div>
        
            
        <input type="hidden" name="id" value="{tmpl_var name='id'}">