Index: trunk/globals.php =================================================================== diff -u -r78 -r89 --- trunk/globals.php (.../globals.php) (revision 78) +++ trunk/globals.php (.../globals.php) (revision 89) @@ -1,6 +1,6 @@ 0) { + //echo $line . " - "; + if(eregi('^[[a-z]+]$',$line)) { + //echo 'section'; + $section = substr($line,1,(strlen($line)-2)); + if ($parse_section) { + $retval[$section] = array(); + } + continue; + } elseif(eregi('=',$line)) { + //echo 'main element'; + list($key,$val) = explode(' = ',$line); + if (!$parse_section) { + $retval[trim($key)] = str_replace('"', '', $val); + } + else { + $retval[$section][trim($key)] = str_replace('"', '', $val); + } + } //end if + //echo '
'; + } //end if + } //end foreach + + return $retval; +} + function &GetADODBConnection() { global $g_adodbConnection, $g_DBType, $g_DBHost,$g_DBUser,$g_DBUserPassword,$g_DBName,$g_DebugMode;