/** * Read conf_global * * @access public * @return bool */ public static function readGlobalConfig() { /* Fetch core writeable files */ require_once IPS_KERNEL_PATH . 'classXML.php'; /*noLibHook*/ $xml = new classXML(IPSSetUp::charSet); try { $xml->load(IPS_ROOT_PATH . 'setup/xml/config.xml'); foreach ($xml->fetchElements('package') as $xmlelement) { $data = $xml->fetchElementsFromRecord($xmlelement); self::$_config = $data; } return TRUE; } catch (Exception $error) { return FALSE; } }