summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b75734e)
raw | patch | inline | side by side (parent: b75734e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 10:20:19 +0000 (10:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 22 Mar 2010 10:20:19 +0000 (10:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16984 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc | patch | blob | history |
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc
index 999e69861a43bae205102f7696a33adaa38c4db5..164bc4871cfc436d3faa60c55ba0f364af94d56e 100644 (file)
foreach($_POST as $name => $value){
- /* Add a new Record in given object
+ /* Extract informations out of post name
*/
- $tmp = preg_replace("/^.*_(.*)$/","\\1",$name);
- $tmp2 = explode("|",$tmp);
+ $tmp = preg_replace("/^[^_]*_/","\\1",$name);
+ $tmp2 = explode("|",postDecode($tmp));
/* Add new host entry
*/
if(count($tmp2) != 2) continue;
- $Name = postDecode($tmp2[0]);
+ $Name = $tmp2[0];
$RecordID = $tmp2[1];
/* Add new REcord
/* Extract informations out of post name
*/
- $tmp = preg_replace("/^.*_/","\\1",$name);
- $tmp2 = explode("|",$tmp);
+ $tmp = preg_replace("/^[^_]*_/","\\1",$name);
+ $tmp2 = explode("|",postDecode($tmp));
if(count($tmp2) != 2) continue;
- $Name = postDecode($tmp2[0]);
-
+ $Name = $tmp2[0];
$RecordID = $tmp2[1];
/* Check for value change
/* Extract informations out of post name
*/
- $tmp = preg_replace("/^.*_/","\\1",$name);
- $tmp2 = explode("|",$tmp);
-
+ $tmp = preg_replace("/^[^_]*_/","\\1",$name);
+ $tmp2 = explode("|",postDecode($tmp));
+
if(count($tmp2) != 2) continue;
- $Name = postDecode($tmp2[0]);
+ $Name = $tmp2[0];
$RecordID = $tmp2[1];
/* Host renamed
/* Walk through all defined records
*/
- $str.= "<table cellspacing='0' cellpadding='0'>";
+ $str.= "<table summary=''>";
foreach($obj['RECORDS'] as $id => $record){
/* Skip not selectable entries */
/* Create unique post name
*/
- $name = postEncode($objKey)."|".$id;
+ $name = postEncode($objKey."|".$id);
/* Only first host entry name should be editable
*/