Skip to content

Commit 28ad72e

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
2 parents 575df56 + 2258502 commit 28ad72e

File tree

5 files changed

+33
-14
lines changed

5 files changed

+33
-14
lines changed

interface/lib/classes/tform_base.inc.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,26 @@ function validateField($field_name, $field_value, $validators) {
992992
}
993993
}
994994
break;
995+
case 'ISDOMAIN':
996+
$error = false;
997+
if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n';
998+
if($validator['allowempty'] == 'y' && $field_value == '') {
999+
//* Do nothing
1000+
} else {
1001+
if(function_exists('filter_var')) {
1002+
if(filter_var('check@'.$field_value, FILTER_VALIDATE_EMAIL) === false) {
1003+
$errmsg = $validator['errmsg'];
1004+
if(isset($this->wordbook[$errmsg])) {
1005+
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
1006+
} else {
1007+
$this->errorMessage .= $errmsg."<br />\r\n";
1008+
}
1009+
}
1010+
1011+
} else $this->errorMessage .= "function filter_var missing <br />\r\n";
1012+
}
1013+
unset($error);
1014+
break;
9951015
case 'ISEMAIL':
9961016
$error = false;
9971017
if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n';

interface/web/mail/form/mail_domain.tform.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888
'errmsg'=> 'domain_error_empty'),
8989
1 => array ( 'type' => 'UNIQUE',
9090
'errmsg'=> 'domain_error_unique'),
91-
2 => array ( 'type' => 'REGEX',
92-
'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/',
91+
2 => array ( 'type' => 'ISDOMAIN',
9392
'errmsg'=> 'domain_error_regex'),
9493
),
9594
'default' => '',

interface/web/mail/mail_domain_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function onBeforeDelete() {
7878
}
7979

8080
// Delete all spamfilters that belong to this domain
81-
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email = ?", '%@' . $domain);
81+
$records = $app->db->queryAllRecords("SELECT id FROM spamfilter_users WHERE email like ?", '%@' . $domain);
8282
foreach($records as $rec) {
8383
$app->db->datalogDelete('spamfilter_users', 'id', $rec['id']);
8484
}

interface/web/sites/lib/lang/nl_web_domain.lng

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $wb['active_txt'] = 'Actief';
2121
$wb['document_root_txt'] = 'Documentroot';
2222
$wb['system_user_txt'] = 'Linux gebruiker';
2323
$wb['system_group_txt'] = 'Linux Groep';
24-
$wb['ip_address_txt'] = 'IP-Adres';
24+
$wb['ip_address_txt'] = 'IPv4 adres';
2525
$wb['vhost_type_txt'] = 'VHost type';
2626
$wb['hd_quota_txt'] = 'Harddisk quota';
2727
$wb['traffic_quota_txt'] = 'Traffic quota';
@@ -72,7 +72,7 @@ $wb['no_flag_txt'] = 'No flag';
7272
$wb['save_certificate_txt'] = 'Save certificate';
7373
$wb['create_certificate_txt'] = 'Create certificate';
7474
$wb['delete_certificate_txt'] = 'Delete certificate';
75-
$wb['ipv6_address_txt'] = 'IPv6-Adres';
75+
$wb['ipv6_address_txt'] = 'IPv6 adres';
7676
$wb['nginx_directives_txt'] = 'nginx Directives';
7777
$wb['seo_redirect_txt'] = 'SEO Redirect';
7878
$wb['non_www_to_www_txt'] = 'Non-www -&gt; www';

interface/web/sites/lib/lang/nl_web_vhost_domain.lng

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $wb['active_txt'] = 'Actief';
2121
$wb['document_root_txt'] = 'Document Root';
2222
$wb['system_user_txt'] = 'Linux gebruiker';
2323
$wb['system_group_txt'] = 'Linux Groep';
24-
$wb['ip_address_txt'] = 'IP-Adres';
24+
$wb['ip_address_txt'] = 'IPv4 adres';
2525
$wb['vhost_type_txt'] = 'VHost type';
2626
$wb['hd_quota_txt'] = 'Harddisk quota';
2727
$wb['traffic_quota_txt'] = 'Traffic quota';
@@ -49,7 +49,7 @@ $wb['error_ssl_organisation_empty'] = 'SSL Organisatie is niet ingvuld.';
4949
$wb['error_ssl_organisation_unit_empty'] = 'SSL Organisatie afdeling is niet ingvuld.';
5050
$wb['error_ssl_country_empty'] = 'SSL land is niet ingvuld.';
5151
$wb['client_group_id_txt'] = 'Klant';
52-
$wb['stats_password_txt'] = 'Webstatististieken wachtwoord';
52+
$wb['stats_password_txt'] = 'Webstatistieken wachtwoord';
5353
$wb['allow_override_txt'] = 'Apache AllowOverride';
5454
$wb['limit_web_quota_free_txt'] = 'Max. beschikbare harddisk quota';
5555
$wb['ssl_state_error_regex'] = 'Ongeldige SSL Provincie/staat. Geldige karakters zijn: a-z, 0-9 and .,-_';
@@ -62,8 +62,8 @@ $wb['redirect_error_regex'] = 'Ongeldig redirect pad. Heldige redirects zijn bij
6262
$wb['php_open_basedir_txt'] = 'PHP open_basedir';
6363
$wb['traffic_quota_exceeded_txt'] = 'Traffic quota overschreden';
6464
$wb['ruby_txt'] = 'Ruby';
65-
$wb['stats_user_txt'] = 'Webstatististieken gebruikersnaam';
66-
$wb['stats_type_txt'] = 'Webstatististieken programma';
65+
$wb['stats_user_txt'] = 'Webstatistieken gebruikersnaam';
66+
$wb['stats_type_txt'] = 'Webstatistieken programma';
6767
$wb['custom_php_ini_txt'] = 'Custom php.ini instellingen';
6868
$wb['error_ssl_cert_empty'] = 'SSL Certificate field is empty';
6969
$wb['none_txt'] = 'None';
@@ -73,7 +73,7 @@ $wb['no_flag_txt'] = 'No flag';
7373
$wb['save_certificate_txt'] = 'Certificaat opslaan';
7474
$wb['create_certificate_txt'] = 'Create certificate';
7575
$wb['delete_certificate_txt'] = 'Certificaat verwijderen';
76-
$wb['ipv6_address_txt'] = 'IPv6-Adres';
76+
$wb['ipv6_address_txt'] = 'IPv6 adres';
7777
$wb['nginx_directives_txt'] = 'nginx Directives';
7878
$wb['seo_redirect_txt'] = 'SEO Redirect';
7979
$wb['non_www_to_www_txt'] = 'Non-www -&gt; www';
@@ -101,10 +101,10 @@ $wb['pm_max_requests_txt'] = 'PHP-FPM pm.max_requests';
101101
$wb['pm_process_idle_timeout_error_regex'] = 'PHP-FPM pm.process_idle_timeout must be a positive integer value.';
102102
$wb['pm_max_requests_error_regex'] = 'PHP-FPM pm.max_requests must be an integer value >= 0.';
103103
$wb['pm_ondemand_hint_txt'] = 'Please note that you must have PHP version >= 5.3.9 in order to use the ondemand process manager. If you select ondemand for an older PHP version, PHP will not start anymore!';
104-
$wb['generate_password_txt'] = 'Generate Password';
105-
$wb['repeat_password_txt'] = 'Repeat Password';
106-
$wb['password_mismatch_txt'] = 'The passwords do not match.';
107-
$wb['password_match_txt'] = 'The passwords do match.';
104+
$wb['generate_password_txt'] = 'Genereer wachtwoord';
105+
$wb['repeat_password_txt'] = 'Herhaal wachtwoord';
106+
$wb['password_mismatch_txt'] = 'De wachtwoorden zijn ongelijk.';
107+
$wb['password_match_txt'] = 'De wachtwoorden zijn gelijk.';
108108
$wb['web_folder_error_regex'] = 'Invalid folder entered. Please do not enter a slash.';
109109
$wb['domain_error_autosub'] = 'There is already a subdomain with these settings.';
110110
$wb['available_php_directive_snippets_txt'] = 'Available PHP Directive Snippets:';

0 commit comments

Comments
 (0)