index a05c6a1c0de4fbb3195d818ada9e9cd70fd6ec28..2c759829e891250265451d489ef753d79655277b 100644 (file)
$ldap->cd($this->orig_dn);
$ldap->modify($this->attrs);
$this->handle_post_events("remove");
- @log::log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
if(!$this->view_logged){
$this->view_logged = TRUE;
- @log::log("view","ogroups/".get_class($this),$this->dn);
+ new log("view","ogroups/".get_class($this),$this->dn);
}
/***************
$ldap->modify ($this->attrs);
if($this->initially_was_account){
- @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}else{
- @log::log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
if(!$this->didAction){
));
}
+ function PrepareForCopyPaste($source)
+ {
+ /* Create used ntp server array */
+ $this->gotoNtpServer= array();
+ if(isset($source['gotoNtpServer'])){
+ $this->inheritTimeServer = false;
+ unset($source['gotoNtpServer']['count']);
+ foreach($source['gotoNtpServer'] as $server){
+ $this->gotoNtpServer[$server] = $server;
+ }
+ }
+ /* Set inherit checkbox state */
+ if(in_array("default",$this->gotoNtpServer)){
+ $this->inheritTimeServer = true;
+ $this->gotoNtpServer=array();
+ }
+
+ /* Create available ntp options */
+ $this->gotoNtpServers = $this->config->data['SERVERS']['NTP'];
+ foreach($this->gotoNtpServers as $key => $server){
+ if($server == "default"){
+ unset($this->gotoNtpServers[$key]);
+ }
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: