summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7acb34)
raw | patch | inline | side by side (parent: a7acb34)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Sep 2007 07:41:08 +0000 (07:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Sep 2007 07:41:08 +0000 (07:41 +0000) |
Added option to add ptrrecord automatically
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7206 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7206 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZoneEntries.inc | patch | blob | history | |
plugins/admin/systems/network.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index 3d86d940cfe238b99fca78e9cf218ca974c95767..bcfa78c872353925ebcf80721f125e41a491e19c 100644 (file)
}
}
+ /* Add PTR record
+ */
+ if((preg_match("/^AddPtr_/",$name)) && ($once)){
+ $once = false;
+ if(isset($this->Devices[$Name]['RECORDS'][$RecordID])){
+ $tmp = $this->Devices[$Name]['RECORDS'][$RecordID];
+ $ip = $tmp['value'];
+ $match = preg_replace("/^[^\/]*+\//","",$this->reverseName);
+ $ip = preg_replace("/^".normalizePreg($match)."/","",$ip);
+ $ip = preg_replace("/^\./","",$ip);
+ $tmp['type'] = "pTRRecord";
+ $tmp['value'] = $ip;
+ $this->Devices[$Name]['RECORDS'][] = $tmp;
+ }
+ }
+
+
}
/* Fill templating stuff */
<td>
<input type='text' value='".$record['value']."' name='ValueSelection_".$name."' style='width:250px;'>
</td>
- <td style='width:50px;text-align:right;'>
+ <td style='width:75px;text-align:right;'>
<input type='image' name='AddRecord_".$name."' src='images/list_new.png' alt='"._("Add")."' title='"._("Add")."'>
<input type='image' name='RemoveRecord_".$name."' src='images/edittrash.png' alt='"._("Remove")."' title='"._("Remove")."'>
- </td>
+ ";
+
+ if($record['type'] == "aRecord"){
+ $str .="<input type='image' name='AddPtr_".$name."' src='images/network.png'
+ alt='"._("Add PTR")."' title='"._("Add PTR record")."'>";
+ }else{
+ $str .= "<img src='images/empty.png' alt=''>";
+ }
+
+ $str.=
+ "</td>
</tr>";
}
$str .="</table>";
index 9527e32dddcc16111b982af3b97b336e7b4d0c03..0fc2bb51bb28fb3ed473cdf3defd7bbbaf415ed3 100644 (file)
</td>
{if $DNS_is_account==true}
<td style="width:50%;vertical-align:top;border-left:1px solid #b0b0b0;" valign="top">
+
+ {if $ZoneCnt}
{if $DNSAccount == true}
<input type="checkbox" name="DNS_is_account" value="1"
checked="checked"