diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc
index 52a80a4d6965a136c9a4a7bf46414ee39494daaa..3ab952904f96b368458cb829d39cd8c843d52145 100644 (file)
<?php
-require_once("class_goService.inc");
-
class goGlpiServer extends goService {
var $cli_summary = "This pluign is used within the ServerService Pluign \nand indicates that this server supports asterisk management.";
var $goGlpiAdmin ="";
var $goGlpiDatabase ="";
var $goGlpiPassword ="";
+ var $view_logged =FALSE;
- function goGlpiServer($config,$dn)
+ function goGlpiServer(&$config,$dn)
{
- plugin::plugin($config,$dn);
+ goService::goService($config,$dn);
$this->DisplayName = _("Inventory database");
}
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();
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
{
$fields = goService::getListEntry();
$fields['Message'] = _("Inventory database service");
- $fields['AllowRemove']= true;
$fields['AllowEdit'] = true;
return($fields);
}
function save_object()
{
- if(isset($_POST['goLogDBServerPosted'])){
+ if(isset($_POST['goGlpiServer_posted'])){
plugin::save_object();
}
}
function plInfo()
{
return (array(
- "plShortName" => _("Glpi server"),
- "plDescription" => _("Glpi server service"),
+ "plShortName" => _("Inventory database"),
+ "plDescription" => _("Inventory database")." ("._("Services").")" ,
"plSelfModify" => FALSE,
"plDepends" => array(),
- "plPriority" => 0,
+ "plPriority" => 93,
"plSection" => array("administration"),
"plCategory" => array("server"),