tbrehm
2012-01-02 a046bff7e8c6c35c31125253b576d203f3313386
Fixed: FS#1947 - Unchecking all PHP options in Limits interface causes problem when client edits website
5 files modified
17 ■■■■■ changed files
interface/web/client/client_edit.php 1 ●●●● patch | view | raw | blame | history
interface/web/client/form/client.tform.php 6 ●●●●● patch | view | raw | blame | history
interface/web/client/form/reseller.tform.php 6 ●●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_client.lng 2 ●●●●● patch | view | raw | blame | history
interface/web/client/lib/lang/en_reseller.lng 2 ●●●●● patch | view | raw | blame | history
interface/web/client/client_edit.php
@@ -97,7 +97,6 @@
        parent::onSubmit();
    }
    function onShowEnd() {
        global $app;
interface/web/client/form/client.tform.php
@@ -604,6 +604,9 @@
        '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',
@@ -668,6 +671,9 @@
        'ssh_chroot' => array (
            'datatype'    => 'VARCHAR',
            'formtype'    => 'CHECKBOXARRAY',
            'validators'    => array (     0 => array (    'type'    => 'NOTEMPTY',
                                                        'errmsg'=> 'ssh_chroot_notempty'),
                                    ),
            'default'    => '',
            'separator' => ',',
            'valuelimit' => 'client:ssh_chroot',
interface/web/client/form/reseller.tform.php
@@ -593,6 +593,9 @@
        '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')
@@ -656,6 +659,9 @@
        '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')
interface/web/client/lib/lang/en_client.lng
@@ -107,4 +107,6 @@
$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.';
?>
interface/web/client/lib/lang/en_reseller.lng
@@ -106,4 +106,6 @@
$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.';
?>