| | |
| | | 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 `custom` text; |
| | | |
| | | ALTER TABLE openvz_vm |
| | | ADD COLUMN `bootorder` INT(11) NOT NULL DEFAULT '1' AFTER `start_boot`, |
| | | ADD COLUMN `custom` text; |
| | |
| | | `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, |
| | |
| | | foreach ($tmp_rec as $tmp) { |
| | | $app->db->datalogUpdate('openvz_ip', array('vm_id' => 0), 'ip_address_id', $tmp['ip_address_id']); |
| | | } |
| | | unset($tmp); |
| | | unset($tmp_rec); |
| | | } |
| | | |
| | | private function applyTemplate() { |
| | |
| | | $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); |
| | |
| | | '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'=> 'limit_client_error_notint'), |
| | | ), |
| | | ), |
| | | 'active' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | | |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | | |
| | | |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | $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"; |
| | | ?> |
| | |
| | | |
| | | # 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'}" |
| | |
| | | {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"> |
| | |
| | | <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> |
| | | </div></div> |