| @@ 1284-1297 (lines=14) @@ | ||
| 1281 | { |
|
| 1282 | $stream->open($path); |
|
| 1283 | ||
| 1284 | while (!$stream->eof()) |
|
| 1285 | { |
|
| 1286 | $line = $stream->gets(); |
|
| 1287 | ||
| 1288 | // Comment lines |
|
| 1289 | if (preg_match('/^(;.*)$/', $line, $matches)) |
|
| 1290 | { |
|
| 1291 | // $contents[] = $matches[1]."\n"; |
|
| 1292 | } |
|
| 1293 | else |
|
| 1294 | { |
|
| 1295 | break; |
|
| 1296 | } |
|
| 1297 | } |
|
| 1298 | ||
| 1299 | if ($refexists) |
|
| 1300 | { |
|
| @@ 1304-1313 (lines=10) @@ | ||
| 1301 | $stream->close(); |
|
| 1302 | $stream->open($refpath); |
|
| 1303 | ||
| 1304 | while (!$stream->eof()) |
|
| 1305 | { |
|
| 1306 | $line = $stream->gets(); |
|
| 1307 | ||
| 1308 | // Comment lines |
|
| 1309 | if (!preg_match('/^(;.*)$/', $line, $matches)) |
|
| 1310 | { |
|
| 1311 | break; |
|
| 1312 | } |
|
| 1313 | } |
|
| 1314 | } |
|
| 1315 | } |
|
| 1316 | else |
|