Subversion Repositories ALCASAR

Rev

Rev 2775 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2775 Rev 2976
Line 128... Line 128...
128
    {
128
    {
129
        $dom = new DOMDocument('1.0', 'UTF-8');
129
        $dom = new DOMDocument('1.0', 'UTF-8');
130
        $root = $dom->createElement("Plugin_".$this->_plugin_name);
130
        $root = $dom->createElement("Plugin_".$this->_plugin_name);
131
        $dom->appendChild($root);
131
        $dom->appendChild($root);
132
        $this->xml = new SimpleXMLExtended(simplexml_import_dom($dom), $enc);
132
        $this->xml = new SimpleXMLExtended(simplexml_import_dom($dom), $enc);
-
 
133
        $plugname = strtoupper($this->_plugin_name);
-
 
134
        if (((PSI_OS == 'WINNT') || (PSI_OS == 'Linux')) &&
-
 
135
           defined('PSI_PLUGIN_'.$plugname.'_WMI_HOSTNAME') &&
-
 
136
           (!defined('PSI_WMI_HOSTNAME') || (PSI_WMI_HOSTNAME != constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_WMI_HOSTNAME')))) {
-
 
137
            $this->xml->addAttribute('Hostname', constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_WMI_HOSTNAME'));
-
 
138
        }
133
    }
139
    }
134
}
140
}