.= $backupFirstPart;
$realLastPart = $';
$firstPart = $';
}
else
{
last;
}
}
if($line == $LINE_NO || $line == $LINE_NO + 1)
{
$currentPart = $backupFirstPart;
$firstPart = $realFirstPart.$currentPart;
$html=$firstPart.$add.substr($realLastPart,length($currentPart),length($text));
}
elsif($line > $LINE_NO+1)
{
my ($curPassageLen,$beforeLen);
$currentPart = $backupFirstPart;
$curPassageLen = &$myLength($currentPart);
$beforeLen = $real_len - length($currentPart);
$line_1 = int($curPassageLen/$wpl);
$firstLen = $curPassageLen;
if($line-1-$LINE_NO-$add_line > 0)
{
$firstLen = $firstLen - ($line-1-$LINE_NO-$add_line)*$wpl;
if($add_line == 1)
{
$firstLen = $firstLen - ($curPassageLen - $line_1*$wpl);
}
}
else
{
if($add_line == 1)
{
$firstLen = $firstLen - ($curPassageLen - $line_1*$wpl);
}
}
$firstLen = &$myLength1($currentPart, $firstLen);
$firstLen = &$myCheckText($currentPart, $firstLen);
$firstPart = $realFirstPart.substr($currentPart, 0, $firstLen);
$html=$firstPart.$add.substr($realLastPart,$firstLen,length($text));
}
else
{
$firstPart = $text;
$html=$firstPart.$add;
}
$html = &$myEncode($html);
}
#html:$html ck="this.value=''" />