server/lib/classes/ini_parser.inc.php
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ class ini_parser { class ini_parser{ var $config; @@ -37,9 +37,8 @@ $lines = explode("\n",$ini); foreach($lines as $line) { $line = trim($line); if($line != '') { $line = trim($line); if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) { $section = strtolower($matches[1]); } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) { @@ -70,4 +69,4 @@ } ?> ?>