| | |
| | | return ($section == '') ? $this->config[$server_id] : $this->config[$server_id][$section]; |
| | | } |
| | | |
| | | public function get_global_config() { |
| | | public function get_global_config($section = '') { |
| | | global $app; |
| | | |
| | | die("not yet implemented"); |
| | | if(!is_array($this->config['global'])) { |
| | | $app->uses('ini_parser'); |
| | | $tmp = $app->db->queryOneRecord("SELECT config FROM sys_ini WHERE sysini_id = 1"); |
| | | $this->config['global'] = $app->ini_parser->parse_ini_string(stripslashes($tmp["config"])); |
| | | } |
| | | return ($section == '') ? $this->config['global'] : $this->config['global'][$section]; |
| | | } |
| | | } |
| | | |