index 8c819844268b3bfe87aa82adcc014dd9f883358b..7768f2563998017301e02eb4e41fc2663ae54574 100644 (file)
<?php
-require_once("class_goService.inc");
-
class servkolab extends goService {
/* CLI vars */
var $cli_summary = "Manage server basic objects";
var $kolabFreeBusyFuture = "1";
var $k = "kolab";
var $cyrus_imap = "TRUE";
- var $cyrus_pop3 = "TRUE";
+ var $cyrus_pop3 = "FALSE";
var $cyrus_imaps = "TRUE";
var $cyrus_pop3s = "TRUE";
var $cyrus_sieve = "TRUE";
var $apache_allow_unauthenticated_fb = "TRUE";
- var $proftpd_ftp = "TRUE";
+ var $proftpd_ftp = "FALSE";
var $apache_http = "TRUE";
var $kolabHost = array();
var $orig_cn = "";
var $DisplayName = "Kolab mail service";
var $StatusFlag = "";
- function servkolab($config, $dn = NULL, $parent= NULL)
+ function servkolab(&$config, $dn = NULL, $parent= NULL)
{
/* Setting the hostname and tell this Plugin that we are the kolab extension*/
$this->hostname = preg_replace('/^cn=([^,]+),.*$/', '\1', $dn);
if($this->is_account && !$this->view_logged){
$this->view_logged = TRUE;
- @log::log("view","server/".get_class($this),$this->dn);
+ new log("view","server/".get_class($this),$this->dn);
}
/***************
return;
}
- /* Integration check, not translatet because they can't pop up at all, only for debug */
+ /* Integration check, not translated because they can't pop up at all, only for debug */
if(count($this->kolabHost) == 0){
print_red("Server - Kolab tab : This is not possible, we can't remove an account which doesn't exists.");
return;
show_ldap_error($ldap->get_error(), sprintf(_("Removing host entry from system server/kolab with dn '%s' failed."),$this->dn));
}
- @log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
/* Optionally execute a command after we're done */
$this->handle_post_events("remove");
$ldap->$mode($this->attrs);
if($mode == "add"){
- @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}else{
- @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving system server/kolab with dn '%s' failed."),$this->dn));