diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc
index da96ea33085a730f92d14292ccc4847762c19182..abeb947feb465bbca5ec3c7731d960cc76757ce8 100644 (file)
<?php
-require_once("class_goService.inc");
-
class goSyslogServer extends goService{
var $cli_summary = "This plugin is used within the ServerService Pluign \nand indicates that this server has syslog server enabled.";
var $acl;
var $cn = "";
var $goSyslogServerStatus = "";
+ var $view_logged =FALSE;
- function goSyslogServer($config,$dn)
+ function goSyslogServer(&$config,$dn)
{
- plugin::plugin($config,$dn);
- $this->DisplayName = _("Logging service");
+ goService::goService($config,$dn);
+ $this->DisplayName = _("Syslog server");
}
function execute()
{
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","server/".get_class($this),$this->dn);
+ }
+
+
$smarty = get_smarty();
return($smarty->fetch(get_template_path("goSyslogServer.tpl",TRUE,dirname(__FILE__))));
}
function getListEntry()
{
$fields = goService::getListEntry();
- $fields['Message'] = _("Logging service");
+ $fields['Message'] = _("Syslog server");
$fields['AllowEdit'] = false;
return($fields);
}