From ad998656e2bde373619c5cd4ec0578034d8548ba Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Tue, 27 Sep 2011 06:59:19 -0400 Subject: [PATCH] - Changed FastCGI buffers for ISPConfig nginx vhost because otherwise you get "upstream sent too big header while reading response header from upstream" on OpenSUSE. - Added 502 error page ("Bad Gateway"). - Added "fastcgi_intercept_errors on;" to nginx vhost template so that ISPConfig's error pages are displayed instead of the default nginx ones. --- interface/lib/classes/ini_parser.inc.php | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/interface/lib/classes/ini_parser.inc.php b/interface/lib/classes/ini_parser.inc.php index 6821667..6303115 100644 --- a/interface/lib/classes/ini_parser.inc.php +++ b/interface/lib/classes/ini_parser.inc.php @@ -31,13 +31,13 @@ class ini_parser{ private $config; - + //* Converts a ini string to array public function parse_ini_string($ini) { $ini = str_replace("\r\n", "\n", $ini); $lines = explode("\n", $ini); foreach($lines as $line) { - $line = trim($line); + $line = trim($line); if($line != '') { if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) { $section = strtolower($matches[1]); @@ -49,8 +49,8 @@ } return $this->config; } - - + + //* Converts a config array to a string public function get_ini_string($config_array = '') { if($config_array == '') $config_array = $this->config; @@ -61,17 +61,14 @@ if($item != ''){ $value = trim($value); $item = trim($item); - $content .= "$item=$value\n"; - } + $content .= "$item=$value\n"; + } } $content .= "\n"; } return $content; } - - - - + } -?> \ No newline at end of file +?> -- Gitblit v1.9.1