summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7a7286)
raw | patch | inline | side by side (parent: f7a7286)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Mar 2006 06:23:59 +0000 (06:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Mar 2006 06:23:59 +0000 (06:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2864 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index 12f9c211e3850b87a6e76bfe995efa8841f70eb8..d7d43acf769ce3f150001bb686689234a61f87f4 100644 (file)
$smarty->assign("Zones",$this->Zones);
$smarty->assign("ZoneKeys",($this->Zones));
$smarty->assign("IPisMust",(($this->IPisMust)||($this->DNS_is_account)));
- $changeStateForRecords ="";
- $smarty->assign("records",$this->generateRecordsList(&$changeStateForRecords));
+
+ $tmp = $this->generateRecordsList();
+ $changeStateForRecords = $tmp['changeStateForRecords'];
+ $smarty->assign("records",$tmp['str']);
$smarty->assign("changeStateForRecords",$changeStateForRecords);
-// $smarty->assign("dNSClasses",array("IN"=>"IN"));
$smarty->assign("staticAddress","<font class=\"must\">*</font>");
$display.= $smarty->fetch(get_template_path('network.tpl', TRUE));
return($display);
/* Generate a list of new ldap entries,
& $delete contains all dns which should be deleted
*/
- $entries = $this->generate_LDAP_entries(&$delete);
+ $tmp = $this->generate_LDAP_entries();
+
+ $entries = $tmp['entries'];
+ $delete = $tmp['delete'];
/* Delete dns */
foreach($delete as $dn => $del){
/* Create html table with all used record types
*/
- function generateRecordsList($changeStateForRecords)
+ function generateRecordsList()
{
$changeStateForRecords = "";
" </td>".
" </tr>".
"</table>";
- return($str);
+ $ret = array("str" => $str, "changeStateForRecords" => $changeStateForRecords);
+ return($ret);
}
/* Create a html select box which allows us to select different types of records */
/* this is used to generate ldap friendly output of our
dns configuration
*/
- function generate_LDAP_entries($delete)
+ function generate_LDAP_entries()
{
$entries = array();
$delete = array();
}
}
- return($entries);
+ $ret = array("entries"=> $entries,"delete"=>$delete);
+ return($ret);
}
}