diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc
index 65bad054ec8964bf5e1c9945cf50e021a909217a..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'] = _("Syslog service");
+ $fields['Message'] = _("Syslog server");
$fields['AllowEdit'] = false;
return($fields);
}
function plInfo()
{
return (array(
- "plShortName" => _("Syslog"),
- "plDescription" => _("Syslog service"),
+ "plShortName" => _("Logging service"),
+ "plDescription" => _("Logging service")." ("._("Services").")",
"plSelfModify" => FALSE,
"plDepends" => array(),
- "plPriority" => 0,
+ "plPriority" => 88,
"plSection" => array("administration"),
"plCategory" => array("server"),