config= parse_ini_file($file, TRUE); $ret= preg_replace( array('/^.*\nWarning: /', '/\n.*$/'), array('', ''), ob_get_contents()); ob_end_clean(); /* Bail out in case of errors */ if ($ret != ""){ throw new ConfigManagerException($ret); } echo "Test config and load additional configuration data from LDAP\n"; #$this->test_config(); #$this->load_servers(); -> Section servers/...; #$this->load_plugin_configs(); -> Section pugins/name/value; print_r($this->config); } public function save($file){ } public function set_section($section_name){ } public function &get_section(){ } public function &get_sections(){ } public function &get_value($section){ } public function set_value($section, $value){ } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>