/** * generate the xml document * * @return void */ private function _buildXml() { if (!$this->_plugin_request || $this->_complete_request) { if ($this->_sys === null) { $this->_sys = $this->_sysinfo->getSys(); } $this->_buildVitals(); $this->_buildNetwork(); $this->_buildHardware(); $this->_buildMemory(); $this->_buildFilesystems(); $this->_buildMbinfo(); $this->_buildUpsinfo(); } $this->_buildPlugins(); $this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding())); }
/** * generate the xml document * * @return void */ private function _buildXml() { if (!$this->_plugin_request || $this->_complete_request) { if (version_compare("5.2", PHP_VERSION, ">")) { $this->_errors->addError("ERROR", "PHP 5.2 or greater is required, some things may not work correctly"); } if ($this->_sys === null) { if (PSI_DEBUG === true) { // unstable version check if (!is_numeric(substr(PSI_VERSION, -1))) { $this->_errors->addError("WARN", "This is an unstable version of phpSysInfo, some things may not work correctly"); } // Safe mode check $safe_mode = @ini_get("safe_mode") ? true : false; if ($safe_mode) { $this->_errors->addError("WARN", "PhpSysInfo requires to set off 'safe_mode' in 'php.ini'"); } // Include path check $include_path = @ini_get("include_path"); if ($include_path && $include_path != "") { $include_path = preg_replace("/(:)|(;)/", "\n", $include_path); if (preg_match("/^\\.\$/m", $include_path)) { $include_path = "."; } } if ($include_path != ".") { $this->_errors->addError("WARN", "PhpSysInfo requires '.' inside the 'include_path' in php.ini"); } // popen mode check if (defined("PSI_MODE_POPEN") && PSI_MODE_POPEN === true) { $this->_errors->addError("WARN", "Installed version of PHP does not support proc_open() function, popen() is used"); } } $this->_sys = $this->_sysinfo->getSys(); } $this->_buildVitals(); $this->_buildNetwork(); $this->_buildHardware(); $this->_buildMemory(); $this->_buildFilesystems(); $this->_buildMbinfo(); $this->_buildUpsinfo(); } $this->_buildPlugins(); $this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding())); }
/** * generate the xml document * * @return void */ private function _buildXml() { if (!$this->_plugin_request || $this->_complete_request) { if ($this->_sys === null) { if (PSI_DEBUG === true) { // Safe mode check $safe_mode = @ini_get("safe_mode") ? TRUE : FALSE; if ($safe_mode) { $this->_errors->addError("WARN", "PhpSysInfo requires to set off 'safe_mode' in 'php.ini'"); } // Include path check $include_path = @ini_get("include_path"); if ($include_path && $include_path != "") { $include_path = preg_replace("/(:)|(;)/", "\n", $include_path); if (preg_match("/^\\.\$/m", $include_path)) { $include_path = "."; } } if ($include_path != ".") { $this->_errors->addError("WARN", "PhpSysInfo requires '.' inside the 'include_path' in php.ini"); } // popen mode check if (defined("PSI_MODE_POPEN") && PSI_MODE_POPEN === true) { $this->_errors->addError("WARN", "Installed version of PHP does not support proc_open() function, popen() is used"); } } $this->_sys = $this->_sysinfo->getSys(); } $this->_buildVitals(); $this->_buildNetwork(); $this->_buildHardware(); $this->_buildMemory(); $this->_buildFilesystems(); $this->_buildMbinfo(); $this->_buildUpsinfo(); } $this->_buildPlugins(); $this->_xml->combinexml($this->_errors->errorsAddToXML($this->_sysinfo->getEncoding())); }