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