diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc
index bba487bc32719ff45dc1b3bc32d6846815f9dcbe..5a4f40f8240d39131c15534c873e6e37114f40ca 100644 (file)
<?php
-require_once("class_goService.inc");
-
class goNtpServer extends goService{
var $cli_summary = "This pluign is used within the ServerService Pluign \nand indicates that this server supports NTP service.";
var $cn = "";
var $view_logged =FALSE;
- function goNtpServer($config,$dn)
+ function goNtpServer(&$config,$dn)
{
goService::goService($config,$dn);
$this->DisplayName = _("Time service (NTP)");
));
}
+
+ function PrepareForCopyPaste($source)
+ {
+ plugin::PrepareForCopyPaste($source);
+
+ /* Load arrays */
+ $tmp = array();
+ if (isset($source['goTimeSource'])){
+ for ($i= 0; $i<$source['goTimeSource']['count']; $i++){
+ $tmp[$source['goTimeSource'][$i]]= $source['goTimeSource'][$i];
+ }
+ }
+ $this->goTimeSource= $tmp;
+
+
+ }
function check(){ return array();}