From 0903f3a7d2a4dbc21c9d3da2bc960ab40c9f0cc1 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Jun 2006 05:09:42 +0000 Subject: [PATCH] Only display unused NTP server, added gotoWorkstationTemplate to servGeneric to be able to save gotoShare git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 9 ++++++++- plugins/admin/systems/class_workstationStartup.inc | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index 237919660..464070e6d 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -254,7 +254,14 @@ class workgeneric extends plugin $smarty->assign("modes", $this->modes); $smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']); $smarty->assign("syslogservers", $this->gotoSyslogServers); - $smarty->assign("ntpservers", $this->config->data['SERVERS']['NTP']); + + $ntpser = array(); + foreach($this->gotoNtpServers as $server){ + if(!in_array($server,$this->gotoNtpServer)){ + $ntpser[$server] = $server; + } + } + $smarty->assign("gotoNtpServers", $ntpser); /* Variables */ foreach(array("base", "gotoMode", "gotoSyslogServer", "gotoNtpServer") as $val){ diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 88e4d38c7..b04971069 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -904,7 +904,7 @@ class workstartup extends plugin }elseif(isset($this->parent->by_object['workgeneric'])){ $this->objectclasses = array("GOhard", "FAIobject"); }elseif(isset($this->parent->by_object['servgeneric'])){ - $this->objectclasses = array("GOhard", "FAIobject"); + $this->objectclasses = array("GOhard", "FAIobject","gotoWorkstationTemplate"); }else{ print "Object Type Configuration : unknown"; exit(); -- 2.30.2