Line 84... |
Line 84... |
84 |
*
|
84 |
*
|
85 |
* @return void
|
85 |
* @return void
|
86 |
*/
|
86 |
*/
|
87 |
private function _getconfig()
|
87 |
private function _getconfig()
|
88 |
{
|
88 |
{
|
- |
|
89 |
if ((strtoupper($this->_plugin_name) !== 'DISKLOAD') &&
|
89 |
if ((!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_ACCESS')) &&
|
90 |
(!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_ACCESS')) &&
|
90 |
(!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_FILE')) &&
|
91 |
(!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_FILE')) &&
|
91 |
(!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_SHOW_SERIAL'))) {
|
92 |
(!defined('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_SHOW_SERIAL'))) {
|
92 |
$this->global_error->addError("phpsysinfo.ini", "Config for plugin ".$this->_plugin_name." not exist!");
|
93 |
$this->global_error->addError("phpsysinfo.ini", "Config for plugin ".$this->_plugin_name." not exist!");
|
93 |
}
|
94 |
}
|
94 |
}
|
95 |
}
|
95 |
|
96 |
|
96 |
/**
|
97 |
/**
|
97 |
* check if there is a default translation file availabe and also the required js file for
|
98 |
* check if there is a default translation file availabe and also the required js file for
|
Line 129... |
Line 130... |
129 |
$dom = new DOMDocument('1.0', 'UTF-8');
|
130 |
$dom = new DOMDocument('1.0', 'UTF-8');
|
130 |
$root = $dom->createElement("Plugin_".$this->_plugin_name);
|
131 |
$root = $dom->createElement("Plugin_".$this->_plugin_name);
|
131 |
$dom->appendChild($root);
|
132 |
$dom->appendChild($root);
|
132 |
$this->xml = new SimpleXMLExtended(simplexml_import_dom($dom), $enc);
|
133 |
$this->xml = new SimpleXMLExtended(simplexml_import_dom($dom), $enc);
|
133 |
$plugname = strtoupper($this->_plugin_name);
|
134 |
$plugname = strtoupper($this->_plugin_name);
|
134 |
if (((PSI_OS == 'WINNT') || (PSI_OS == 'Linux')) &&
|
135 |
if ((PSI_OS == 'Linux') && defined('PSI_PLUGIN_'.$plugname.'_SSH_HOSTNAME') &&
|
- |
|
136 |
(!defined('PSI_SSH_HOSTNAME') || (PSI_SSH_HOSTNAME != constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_SSH_HOSTNAME')))) {
|
- |
|
137 |
$this->xml->addAttribute('Hostname', constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_SSH_HOSTNAME'));
|
135 |
defined('PSI_PLUGIN_'.$plugname.'_WMI_HOSTNAME') &&
|
138 |
} elseif (((PSI_OS == 'WINNT') || (PSI_OS == 'Linux')) && defined('PSI_PLUGIN_'.$plugname.'_WMI_HOSTNAME') &&
|
136 |
(!defined('PSI_WMI_HOSTNAME') || (PSI_WMI_HOSTNAME != constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_WMI_HOSTNAME')))) {
|
139 |
(!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'));
|
140 |
$this->xml->addAttribute('Hostname', constant('PSI_PLUGIN_'.strtoupper($this->_plugin_name).'_WMI_HOSTNAME'));
|
138 |
}
|
141 |
}
|
139 |
}
|
142 |
}
|
140 |
}
|
143 |
}
|