summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcc0bdd)
raw | patch | inline | side by side (parent: bcc0bdd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Feb 2006 13:21:37 +0000 (13:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Feb 2006 13:21:37 +0000 (13:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2693 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZone.inc | patch | blob | history | |
plugins/admin/systems/servdnseditzone.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index fcfc6780c4e7d5e218915cfe138a3a79ca073477..4e92d0ce62902b907ccecfce99db095a09e683de 100644 (file)
}
}
+ if(!preg_match("/\.$/",$this->sOAprimary)){
+ $message[] = _("Primary dns server must end with '.' to be a valid entry.");
+ }
+
+ if(!preg_match("/\.$/",$this->sOAmail)){
+ $message[] = _("Your soecified mail address must end with '.' to be a valid record.");
+ }
+
+ if(preg_match("/@/",$this->sOAmail)){
+ $message[] = _("Your mail address contains '@' replace this with '.' to enable GOsa to create a valid SOA record.");
+ }
+
+ if(preg_match("/@/",$this->sOAmail)){
+ $message[] = _("Your mail address contains '@' replace this with '.' to enable GOsa to create a valid SOA record.");
+ }
+
if($this->zoneName != strtolower($this->zoneName)){
$message[] = _("Only lowercase strings are allowed as zone name.");
}
index 97a1cb3a058ba6063c83e03f169688a2898148cb..13297a34cfd458f8257992dc4dd2229aa3c83520 100644 (file)
<td style="vertical-align:top;width:50%;border-right:1px solid #b0b0b0;">
<table summary="">
<tr>
- <td>{t}Primary dns server for this zone{/t}
+ <td>{t}Primary dns server for this zone{/t}{$must}
</td>
<td><input type="text" name="sOAprimary" value="{$sOAprimary}">
</td>
</tr>
<tr>
- <td>{t}Mail address{/t}
+ <td>{t}Mail address{/t}{$must}
</td>
<td><input type="text" name="sOAmail" value="{$sOAmail}">
</td>
</tr>
<tr>
- <td>{t}Serial number (automatically incremented){/t}
+ <td>{t}Serial number (automatically incremented){/t}{$must}
</td>
<td><input type="text" name="sOAserial" value="{$sOAserial}">
</td>
<td style="vertical-align:top;">
<table summary="">
<tr>
- <td>{t}Refresh{/t}
+ <td>{t}Refresh{/t}{$must}
</td>
<td><input type="text" name="sOArefresh" value="{$sOArefresh}">
</td>
</tr>
<tr>
- <td>{t}Retry{/t}
+ <td>{t}Retry{/t}{$must}
</td>
<td><input type="text" name="sOAretry" value="{$sOAretry}">
</td>
</tr>
<tr>
- <td>{t}Expire{/t}
+ <td>{t}Expire{/t}{$must}
</td>
<td><input type="text" name="sOAexpire" value="{$sOAexpire}">
</td>
</tr>
<tr>
- <td>{t}TTL{/t}
+ <td>{t}TTL{/t}{$must}
</td>
<td><input type="text" name="sOAttl" value="{$sOAttl}">
</td>