diff --git a/admin_customers.php b/admin_customers.php index 0312a11e..3de50958 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -893,17 +893,6 @@ if($page == 'customers' $tickets_ul = makecheckbox('tickets_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); $mysqls_ul = makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); $number_of_aps_packages_ul = makecheckbox('number_of_aps_packages_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - /* - $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', '1'); - $email_imap = makeyesno('email_imap', '1', '0', '1'); - $email_pop3 = makeyesno('email_pop3', '1', '0', '1'); - $sendpassword = makeyesno('sendpassword', '1', '0', '1'); - $phpenabled = makeyesno('phpenabled', '1', '0', '1'); - $perlenabled = makeyesno('perlenabled', '1', '0', '0'); - $store_defaultindex = makeyesno('store_defaultindex', '1', '0', '1'); - */ - // why still makeyesno for this one? - $backup_allowed = makeyesno('backup_allowed', '1', '0', '0'); $gender_options = makeoption($lng['gender']['undef'], 0, true, true, true); $gender_options .= makeoption($lng['gender']['male'], 1, null, true, true); @@ -1557,15 +1546,6 @@ if($page == 'customers' $result['aps_packages'] = ''; } - /* - $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', (($result['standardsubdomain'] != '0') ? '1' : '0')); - $phpenabled = makeyesno('phpenabled', '1', '0', $result['phpenabled']); - $perlenabled = makeyesno('perlenabled', '1', '0', $result['perlenabled']); - $deactivated = makeyesno('deactivated', '1', '0', $result['deactivated']); - $email_imap = makeyesno('email_imap', '1', '0', $result['imap']); - $email_pop3 = makeyesno('email_pop3', '1', '0', $result['pop3']); - */ - $backup_allowed = makeyesno('backup_allowed', '1', '0', $result['backup_allowed']); $result = htmlentities_array($result); $gender_options = makeoption($lng['gender']['undef'], 0, ($result['gender'] == '0' ? true : false), true, true); diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index 72749452..790a3068 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -251,9 +251,10 @@ return array( ), 'backup_allowed' => array( 'label' => $lng['backup_allowed'].'?', - 'type' => 'yesno', - 'value' => 0, - 'yesno_var' => $backup_allowed, + 'type' => 'checkbox', + 'values' => array( + array ('label' => $lng['panel']['yes'], 'value' => '1') + ), 'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false) ), 'number_of_aps_packages' => array( diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php index 346c397d..9103c9b1 100644 --- a/lib/formfields/admin/customer/formfield.customer_edit.php +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -260,9 +260,11 @@ return array( ), 'backup_allowed' => array( 'label' => $lng['backup_allowed'].'?', - 'type' => 'yesno', - 'value' => 0, - 'yesno_var' => $backup_allowed, + 'type' => 'checkbox', + 'values' => array( + array ('label' => $lng['panel']['yes'], 'value' => '1') + ), + 'value' => array($result['backup_allowed']), 'visible' => ($settings['system']['backup_enabled'] == '1' ? true : false) ), 'number_of_aps_packages' => array(