Commit 43824ba3 authored by latham's avatar latham
Browse files

Validate DNS notify host. Customers were putting email addresses in there....

Validate DNS notify host. Customers were putting email addresses in there. Testing for IP addresses.
parent 3cdb9a8f
......@@ -175,6 +175,10 @@ $form["tabs"]['dns_soa'] = array (
'also_notify' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
'errmsg'=> 'also_notify_error_regex'
),
),
'default' => '',
'value' => '',
'width' => '30',
......
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['mbox_error_empty'] = 'Email is empty.';
$wb['mbox_error_regex'] = 'Email format invalid.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['mbox_error_empty'] = 'Email is empty.';
$wb['mbox_error_regex'] = 'Email format invalid.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,6 +22,7 @@ $wb['ns_error_regex'] = 'NS tem um formato inválido.';
$wb['mbox_error_empty'] = 'Correio está em branco.';
$wb['mbox_error_regex'] = 'Correio com formato inválido.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Atualizar ACL';
$wb['seconds_txt'] = 'Segundos';
$wb['eg_domain_tld'] = 'e.x. dominio.ext';
......
......@@ -22,6 +22,7 @@ $wb['ns_error_regex'] = 'NS má chybný formát.';
$wb['mbox_error_empty'] = 'Email je prázdný.';
$wb['mbox_error_regex'] = 'Email má chybný formát.';
$wb['also_notify_txt'] = 'Také upozornit';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Aktualizovat ACL';
$wb['seconds_txt'] = 'vteřin';
$wb['eg_domain_tld'] = 'např. domena.cz';
......
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS hat ein ungültiges Format.';
$wb['mbox_error_empty'] = 'Email ist leer.';
$wb['mbox_error_regex'] = 'Email Format ungültig.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS με μη έγκυρη μορφοποίηση.';
$wb['mbox_error_empty'] = 'Το Email δεν έχει οριστεί.';
$wb['mbox_error_regex'] = 'Email με μη έγκυρη μορφοποίηση.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,6 +22,7 @@ $wb["ns_error_regex"] = 'NS has a invalid format.';
$wb["mbox_error_empty"] = 'Email is empty.';
$wb["mbox_error_regex"] = 'Email format invalid.';
$wb["also_notify_txt"] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb["update_acl_txt"] = 'Update ACL';
$wb['seconds_txt'] = 'Seconds';
$wb['eg_domain_tld'] = 'e.g. domain.tld';
......
......@@ -22,5 +22,8 @@ $wb['ns_error_regex'] = 'Formato de NS no válido.';
$wb['mbox_error_empty'] = 'Correo vacío.';
$wb['mbox_error_regex'] = 'Formato de correo no válido.';
$wb['also_notify_txt'] = 'Notificar también a';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Actualizar ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'Nimipalvelin-kenttä on tyhjä.';
$wb['mbox_error_empty'] = 'Sähköpostiosoite on tyhjä.';
$wb['mbox_error_regex'] = 'Sähköpostiosoite on vääränlainen';
$wb['also_notify_txt'] = 'Läheta ilmoitus';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Päivitä ACL';
?>
......@@ -22,6 +22,7 @@ $wb['mbox_error_empty'] = "L'adresse e-mail est vide.";
$wb['mbox_error_regex'] = "L'adresse e-mail est dun format invalide.";
$wb['limit_dns_zone_txt'] = "Le nombre maximal de zones DNS pour votre compte est atteint.";
$wb['also_notify_txt'] = "Notifier également";
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = "Mettre à jour ACL";
?>
......
......@@ -22,6 +22,7 @@ $wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['mbox_error_empty'] = 'Email is empty.';
$wb['mbox_error_regex'] = 'Email format invalid.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
$wb['seconds_txt'] = 'Seconds';
$wb['eg_domain_tld'] = 'e.g. domain.tld';
......
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'Format NS salah.';
$wb['mbox_error_empty'] = 'Email kosong.';
$wb['mbox_error_regex'] = 'Format Email tidak valid.';
$wb['also_notify_txt'] = 'Notifikasi Juga';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Mutakhirkan ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['mbox_error_empty'] = 'Email is empty.';
$wb['mbox_error_regex'] = 'Email format invalid.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS が不正な文字を含んでいます。';
$wb['mbox_error_empty'] = 'メールアドレスを指定してください';
$wb['mbox_error_regex'] = 'メールアドレスの形式が不正です。';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS heeft een ongeldig format.';
$wb['mbox_error_empty'] = 'E-mail is niet ingvuld.';
$wb['mbox_error_regex'] = 'E-mail formaat ongeldig.';
$wb['also_notify_txt'] = 'ook notifcatie';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS ma niepoprawny format.';
$wb['mbox_error_empty'] = 'E-mail jest pusty.';
$wb['mbox_error_regex'] = 'E-mail ma niepoprawny format.';
$wb['also_notify_txt'] = 'Także powiadom';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Zaktualizuj ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS tem um formato inválido.';
$wb['mbox_error_empty'] = 'Correio está em branco.';
$wb['mbox_error_regex'] = 'Correio com formato inválido.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Actualizar ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS are un format invalid';
$wb['mbox_error_empty'] = 'Email-ul este gol';
$wb['mbox_error_regex'] = 'Format email invalid.';
$wb['also_notify_txt'] = 'Also Notify';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Update ACL';
?>
......@@ -22,5 +22,6 @@ $wb['ns_error_regex'] = 'NS имеет неправильный формат.';
$wb['mbox_error_empty'] = 'Email пуст.';
$wb['mbox_error_regex'] = 'Email имеет неправильный формат.';
$wb['also_notify_txt'] = 'Известить';
$wb['also_notify_error_regex'] = 'Please use an IP address.';
$wb['update_acl_txt'] = 'Обновить ACL';
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment