- Timestamp:
- 10/31/07 15:31:27 (1 year ago)
- Files:
-
- 1 modified
-
trunk/fx-conf.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fx-conf.php
r3 r6 5 5 * @package config 6 6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 7 * @changelog - 2007-04-30 - bug correction regarding single quote escaped in values string 8 * - bug correction when saving some multiple multiline values containing '=' at certain position on a line (not the first). 7 * @changelog - 2007-10-31 - now write_conf_file() keep empty lines. 8 * - 2007-04-30 - bug correction regarding single quote escaped in values string 9 * - bug correction when saving some multiple multiline values containing '=' at certain position on a line (not the first). 9 10 * - 2007-04-26 - replace double quote strings with single quote string at eval time to avoid replacement of escaped values (ie: \[rnt....]) 10 11 * - 2007-03-27 - change regexp in parse_conf_file() to better support multilines values (line ended by \) … … 72 73 $fileExist = file_exists($file); 73 74 # check if file exist or not 74 if( $fileExist && ! $force)75 if( !( $fileExist || $force ) ) 75 76 return FALSE; 76 77 $oldconf = $fileExist?file($file):null; … … 102 103 if(! preg_match('!\\\\\s*\n$!',$line)) 103 104 $follow = FALSE; 105 }else{ 106 $newconf[$linenb] = $line; 104 107 } 105 108 if( (! $follow) && @isset($config[$var]) )
