- Fixed FS#2736 - entering multiple DNS MX records outputs errors...
| | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | function onInsert() { |
| | | global $app, $conf; |
| | | |
| | | // Check if record is existing already |
| | | $duplicate_mx = $app->db->queryOneRecord("SELECT * FROM dns_rr WHERE zone = ".$app->functions->intval($this->dataRecord["zone"])." AND name = '".$this->dataRecord["name"]."' AND type = '".$this->dataRecord["type"]."' AND data = '".$this->dataRecord["data"]."' AND ".$app->tform->getAuthSQL('r')); |
| | | |
| | | if(is_array($duplicate_mx) && !empty($duplicate_mx)) $app->error($app->tform->wordbook["duplicate_mx_record_txt"]); |
| | | |
| | | parent::onInsert(); |
| | | } |
| | | |
| | | function onAfterInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | $wb['name_error_regex'] = 'Der Hostname hat das falsche Format.'; |
| | | $wb['data_error_empty'] = 'Mailserver Hostname ist leer'; |
| | | $wb['data_error_regex'] = 'Mailserver Hostname Format ist ungültig'; |
| | | $wb["duplicate_mx_record_txt"] = 'Doppelter MX-Eintrag.'; |
| | | ?> |
| | |
| | | $wb["name_error_regex"] = 'The hostname has the wrong format.'; |
| | | $wb["data_error_empty"] = 'Mailserver hostname empty'; |
| | | $wb["data_error_regex"] = 'Mailserver hostname format invalid'; |
| | | $wb["duplicate_mx_record_txt"] = 'Duplicate MX record.'; |
| | | ?> |