|
|
|
@ -162,6 +162,7 @@ function iil_ReadLine($fp, $size) {
|
|
|
|
|
$line = '';
|
|
|
|
|
if ($fp) {
|
|
|
|
|
do {
|
|
|
|
|
// FIXME: hardcode size?
|
|
|
|
|
$buffer = fgets($fp, 2048);
|
|
|
|
|
if ($buffer === false) {
|
|
|
|
|
break;
|
|
|
|
@ -176,10 +177,12 @@ function iil_MultLine($fp, $line) {
|
|
|
|
|
$line = chop($line);
|
|
|
|
|
if (ereg('\{[0-9]+\}$', $line)) {
|
|
|
|
|
$out = '';
|
|
|
|
|
|
|
|
|
|
preg_match_all('/(.*)\{([0-9]+)\}$/', $line, $a);
|
|
|
|
|
$bytes = $a[2][0];
|
|
|
|
|
while (strlen($out) < $bytes) {
|
|
|
|
|
$out.=chop(iil_ReadLine($fp, 1024));
|
|
|
|
|
$line = iil_ReadLine($fp, 1024);
|
|
|
|
|
$out .= chop($line);
|
|
|
|
|
}
|
|
|
|
|
$line = $a[1][0] . "\"$out\"";
|
|
|
|
|
}
|
|
|
|
|