1 <?php
3 class goSyslogServer extends goService{
5 var $cli_summary = "This plugin is used within the ServerService Pluign \nand indicates that this server has syslog server enabled.";
6 var $cli_description = "Some longer text\nfor help";
7 var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
9 /* This plugin only writes its objectClass */
10 var $objectclasses = array("goSyslogServer");
11 var $attributes = array();
12 var $StatusFlag = "goSyslogServerStatus";
14 /* This class can't be assigned twice so it conflicts with itsself */
15 var $conflicts = array("goSyslogServer");
17 var $DisplayName = "";
18 var $dn = NULL;
19 var $acl;
20 var $cn = "";
21 var $goSyslogServerStatus = "";
22 var $view_logged =FALSE;
24 function goSyslogServer(&$config,$dn)
25 {
26 goService::goService($config,$dn);
27 $this->DisplayName = _("Logging service");
28 }
31 function execute()
32 {
33 if($this->is_account && !$this->view_logged){
34 $this->view_logged = TRUE;
35 new log("view","server/".get_class($this),$this->dn);
36 }
39 $smarty = get_smarty();
40 return($smarty->fetch(get_template_path("goSyslogServer.tpl",TRUE,dirname(__FILE__))));
41 }
44 function getListEntry()
45 {
46 $fields = goService::getListEntry();
47 $fields['Message'] = _("Logging service");
48 $fields['AllowEdit'] = false;
49 return($fields);
50 }
52 function check()
53 {
54 $message = plugin::check();
55 return($message);
56 }
59 function save_object()
60 {
61 plugin::save_object();
62 }
64 /* Return plugin informations for acl handling */
65 function plInfo()
66 {
67 return (array(
68 "plShortName" => _("Logging service"),
69 "plDescription" => _("Logging service")." ("._("Services").")",
70 "plSelfModify" => FALSE,
71 "plDepends" => array(),
72 "plPriority" => 88,
73 "plSection" => array("administration"),
74 "plCategory" => array("server"),
76 "plProvidedAcls"=> array()
77 ));
78 }
81 }
82 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
83 ?>