diff --git a/plugins/admin/systems/class_gosaLogServer.inc b/plugins/admin/systems/class_gosaLogServer.inc
index 51288754eba0451a2717fd22dba02eb3fe885f12..2e7c052b405ed047009c421d44b73ad47860855a 100644 (file)
<?php
-require_once("class_goService.inc");
class gosaLogServer extends goService{
/* This plugin only writes its objectClass */
var $objectclasses = array("gosaLogServer");
- var $attributes = array("cn","goLogDB","goLogDBUser","goLogDBPassword");
+ var $attributes = array("goLogDB","goLogDBUser","goLogDBPassword");
var $StatusFlag = "";
/* This class can't be assigned twice so it conflicts with itsself */
var $goLogDBUser = "";
var $goLogDBPassword = "";
var $goLogDB = "";
+ var $view_logged =FALSE;
- function gosaLogServer($config,$dn)
+ function gosaLogServer(&$config,$dn)
{
- plugin::plugin($config,$dn);
- $this->DisplayName = _("GOsa logging service");
+ goService::goService($config,$dn);
+ $this->DisplayName = _("GOsa MySQL logging service");
}
{
$smarty = get_smarty();
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","server/".get_class($this),$this->dn);
+ }
+
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $name => $translation){
$smarty->assign($name."ACL",$this->getacl($name));
function getListEntry()
{
$fields = goService::getListEntry();
- $fields['Message'] = _("GOsa logging service");
+ $fields['Message'] = _("GOsa MySQL logging service");
$fields['AllowEdit'] = true;
$fields['AllowStart'] = FALSE;
$fields['AllowStop'] = FALSE;
"plProvidedAcls"=> array(
"goLogDB" => _("Database"),
"goLogDBUser" => _("User"),
- "goLogDBPassword" => _("Password"))
+ "goLogDBPassword" => _("Password"),
+ "viewEntries" => _("Allow view of entries on this server"))
));
}
}