diff --git a/lib/formfields/admin/admin/formfield.admin_add.php b/lib/formfields/admin/admin/formfield.admin_add.php index 6ade1bfc..71a428b3 100644 --- a/lib/formfields/admin/admin/formfield.admin_add.php +++ b/lib/formfields/admin/admin/formfield.admin_add.php @@ -120,6 +120,7 @@ return [ ], 'customers' => [ 'label' => lng('admin.customers'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -133,6 +134,7 @@ return [ ], 'domains' => [ 'label' => lng('admin.domains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -146,6 +148,7 @@ return [ ], 'diskspace' => [ 'label' => lng('customer.diskspace') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 6, @@ -153,6 +156,7 @@ return [ ], 'traffic' => [ 'label' => lng('customer.traffic') . ' (' . lng('customer.gib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 4, @@ -160,6 +164,7 @@ return [ ], 'subdomains' => [ 'label' => lng('customer.subdomains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -167,6 +172,7 @@ return [ ], 'emails' => [ 'label' => lng('customer.emails'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -174,6 +180,7 @@ return [ ], 'email_accounts' => [ 'label' => lng('customer.accounts'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -181,6 +188,7 @@ return [ ], 'email_forwarders' => [ 'label' => lng('customer.forwarders'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -188,6 +196,7 @@ return [ ], 'email_quota' => [ 'label' => lng('customer.email_quota') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -196,12 +205,14 @@ return [ ], 'ftps' => [ 'label' => lng('customer.ftps'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9 ], 'mysqls' => [ 'label' => lng('customer.mysqls'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, diff --git a/lib/formfields/admin/admin/formfield.admin_edit.php b/lib/formfields/admin/admin/formfield.admin_edit.php index d5cf9493..ef15245d 100644 --- a/lib/formfields/admin/admin/formfield.admin_edit.php +++ b/lib/formfields/admin/admin/formfield.admin_edit.php @@ -132,6 +132,7 @@ return [ ], 'customers' => [ 'label' => lng('admin.customers'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['customers']) ? '0' : $result['customers'], 'maxlength' => 9, @@ -145,6 +146,7 @@ return [ ], 'domains' => [ 'label' => lng('admin.domains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['domains']) ? '0' : $result['domains'], 'maxlength' => 9, @@ -158,6 +160,7 @@ return [ ], 'diskspace' => [ 'label' => lng('customer.diskspace') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['diskspace']) ? '0' : $result['diskspace'], 'maxlength' => 6, @@ -165,6 +168,7 @@ return [ ], 'traffic' => [ 'label' => lng('customer.traffic') . ' (' . lng('customer.gib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['traffic']) ? '0' : $result['traffic'], 'maxlength' => 4, @@ -172,6 +176,7 @@ return [ ], 'subdomains' => [ 'label' => lng('customer.subdomains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['subdomains']) ? '0' : $result['subdomains'], 'maxlength' => 9, @@ -179,6 +184,7 @@ return [ ], 'emails' => [ 'label' => lng('customer.emails'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['emails']) ? '0' : $result['emails'], 'maxlength' => 9, @@ -186,6 +192,7 @@ return [ ], 'email_accounts' => [ 'label' => lng('customer.accounts'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_accounts']) ? '0' : $result['email_accounts'], 'maxlength' => 9, @@ -193,6 +200,7 @@ return [ ], 'email_forwarders' => [ 'label' => lng('customer.forwarders'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_forwarders']) ? '0' : $result['email_forwarders'], 'maxlength' => 9, @@ -200,6 +208,7 @@ return [ ], 'email_quota' => [ 'label' => lng('customer.email_quota') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_quota']) ? '0' : $result['email_quota'], 'maxlength' => 9, @@ -208,12 +217,14 @@ return [ ], 'ftps' => [ 'label' => lng('customer.ftps'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['ftps']) ? '0' : $result['ftps'], 'maxlength' => 9 ], 'mysqls' => [ 'label' => lng('customer.mysqls'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['mysqls']) ? '0' : $result['mysqls'], 'maxlength' => 9, diff --git a/lib/formfields/admin/customer/formfield.customer_add.php b/lib/formfields/admin/customer/formfield.customer_add.php index 8df804c4..91579890 100644 --- a/lib/formfields/admin/customer/formfield.customer_add.php +++ b/lib/formfields/admin/customer/formfield.customer_add.php @@ -187,6 +187,7 @@ return [ 'fields' => [ 'diskspace' => [ 'label' => lng('customer.diskspace') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 16, @@ -194,6 +195,7 @@ return [ ], 'traffic' => [ 'label' => lng('customer.traffic') . ' (' . lng('customer.gib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 14, @@ -201,6 +203,7 @@ return [ ], 'subdomains' => [ 'label' => lng('customer.subdomains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -208,6 +211,7 @@ return [ ], 'emails' => [ 'label' => lng('customer.emails'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -215,6 +219,7 @@ return [ ], 'email_accounts' => [ 'label' => lng('customer.accounts'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -222,6 +227,7 @@ return [ ], 'email_forwarders' => [ 'label' => lng('customer.forwarders'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -229,6 +235,7 @@ return [ ], 'email_quota' => [ 'label' => lng('customer.email_quota') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, @@ -251,12 +258,14 @@ return [ ], 'ftps' => [ 'label' => lng('customer.ftps'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9 ], 'mysqls' => [ 'label' => lng('customer.mysqls'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => 0, 'maxlength' => 9, diff --git a/lib/formfields/admin/customer/formfield.customer_edit.php b/lib/formfields/admin/customer/formfield.customer_edit.php index 92f3d88f..f873e731 100644 --- a/lib/formfields/admin/customer/formfield.customer_edit.php +++ b/lib/formfields/admin/customer/formfield.customer_edit.php @@ -198,6 +198,7 @@ return [ 'fields' => [ 'diskspace' => [ 'label' => lng('customer.diskspace') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['diskspace']) ? '0' : $result['diskspace'], 'maxlength' => 16, @@ -205,6 +206,7 @@ return [ ], 'traffic' => [ 'label' => lng('customer.traffic') . ' (' . lng('customer.gib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['traffic']) ? '0' : $result['traffic'], 'maxlength' => 14, @@ -212,6 +214,7 @@ return [ ], 'subdomains' => [ 'label' => lng('customer.subdomains'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['subdomains']) ? '0' : $result['subdomains'], 'maxlength' => 9, @@ -219,6 +222,7 @@ return [ ], 'emails' => [ 'label' => lng('customer.emails'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['emails']) ? '0' : $result['emails'], 'maxlength' => 9, @@ -226,6 +230,7 @@ return [ ], 'email_accounts' => [ 'label' => lng('customer.accounts'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_accounts']) ? '0' : $result['email_accounts'], 'maxlength' => 9, @@ -233,6 +238,7 @@ return [ ], 'email_forwarders' => [ 'label' => lng('customer.forwarders'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_forwarders']) ? '0' : $result['email_forwarders'], 'maxlength' => 9, @@ -240,6 +246,7 @@ return [ ], 'email_quota' => [ 'label' => lng('customer.email_quota') . ' (' . lng('customer.mib') . ')', + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['email_quota']) ? '0' : $result['email_quota'], 'maxlength' => 9, @@ -262,6 +269,7 @@ return [ ], 'ftps' => [ 'label' => lng('customer.ftps'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['ftps']) ? '0' : $result['ftps'], 'maxlength' => 9, @@ -269,6 +277,7 @@ return [ ], 'mysqls' => [ 'label' => lng('customer.mysqls'), + 'desc' => lng('panel.use_checkbox_for_unlimited'), 'type' => 'textul', 'value' => empty($result['mysqls']) ? '0' : $result['mysqls'], 'maxlength' => 9, diff --git a/lng/de.lng.php b/lng/de.lng.php index f8054bdb..9c5eb363 100644 --- a/lng/de.lng.php +++ b/lng/de.lng.php @@ -1242,6 +1242,7 @@ Vielen Dank, Ihr Administrator', ], 'upload_import' => 'Hochladen und importieren', 'profile' => 'Mein Profil', + 'use_checkbox_for_unlimited' => 'Der Wert "0" deaktiviert die Resource. Die Checkbox rechts erlaubt "unlimitierte" Nutzung.', ], 'phpfpm' => [ 'vhost_httpuser' => 'Lokaler Benutzer für PHP-FPM (Froxlor-Vhost)', diff --git a/lng/en.lng.php b/lng/en.lng.php index 39b69856..5f755c5c 100644 --- a/lng/en.lng.php +++ b/lng/en.lng.php @@ -1355,6 +1355,7 @@ Yours sincerely, your administrator', ], 'upload_import' => 'Upload and import', 'profile' => 'My profile', + 'use_checkbox_for_unlimited' => 'The value "0" deactivates this resource. The checkbox on the right allows "unlimited" usage.', ], 'phpfpm' => [ 'vhost_httpuser' => 'Local user to use for PHP-FPM (Froxlor vHost)',