Fixed: FS#1947 - Unchecking all PHP options in Limits interface causes problem when client edits website
| | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | |
| | | function onShowEnd() { |
| | | |
| | | global $app; |
| | |
| | | 'web_php_options' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'web_php_options_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'valuelimit' => 'client:web_php_options', |
| | |
| | | 'ssh_chroot' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'ssh_chroot_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'valuelimit' => 'client:ssh_chroot', |
| | |
| | | 'web_php_options' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'web_php_options_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'value' => array('no' => 'Disabled', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP') |
| | |
| | | 'ssh_chroot' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOXARRAY', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'ssh_chroot_notempty'), |
| | | ), |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'value' => array('no' => 'None', 'jailkit' => 'Jailkit') |
| | |
| | | $wb["limit_openvz_vm_txt"] = 'Max. number of virtual servers'; |
| | | $wb["limit_openvz_vm_template_id_txt"] = 'Force virtual server template'; |
| | | $wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.'; |
| | | $wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.'; |
| | | $wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.'; |
| | | ?> |
| | |
| | | $wb["limit_openvz_vm_txt"] = 'Max. number of virtual servers'; |
| | | $wb["limit_openvz_vm_template_id_txt"] = 'Force virtual server template'; |
| | | $wb["limit_openvz_vm_error_notint"] = 'The virtual server limit must be a number.'; |
| | | $wb["web_php_options_notempty"] = 'No PHP option(s) selected. Select at least one PHP option.'; |
| | | $wb["ssh_chroot_notempty"] = 'No SSH chroot option selected. Select at least one SSH option.'; |
| | | ?> |