From b349c0bda24c5a0780f650f4e65ee9fce6a4df91 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 17 Aug 2012 11:15:29 -0400 Subject: [PATCH] Removed debug code from remoting.inc.php --- server/lib/classes/getconf.inc.php | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/server/lib/classes/getconf.inc.php b/server/lib/classes/getconf.inc.php index a4bc832..c2207a1 100644 --- a/server/lib/classes/getconf.inc.php +++ b/server/lib/classes/getconf.inc.php @@ -34,12 +34,12 @@ function get_server_config($server_id, $section = '') { global $app; - + if(!is_array($this->config[$server_id])) { $app->uses('ini_parser'); $server_id = intval($server_id); - $server = $app->db->queryOneRecord("SELECT config FROM server WHERE server_id = $server_id"); - $this->config[$server_id] = $app->ini_parser->parse_ini_string(stripslashes($server["config"])); + $server = $app->db->queryOneRecord('SELECT config FROM server WHERE server_id = '.$server_id); + $this->config[$server_id] = $app->ini_parser->parse_ini_string(stripslashes($server['config'])); } if($section == '') { @@ -54,12 +54,11 @@ 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"])); + $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]; } - } -?> \ No newline at end of file +?> -- Gitblit v1.9.1