diff --git a/install/sql/incremental/upd_dev_collection.sql b/install/sql/incremental/upd_dev_collection.sql index bbf80e6952342b29aa69537a15eb369b6b74289f..b68fa90fc511522fbc65beebcb0598252f842832 100644 --- a/install/sql/incremental/upd_dev_collection.sql +++ b/install/sql/incremental/upd_dev_collection.sql @@ -168,3 +168,9 @@ CREATE TABLE `server_ip_map` ( ALTER TABLE `web_domain` ADD COLUMN `rewrite_to_https` ENUM('y','n') NOT NULL DEFAULT 'n' AFTER `seo_redirect`; ALTER TABLE openvz_ip ADD COLUMN `additional` VARCHAR(255) NOT NULL DEFAULT 'n'; + +ALTER TABLE openvz_template ADD COLUMN `custom` text; + +ALTER TABLE openvz_vm + ADD COLUMN `bootorder` INT(11) NOT NULL DEFAULT '1' AFTER `start_boot`, + ADD COLUMN `custom` text; diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql index 6089f3f7454bed945ce8112f11038edc6c99e6ad..bb17537e7cea50d57bd2dfdc46615d048dbf2083 100644 --- a/install/sql/ispconfig3.sql +++ b/install/sql/ispconfig3.sql @@ -1093,6 +1093,7 @@ CREATE TABLE IF NOT EXISTS `openvz_template` ( `capability` varchar(255) DEFAULT NULL, `features` varchar(255) DEFAULT NULL, `iptables` varchar(255) DEFAULT NULL, + `custom` text, PRIMARY KEY (`template_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; @@ -1100,7 +1101,7 @@ CREATE TABLE IF NOT EXISTS `openvz_template` ( -- 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`, `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', '', '', ''); +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`, `custom`) 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', '', '', '', ''); -- -------------------------------------------------------- @@ -1141,6 +1142,7 @@ CREATE TABLE IF NOT EXISTS `openvz_vm` ( `hostname` varchar(255) DEFAULT NULL, `vm_password` varchar(255) DEFAULT NULL, `start_boot` varchar(255) NOT NULL DEFAULT 'y', + `bootorder` int(11) NOT NULL DEFAULT '1', `active` varchar(255) NOT NULL DEFAULT 'y', `active_until_date` date NOT NULL DEFAULT '0000-00-00', `description` text, @@ -1159,6 +1161,7 @@ CREATE TABLE IF NOT EXISTS `openvz_vm` ( `features` text, `iptabless` text, `config` mediumtext, + `custom` text, PRIMARY KEY (`vm_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; diff --git a/install/tpl/server.ini.master b/install/tpl/server.ini.master index d50d244f707c912e3135a026748e1e25d21258f0..286dc077b56a538e4f195968893715fdb50ba238 100644 --- a/install/tpl/server.ini.master +++ b/install/tpl/server.ini.master @@ -72,6 +72,7 @@ user=www-data group=www-data nginx_user=www-data nginx_group=www-data +apps_vhost_enabled=y apps_vhost_port=8081 apps_vhost_ip=_default_ apps_vhost_servername= diff --git a/interface/lib/classes/validate_openvz.inc.php b/interface/lib/classes/validate_openvz.inc.php new file mode 100644 index 0000000000000000000000000000000000000000..75e41fe65fe485c138a24dcaccf31f3dbaab9eeb --- /dev/null +++ b/interface/lib/classes/validate_openvz.inc.php @@ -0,0 +1,66 @@ +<?php + +/** + Copyright (c) 2015, Florian Schaal, schaal @it + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of ISPConfig nor the names of its contributors + may be used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + @author Florian Schaal, info@schaal-24.de + @copyrighth Florian Schaal, info@schaal-24.de + */ + +class validate_openvz { + + function get_error($errmsg, $additional='') { + global $app; + if(isset($app->tform->wordbook[$errmsg])) { + return $app->tform->wordbook[$errmsg].$additional."<br>\r\n"; + } else { + return $errmsg."<br>".$additional."<br>\r\n"; + } + } + + function check_custom($field_name, $field_value, $validator) { + $template = file('../vm/templates/openvz.conf.tpl', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); + $custom_array = explode("\n", $field_value); + $used_parameters = array(); + foreach ($template as $line) { + $line = trim ($line); + if (preg_match('/^[^#].*=\".*\"/', $line)) { + $line = explode('=', $line, 2); + $used_parameters[] = $line[0]; + } + } + foreach ($custom_array as $check) { + $check = trim(strtoupper($check)); + $check = explode('=', trim($check), 2); + $check = trim($check[0]); + if (in_array($check, $used_parameters)) { + return $this->get_error($validator['errmsg'], $check); + } + } + } + +} diff --git a/interface/lib/plugins/vm_openvz_plugin.inc.php b/interface/lib/plugins/vm_openvz_plugin.inc.php index 305118d33ac02354bd440e6c02055b89ea5a964c..3249793f1e96637b3633d58dd08f65f5bc388a60 100644 --- a/interface/lib/plugins/vm_openvz_plugin.inc.php +++ b/interface/lib/plugins/vm_openvz_plugin.inc.php @@ -130,10 +130,10 @@ class vm_openvz_plugin { global $app, $conf; //* Free the IP address - $tmp = $app->db->queryOneRecord("SELECT ip_address_id FROM openvz_ip WHERE vm_id = ?", $page_form->id); - $app->db->datalogUpdate('openvz_ip', array('vm_id' => 0), 'ip_address_id', $tmp['ip_address_id']); - unset($tmp); - + $tmp_rec = $app->db->queryAllRecords("SELECT ip_address_id FROM openvz_ip WHERE vm_id = ?", $page_form->id); + foreach ($tmp_rec as $tmp) { + $app->db->datalogUpdate('openvz_ip', array('vm_id' => 0), 'ip_address_id', $tmp['ip_address_id']); + } } private function applyTemplate() { @@ -154,8 +154,9 @@ class vm_openvz_plugin { $sql .= "capability = ?, "; $sql .= "features = ?, "; $sql .= "iptables = ? "; + $sql .= "custom = ? "; $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'], $tpl['iptables'], $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'], $tpl['custom'], $this->id); } @@ -174,6 +175,7 @@ class vm_openvz_plugin { $onboot = ($vm['start_boot'] == 'y')?'yes':'no'; $tpl->setVar('onboot', $onboot); + $tpl->setVar('bootorder', $vm['bootorder']); $tpl->setVar('kmemsize', $vm_template['kmemsize']); $tpl->setVar('lockedpages', $vm_template['lockedpages']); $tpl->setVar('privvmpages', $burst_ram.':'.$burst_ram); @@ -228,6 +230,8 @@ class vm_openvz_plugin { $tpl->setVar('features', $vm['features']); $tpl->setVar('iptables', $vm['iptables']); + $tpl->setVar('custom', $vm['custom']); + $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']); unset($tmp); diff --git a/interface/web/admin/form/server_config.tform.php b/interface/web/admin/form/server_config.tform.php index 988620894a7fc76b5ffe642454c334a63b24e237..adc55b190f10168ef143e975274a1bda429738bb 100644 --- a/interface/web/admin/form/server_config.tform.php +++ b/interface/web/admin/form/server_config.tform.php @@ -1038,6 +1038,12 @@ $form["tabs"]['web'] = array( 1 => 'y' ) ), + 'apps_vhost_enabled' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array (0 => 'n', 1 => 'y') + ), 'apps_vhost_port' => array( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', diff --git a/interface/web/admin/lib/lang/ar_server_config.lng b/interface/web/admin/lib/lang/ar_server_config.lng index e2f2db4e2016205a58032a78fd638335106c0cd8..50000791bd7bc934e409c63a6236ef1ab3e04b93 100644 --- a/interface/web/admin/lib/lang/ar_server_config.lng +++ b/interface/web/admin/lib/lang/ar_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/bg_server_config.lng b/interface/web/admin/lib/lang/bg_server_config.lng index 4365d91108515549294a77e83722e344ff7390af..3d805a90d99ce73a310111c07992a7eb41476874 100644 --- a/interface/web/admin/lib/lang/bg_server_config.lng +++ b/interface/web/admin/lib/lang/bg_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/br_server_config.lng b/interface/web/admin/lib/lang/br_server_config.lng index e34e4ff088eec7124c6605ee02d05825139fddd1..212f9c0f53729f2fc8fec1c7f219b5820285cb6d 100644 --- a/interface/web/admin/lib/lang/br_server_config.lng +++ b/interface/web/admin/lib/lang/br_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/cz_server_config.lng b/interface/web/admin/lib/lang/cz_server_config.lng index 8df2dbe23829dc004e0f7918221fd67930171afa..eddcd21b97535cb914c7c967a8b23d836ec4edcc 100644 --- a/interface/web/admin/lib/lang/cz_server_config.lng +++ b/interface/web/admin/lib/lang/cz_server_config.lng @@ -253,5 +253,6 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/de_server_config.lng b/interface/web/admin/lib/lang/de_server_config.lng index aa448d86b7f4c79003a45a8479d8ebcd23903f99..13f7834655737ba6e414d44ac908b124687d726c 100644 --- a/interface/web/admin/lib/lang/de_server_config.lng +++ b/interface/web/admin/lib/lang/de_server_config.lng @@ -266,4 +266,5 @@ $wb['php_ini_check_minutes_info_txt'] = '0 = keine Prüfung'; $wb['php_handler_txt'] = 'Standard-PHP-Handler'; $wb['enable_spdy_txt'] = 'Stellt SPDY zur Verfügung'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/el_server_config.lng b/interface/web/admin/lib/lang/el_server_config.lng index 2cef4ed7356870558170a3570c826cb2c7bdff85..e672f60d7656ebd2bad6d7eac146c298532798d0 100644 --- a/interface/web/admin/lib/lang/el_server_config.lng +++ b/interface/web/admin/lib/lang/el_server_config.lng @@ -250,4 +250,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/en_server_config.lng b/interface/web/admin/lib/lang/en_server_config.lng index b5e4237ea2612e2005eb01ccc52be4617d5a48b9..ac7e2d5e0a1bfcb5852dcd2b8b5aff612b73a677 100644 --- a/interface/web/admin/lib/lang/en_server_config.lng +++ b/interface/web/admin/lib/lang/en_server_config.lng @@ -281,4 +281,5 @@ $wb['xmpp_port_https_txt'] = 'HTTPS'; $wb['xmpp_port_pastebin_txt'] = 'Pastebin'; $wb['xmpp_port_bosh_txt'] = 'BOSH'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/es_server_config.lng b/interface/web/admin/lib/lang/es_server_config.lng index a62b3f619833f20d4e9733cafa5b83b852f5800b..16e406c64f72bff39940086aad0ca6db32dd6242 100644 --- a/interface/web/admin/lib/lang/es_server_config.lng +++ b/interface/web/admin/lib/lang/es_server_config.lng @@ -253,4 +253,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/fi_server_config.lng b/interface/web/admin/lib/lang/fi_server_config.lng index f4f88564cc2bf58f94bf9aefc7b655606f30e142..061465ca8878fc2a6dc7cc2478f0c9c39eb28f5d 100755 --- a/interface/web/admin/lib/lang/fi_server_config.lng +++ b/interface/web/admin/lib/lang/fi_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/fr_server_config.lng b/interface/web/admin/lib/lang/fr_server_config.lng index 0ceb4af89c1c9e338a12fd9449a43848a4b3d098..8fa674c100bd8c8e76fe45a0542d09baf0b083c1 100644 --- a/interface/web/admin/lib/lang/fr_server_config.lng +++ b/interface/web/admin/lib/lang/fr_server_config.lng @@ -252,5 +252,6 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/hr_server_config.lng b/interface/web/admin/lib/lang/hr_server_config.lng index eaf7fb6c824178f9d9a20a273950adfe17f01275..c11593f28bcfc49b65230ff9389f6b3940d9ce05 100644 --- a/interface/web/admin/lib/lang/hr_server_config.lng +++ b/interface/web/admin/lib/lang/hr_server_config.lng @@ -256,6 +256,7 @@ $wb['crontab_dir_error_regex'] = 'Neispravan crontab direktorij.'; $wb['cron_wget_error_regex'] = 'Neispravna cron wget putanja.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/hu_server_config.lng b/interface/web/admin/lib/lang/hu_server_config.lng index 58b95245c03ca92007f60e77d7ee9ef70b586a11..1e4c2a1bd5195db5f0b2ac44d97739a601ed69c9 100644 --- a/interface/web/admin/lib/lang/hu_server_config.lng +++ b/interface/web/admin/lib/lang/hu_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/id_server_config.lng b/interface/web/admin/lib/lang/id_server_config.lng index 5f89667c409e8dd6ecce8987ea76a97172cb49c3..8c26f2643be571ff4fa59a1a3bff6a45d2ee5e5c 100644 --- a/interface/web/admin/lib/lang/id_server_config.lng +++ b/interface/web/admin/lib/lang/id_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/it_server_config.lng b/interface/web/admin/lib/lang/it_server_config.lng index c3d435b1e4ac7ef539c7e3c26fa53129b2eacfcc..3b5cfcfe6e42489021f916a4f113025c90c6a8fa 100644 --- a/interface/web/admin/lib/lang/it_server_config.lng +++ b/interface/web/admin/lib/lang/it_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/ja_server_config.lng b/interface/web/admin/lib/lang/ja_server_config.lng index 3f3c63940af55dd7c6d4d80dfaed991d34ff8d12..76e1cf87ae1aeec2959be8b2e052cd059cdd9fb6 100644 --- a/interface/web/admin/lib/lang/ja_server_config.lng +++ b/interface/web/admin/lib/lang/ja_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/nl_server_config.lng b/interface/web/admin/lib/lang/nl_server_config.lng index e9c32b525d1e3785a7818dfc066fce1ce854d63b..b31b45236dd5f91e27deb8557fc78dc5cd82321c 100644 --- a/interface/web/admin/lib/lang/nl_server_config.lng +++ b/interface/web/admin/lib/lang/nl_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/pl_server_config.lng b/interface/web/admin/lib/lang/pl_server_config.lng index 9c55a4f76704beb56c227a0af96c72090d09e09c..d1a0b6750bde454e6f03b884d1ef6adc37039fe3 100644 --- a/interface/web/admin/lib/lang/pl_server_config.lng +++ b/interface/web/admin/lib/lang/pl_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/pt_server_config.lng b/interface/web/admin/lib/lang/pt_server_config.lng index 712d15aeff30ad9cd0559312d9424fa3fd1af1d2..3081121c2b7d9878a2f85199149333456f3dfed0 100644 --- a/interface/web/admin/lib/lang/pt_server_config.lng +++ b/interface/web/admin/lib/lang/pt_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/ro_server_config.lng b/interface/web/admin/lib/lang/ro_server_config.lng index d6d950ffea075eced9936ec3eb7a625f1504bdf7..5ecec82d3393f5aa0c217a8f933c63432b0d22a7 100644 --- a/interface/web/admin/lib/lang/ro_server_config.lng +++ b/interface/web/admin/lib/lang/ro_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/ru_server_config.lng b/interface/web/admin/lib/lang/ru_server_config.lng index 1acfb0541d96d04eab56e7a0438233d814e4e4c7..fbddb89166c7f80d5a63d101202bc6cd9ef1435e 100644 --- a/interface/web/admin/lib/lang/ru_server_config.lng +++ b/interface/web/admin/lib/lang/ru_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/se_server_config.lng b/interface/web/admin/lib/lang/se_server_config.lng index baf79af675e64f94a2b175c6138adc043c60e09e..8bf64edf4ec8500e6cb4f57fdf06fe0c507e6a61 100644 --- a/interface/web/admin/lib/lang/se_server_config.lng +++ b/interface/web/admin/lib/lang/se_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/sk_server_config.lng b/interface/web/admin/lib/lang/sk_server_config.lng index 1e8ae4dac118821971a38382656ae99eb4618548..6e79b15f08fc3a29fbdd3d2325403fa2eb172aad 100644 --- a/interface/web/admin/lib/lang/sk_server_config.lng +++ b/interface/web/admin/lib/lang/sk_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/lib/lang/tr_server_config.lng b/interface/web/admin/lib/lang/tr_server_config.lng index 2e7a7df1b14bf0e7bad914573741b1edd52f73de..531fe07acfd244040620c74d42a8b9137019ee62 100644 --- a/interface/web/admin/lib/lang/tr_server_config.lng +++ b/interface/web/admin/lib/lang/tr_server_config.lng @@ -255,4 +255,5 @@ $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; $wb['network_filesystem_txt'] = 'Network Filesystem'; $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; +$wb["apps_vhost_enabled_txt"] = "Apps-vhost enabled"; ?> diff --git a/interface/web/admin/templates/server_config_web_edit.htm b/interface/web/admin/templates/server_config_web_edit.htm index 9f8f9d8f21265dee834e28a3c55871d9356f7796..f32e1473a71e8b6c3d5c2e8b6747dd56f69e546e 100644 --- a/interface/web/admin/templates/server_config_web_edit.htm +++ b/interface/web/admin/templates/server_config_web_edit.htm @@ -228,6 +228,9 @@ </div> <div class="col-sm-3"></div><div class="col-sm-9"><button class="btn btn-default formbutton-default" type="button" data-toggle="collapse" data-target="#toggle-apps_vhost_settings" aria-expanded="false" aria-controls="toggle-apps_vhost_settings">{tmpl_var name='apps_vhost_settings_txt'}</button></div> <div id="toggle-apps_vhost_settings" class="collapse"> + <div class="form-group"> + <label for="apps_vhost_enabled" class="col-sm-3 control-label">{tmpl_var name='apps_vhost_enabled_txt'}</label> + <div class="col-sm-9">{tmpl_var name='apps_vhost_enabled'}</div></div> <div class="form-group"> <label for="apps_vhost_port" class="col-sm-3 control-label">{tmpl_var name='apps_vhost_port_txt'}</label> <div class="col-sm-9"><input type="text" name="apps_vhost_port" id="apps_vhost_port" value="{tmpl_var name='apps_vhost_port'}" class="form-control" /></div></div> diff --git a/interface/web/vm/form/openvz_template.tform.php b/interface/web/vm/form/openvz_template.tform.php index fd67c99179837855f5e65ca16bcf9c32cdcb9dae..8279ce085c8566a0b41096b2800f1b5013d0d919 100644 --- a/interface/web/vm/form/openvz_template.tform.php +++ b/interface/web/vm/form/openvz_template.tform.php @@ -475,6 +475,22 @@ $form["tabs"]['advanced'] = array ( 'width' => '30', 'maxlength' => '255' ), + 'custom' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '', + 'maxlength' => '', + 'rows' => '10', + 'cols' => '30', + 'validators' => array ( 0 => array ('type' => 'CUSTOM', + 'class' => 'validate_openvz', + 'function' => 'check_custom', + 'errmsg'=> 'custom_error'), + ), + ), //################################# // ENDE Datatable fields //################################# diff --git a/interface/web/vm/form/openvz_vm.tform.php b/interface/web/vm/form/openvz_vm.tform.php index d6911ccfda4910dd45a4f0705499dc4de79b21c3..44f20dc6ec496da791cf5106a4def0cd222431cf 100644 --- a/interface/web/vm/form/openvz_vm.tform.php +++ b/interface/web/vm/form/openvz_vm.tform.php @@ -150,6 +150,17 @@ $form["tabs"]['main'] = array ( 'default' => 'y', 'value' => array(0 => 'n', 1 => 'y') ), + 'bootorder' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '3', + 'maxlength' => '3', + 'validators' => array ( 0 => array ( 'type' => 'ISPOSITIVE', + 'errmsg'=> 'bootorder_error_notpositive'), + ), + ), 'active' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'CHECKBOX', @@ -322,6 +333,23 @@ if($_SESSION["s"]["user"]["typ"] == 'admin') { 'width' => '30', 'maxlength' => '255' ), + 'custom' => array ( + 'datatype' => 'TEXT', + 'formtype' => 'TEXTAREA', + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '', + 'maxlength' => '', + 'rows' => '10', + 'cols' => '30', + 'searchable' => 2, + 'validators' => array ( 0 => array ('type' => 'CUSTOM', + 'class' => 'validate_openvz', + 'function' => 'check_custom', + 'errmsg'=> 'custom_error'), + ), + ), //################################# // ENDE Datatable fields //################################# diff --git a/interface/web/vm/lib/lang/ar_openvz_template.lng b/interface/web/vm/lib/lang/ar_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/ar_openvz_template.lng +++ b/interface/web/vm/lib/lang/ar_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/ar_openvz_vm.lng b/interface/web/vm/lib/lang/ar_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/ar_openvz_vm.lng +++ b/interface/web/vm/lib/lang/ar_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/bg_openvz_template.lng b/interface/web/vm/lib/lang/bg_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/bg_openvz_template.lng +++ b/interface/web/vm/lib/lang/bg_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/bg_openvz_vm.lng b/interface/web/vm/lib/lang/bg_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/bg_openvz_vm.lng +++ b/interface/web/vm/lib/lang/bg_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/br_openvz_template.lng b/interface/web/vm/lib/lang/br_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/br_openvz_template.lng +++ b/interface/web/vm/lib/lang/br_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/br_openvz_vm.lng b/interface/web/vm/lib/lang/br_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/br_openvz_vm.lng +++ b/interface/web/vm/lib/lang/br_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/cz_openvz_template.lng b/interface/web/vm/lib/lang/cz_openvz_template.lng index 3abd8167dc709ba7259c5f9bbe314e06b0ee3abb..26434be3b91312277a78da4637342fc70028fb26 100644 --- a/interface/web/vm/lib/lang/cz_openvz_template.lng +++ b/interface/web/vm/lib/lang/cz_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Å ablona'; $wb['Advanced'] = 'PokroÄilý'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/cz_openvz_vm.lng b/interface/web/vm/lib/lang/cz_openvz_vm.lng index eaf12b75576efc915e07765926bad49cfa09bcd9..0fd8a9c18b04fc93d6d08ac5757580338da012ef 100644 --- a/interface/web/vm/lib/lang/cz_openvz_vm.lng +++ b/interface/web/vm/lib/lang/cz_openvz_vm.lng @@ -39,5 +39,8 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'PokroÄilý'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/de_openvz_template.lng b/interface/web/vm/lib/lang/de_openvz_template.lng index c86e878b75db6b359c15993fb8d0a69f2939ec70..776e14a5e1aab9b605f7b460371d0d71833be283 100644 --- a/interface/web/vm/lib/lang/de_openvz_template.lng +++ b/interface/web/vm/lib/lang/de_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Erweitert'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/de_openvz_vm.lng b/interface/web/vm/lib/lang/de_openvz_vm.lng index edce4b733b1477cc52485ee839ac2144c642f14c..52daf3f55d96376536903068df40326078e1dcf3 100644 --- a/interface/web/vm/lib/lang/de_openvz_vm.lng +++ b/interface/web/vm/lib/lang/de_openvz_vm.lng @@ -38,4 +38,7 @@ $wb['template_nameserver_error_empty'] = 'Nameserver ist leer.'; $wb['Virtual server'] = 'Virtueller Server'; $wb['Advanced'] = 'Erweitert'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/el_openvz_template.lng b/interface/web/vm/lib/lang/el_openvz_template.lng index b8c654372351e19e6a53689f4e0cc9532c6b93fb..75b2d7f2f174a051b7861b7f7e52fbddb3d3422e 100644 --- a/interface/web/vm/lib/lang/el_openvz_template.lng +++ b/interface/web/vm/lib/lang/el_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/el_openvz_vm.lng b/interface/web/vm/lib/lang/el_openvz_vm.lng index c74b1029232f8cdd8523be6a48db330e8a269567..d22124530b9b35cd6c359a34cf47962715530ca4 100644 --- a/interface/web/vm/lib/lang/el_openvz_vm.lng +++ b/interface/web/vm/lib/lang/el_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Εικονικός server'; $wb['Advanced'] = 'Για Ï€ÏοχωÏημÎνους'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/en_openvz_template.lng b/interface/web/vm/lib/lang/en_openvz_template.lng index a2b7f8db966feac079f8752917ab24fb1eae6c52..cb648cbd6aab68f5249f7b72bbbb06a2674ef197 100644 --- a/interface/web/vm/lib/lang/en_openvz_template.lng +++ b/interface/web/vm/lib/lang/en_openvz_template.lng @@ -92,4 +92,6 @@ $wb["Template"] = 'Template'; $wb["Advanced"] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/en_openvz_vm.lng b/interface/web/vm/lib/lang/en_openvz_vm.lng index 67cdbfd6f5d05eb7338f354601fb4fc02c961632..f3562cb0543ff90192af351ee1d6e9f6a6ee75b1 100644 --- a/interface/web/vm/lib/lang/en_openvz_vm.lng +++ b/interface/web/vm/lib/lang/en_openvz_vm.lng @@ -39,4 +39,7 @@ $wb["Virtual server"] = 'Virtual server'; $wb["Advanced"] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/es_openvz_template.lng b/interface/web/vm/lib/lang/es_openvz_template.lng index cad093304b699820fb8675925eafe3dd51abe934..bffc71705735fddc1ec037e6c34cfe898336bd24 100644 --- a/interface/web/vm/lib/lang/es_openvz_template.lng +++ b/interface/web/vm/lib/lang/es_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Plantilla'; $wb['Advanced'] = 'Avanzado'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/es_openvz_vm.lng b/interface/web/vm/lib/lang/es_openvz_vm.lng index 6a88f4f441ba82d125555dc216aa3a39d26a43b6..720e20621b6436180e1fd4e087528af6fe95bbb3 100644 --- a/interface/web/vm/lib/lang/es_openvz_vm.lng +++ b/interface/web/vm/lib/lang/es_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Servidor virtual'; $wb['Advanced'] = 'Avanzado'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/fi_openvz_template.lng b/interface/web/vm/lib/lang/fi_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/fi_openvz_template.lng +++ b/interface/web/vm/lib/lang/fi_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/fi_openvz_vm.lng b/interface/web/vm/lib/lang/fi_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/fi_openvz_vm.lng +++ b/interface/web/vm/lib/lang/fi_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/fr_openvz_template.lng b/interface/web/vm/lib/lang/fr_openvz_template.lng index 66db26534dad061c2e2b72f663588b44513e7189..c2554a0b76f45b6d60eccde471a262cb189578e6 100644 --- a/interface/web/vm/lib/lang/fr_openvz_template.lng +++ b/interface/web/vm/lib/lang/fr_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Modèle'; $wb['Advanced'] = 'Avancé'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/fr_openvz_vm.lng b/interface/web/vm/lib/lang/fr_openvz_vm.lng index 26d21a06346f2c62ad4a1de938ea23d9bd04ee2e..cfcf2500d51a4b963dfbbad78631fc17de18a812 100644 --- a/interface/web/vm/lib/lang/fr_openvz_vm.lng +++ b/interface/web/vm/lib/lang/fr_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Serveur virtuel'; $wb['Advanced'] = 'Avancé'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/hr_openvz_template.lng b/interface/web/vm/lib/lang/hr_openvz_template.lng index 69b36b92026105395278dcc7847a99d5f3a64d9b..622274bc4dee0fa3b9467f3da48bcdc908e8ab7e 100644 --- a/interface/web/vm/lib/lang/hr_openvz_template.lng +++ b/interface/web/vm/lib/lang/hr_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Predložak'; $wb['Advanced'] = 'Napredno'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/hr_openvz_vm.lng b/interface/web/vm/lib/lang/hr_openvz_vm.lng index 6ae18e105d1b59604440a782d8cf2b7aed01ef5a..c614b2b4b0d98c91c16813a8c36a387558684464 100644 --- a/interface/web/vm/lib/lang/hr_openvz_vm.lng +++ b/interface/web/vm/lib/lang/hr_openvz_vm.lng @@ -39,6 +39,9 @@ $wb['Virtual server'] = 'Virtualni server'; $wb['Advanced'] = 'Napredno'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/hu_openvz_template.lng b/interface/web/vm/lib/lang/hu_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/hu_openvz_template.lng +++ b/interface/web/vm/lib/lang/hu_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/hu_openvz_vm.lng b/interface/web/vm/lib/lang/hu_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/hu_openvz_vm.lng +++ b/interface/web/vm/lib/lang/hu_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/id_openvz_template.lng b/interface/web/vm/lib/lang/id_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/id_openvz_template.lng +++ b/interface/web/vm/lib/lang/id_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/id_openvz_vm.lng b/interface/web/vm/lib/lang/id_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/id_openvz_vm.lng +++ b/interface/web/vm/lib/lang/id_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/it_openvz_template.lng b/interface/web/vm/lib/lang/it_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/it_openvz_template.lng +++ b/interface/web/vm/lib/lang/it_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/it_openvz_vm.lng b/interface/web/vm/lib/lang/it_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/it_openvz_vm.lng +++ b/interface/web/vm/lib/lang/it_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/ja_openvz_template.lng b/interface/web/vm/lib/lang/ja_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/ja_openvz_template.lng +++ b/interface/web/vm/lib/lang/ja_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/ja_openvz_vm.lng b/interface/web/vm/lib/lang/ja_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/ja_openvz_vm.lng +++ b/interface/web/vm/lib/lang/ja_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/nl_openvz_template.lng b/interface/web/vm/lib/lang/nl_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/nl_openvz_template.lng +++ b/interface/web/vm/lib/lang/nl_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/nl_openvz_vm.lng b/interface/web/vm/lib/lang/nl_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/nl_openvz_vm.lng +++ b/interface/web/vm/lib/lang/nl_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/pl_openvz_template.lng b/interface/web/vm/lib/lang/pl_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/pl_openvz_template.lng +++ b/interface/web/vm/lib/lang/pl_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/pl_openvz_vm.lng b/interface/web/vm/lib/lang/pl_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/pl_openvz_vm.lng +++ b/interface/web/vm/lib/lang/pl_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/pt_openvz_template.lng b/interface/web/vm/lib/lang/pt_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/pt_openvz_template.lng +++ b/interface/web/vm/lib/lang/pt_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/pt_openvz_vm.lng b/interface/web/vm/lib/lang/pt_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/pt_openvz_vm.lng +++ b/interface/web/vm/lib/lang/pt_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/ro_openvz_template.lng b/interface/web/vm/lib/lang/ro_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/ro_openvz_template.lng +++ b/interface/web/vm/lib/lang/ro_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/ro_openvz_vm.lng b/interface/web/vm/lib/lang/ro_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/ro_openvz_vm.lng +++ b/interface/web/vm/lib/lang/ro_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/ru_openvz_template.lng b/interface/web/vm/lib/lang/ru_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/ru_openvz_template.lng +++ b/interface/web/vm/lib/lang/ru_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/ru_openvz_vm.lng b/interface/web/vm/lib/lang/ru_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/ru_openvz_vm.lng +++ b/interface/web/vm/lib/lang/ru_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/se_openvz_template.lng b/interface/web/vm/lib/lang/se_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/se_openvz_template.lng +++ b/interface/web/vm/lib/lang/se_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/se_openvz_vm.lng b/interface/web/vm/lib/lang/se_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/se_openvz_vm.lng +++ b/interface/web/vm/lib/lang/se_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/sk_openvz_template.lng b/interface/web/vm/lib/lang/sk_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/sk_openvz_template.lng +++ b/interface/web/vm/lib/lang/sk_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/sk_openvz_vm.lng b/interface/web/vm/lib/lang/sk_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/sk_openvz_vm.lng +++ b/interface/web/vm/lib/lang/sk_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/lib/lang/tr_openvz_template.lng b/interface/web/vm/lib/lang/tr_openvz_template.lng index 262cad0dab88af8bf1d89b98b5bfb021a6089220..27dfbbb7b5d51c3beb773a7112020838f305b587 100644 --- a/interface/web/vm/lib/lang/tr_openvz_template.lng +++ b/interface/web/vm/lib/lang/tr_openvz_template.lng @@ -92,4 +92,6 @@ $wb['Template'] = 'Template'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["custom_error"] = "Not allowed in Custom settings: "; ?> diff --git a/interface/web/vm/lib/lang/tr_openvz_vm.lng b/interface/web/vm/lib/lang/tr_openvz_vm.lng index 3f4e1c1ee1d2a76cbf5d17347673f845e14ccb76..2029d962388ced0fd5267cd742610fc6030a85db 100644 --- a/interface/web/vm/lib/lang/tr_openvz_vm.lng +++ b/interface/web/vm/lib/lang/tr_openvz_vm.lng @@ -39,4 +39,7 @@ $wb['Virtual server'] = 'Virtual server'; $wb['Advanced'] = 'Advanced'; $wb['features_txt'] = 'Features'; $wb["iptables_txt"] = "IP Tables"; +$wb["custom_txt"] = "Custom settings"; +$wb["bootorder_txt"] = "Boot order priority"; +$wb["bootorder_error_notpositive"] = "Only positive integers are allowed for Boot order priority"; ?> diff --git a/interface/web/vm/openvz_vm_edit.php b/interface/web/vm/openvz_vm_edit.php index 0db2053a36a8a8bc46bc2667bf65f79861220b90..69265885cd9e3d0e6a104cabf09066847068f09c 100644 --- a/interface/web/vm/openvz_vm_edit.php +++ b/interface/web/vm/openvz_vm_edit.php @@ -161,7 +161,8 @@ class page_action extends tform_actions { //* Fill the IPv4 select field with the IP addresses that are allowed for this client //$sql = "SELECT ip_address FROM server_ip WHERE server_id = ".$client['default_webserver']." AND ip_type = 'IPv4' AND (client_id = 0 OR client_id=".$_SESSION['s']['user']['client_id'].")"; if(isset($this->dataRecord["server_id"])) { - $vm_server_id = $app->functions->intval($this->dataRecord["server_id"]); +// $vm_server_id = $app->functions->intval($this->dataRecord["server_id"]); + $vm_server_id = $app->functions->intval($this->dataRecord["vm_id"]); } else { $tmp = $app->db->queryOneRecord('SELECT server_id FROM server WHERE vserver_server = 1 AND mirror_server_id = 0 ORDER BY server_name LIMIT 0,1'); $vm_server_id = $app->functions->intval($tmp['server_id']); diff --git a/interface/web/vm/templates/openvz.conf.tpl b/interface/web/vm/templates/openvz.conf.tpl index 1cb4dc06198ec0ea84cf8d72dd87578a6b547764..ed4943f7360fdaad9c423c5a0d91097b6cc17d0f 100644 --- a/interface/web/vm/templates/openvz.conf.tpl +++ b/interface/web/vm/templates/openvz.conf.tpl @@ -4,6 +4,7 @@ VERSION="2" # Parameters ONBOOT="{tmpl_var name='onboot'}" +BOOTORDER="{tmpl_var name='bootorder'}" KMEMSIZE="{tmpl_var name='kmemsize'}" LOCKEDPAGES="{tmpl_var name='lockedpages'}" PRIVVMPAGES="{tmpl_var name='privvmpages'}" @@ -50,3 +51,4 @@ MEMINFO="privvmpages:1" CAPABILITY="{tmpl_var name='capability'}" FEATURES="{tmpl_var name='features'}" IPTABLES="{tmpl_var name='iptables'}" +{tmpl_var name='custom'} diff --git a/interface/web/vm/templates/openvz_template_advanced_edit.htm b/interface/web/vm/templates/openvz_template_advanced_edit.htm index d3dee9a281a1afe800724566c0a87e21553d5a29..3712906ed0ce11b84e51b7d66f1a4a945109f19a 100644 --- a/interface/web/vm/templates/openvz_template_advanced_edit.htm +++ b/interface/web/vm/templates/openvz_template_advanced_edit.htm @@ -80,7 +80,9 @@ <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> - + <div class="form-group"> + <label for="custom" class="col-sm-3 control-label">{tmpl_var name='custom_txt'}</label> + <div class="col-sm-9"><textarea class="form-control" name="custom" id="custom" rows='10' cols='30'>{tmpl_var name='custom'}</textarea></div></div> <input type="hidden" name="id" value="{tmpl_var name='id'}"> diff --git a/interface/web/vm/templates/openvz_vm_advanced_edit.htm b/interface/web/vm/templates/openvz_vm_advanced_edit.htm index 83bbb3d5198de864ba4755140936ef5fc5d4a3e4..a25d715e575fdc7fd92117aea208fc0fe0c9a85a 100644 --- a/interface/web/vm/templates/openvz_vm_advanced_edit.htm +++ b/interface/web/vm/templates/openvz_vm_advanced_edit.htm @@ -58,6 +58,10 @@ <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> + <div class="form-group"> + <label for="custom" class="col-sm-3 control-label">{tmpl_var name='custom_txt'}</label> + <div class="col-sm-9"><textarea class="form-control" name="custom" id="custom" rows='10' cols='30'>{tmpl_var name='custom'}</textarea></div> + </div> <input type="hidden" name="id" value="{tmpl_var name='id'}"> diff --git a/interface/web/vm/templates/openvz_vm_edit.htm b/interface/web/vm/templates/openvz_vm_edit.htm index c2e0cb6c72168505f9d8dd793f662108191522bf..a045012d7c436b6db345b897eb034e609e05a109 100644 --- a/interface/web/vm/templates/openvz_vm_edit.htm +++ b/interface/web/vm/templates/openvz_vm_edit.htm @@ -75,6 +75,9 @@ {tmpl_var name='start_boot'} </div> </div> + <div class="form-group"> + <label for="bootorder" class="col-sm-3 control-label">{tmpl_var name='bootorder_txt'}</label> + <div class="col-sm-9"><input type="text" name="bootorder" id="bootorder" value="{tmpl_var name='bootorder'}" class="form-control" /></div></div> <div class="form-group"> <label class="col-sm-3 control-label">{tmpl_var name='active_txt'}</label> <div class="col-sm-9"> @@ -95,4 +98,4 @@ <div class="clear"><div class="right"> <button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="vm/openvz_vm_edit.php">{tmpl_var name='btn_save_txt'}</button> <button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="vm/openvz_vm_list.php">{tmpl_var name='btn_cancel_txt'}</button> - </div></div> \ No newline at end of file + </div></div> diff --git a/server/plugins-available/apps_vhost_plugin.inc.php b/server/plugins-available/apps_vhost_plugin.inc.php index 320f3d024bc273b381a3f45c2da446c1844f4717..d5d5dc8a9a2126c614a9183ac29896a6693fcbfa 100644 --- a/server/plugins-available/apps_vhost_plugin.inc.php +++ b/server/plugins-available/apps_vhost_plugin.inc.php @@ -119,6 +119,16 @@ class apps_vhost_plugin { /* end of backwards compatibility section */ $app->system->file_put_contents("$vhost_conf_dir/apps.vhost", $content); + + // enabled / disable apps-vhost + $vhost_symlink = escapeshellcmd($web_config['vhost_conf_enabled_dir'].'/000-apps.vhost'); + if(is_link($vhost_symlink) && $web_config['apps_vhost_enabled'] == 'n') { + $app->system->unlink($vhost_symlink); + } + if(!@is_link($vhost_conf_enabled_dir.'/000-apps.vhost') && $web_config['apps_vhost_enabled'] == 'y') { + symlink($vhost_conf_dir.'/apps.vhost', $vhost_conf_enabled_dir.'/000-apps.vhost'); + } + $app->services->restartServiceDelayed('httpd', 'restart'); } @@ -185,6 +195,16 @@ class apps_vhost_plugin { file_put_contents($web_config['php_fpm_pool_dir'].'/apps.conf', $fpm_content); file_put_contents("$vhost_conf_dir/apps.vhost", $content); + + // enabled / disable apps-vhost + $vhost_symlink = escapeshellcmd($web_config['vhost_conf_enabled_dir'].'/000-apps.vhost'); + if(is_link($vhost_symlink) && $web_config['apps_vhost_enabled'] == 'n') { + $app->system->unlink($vhost_symlink); + } + if(!@is_link($vhost_conf_enabled_dir.'/000-apps.vhost') && $web_config['apps_vhost_enabled'] == 'y') { + symlink($vhost_conf_dir.'/apps.vhost', $vhost_conf_enabled_dir.'/000-apps.vhost'); + } + $app->services->restartServiceDelayed('httpd', 'reload'); } }