aMSN Log Parser
';
// Output the colour.
echo '';
// We're in a colour tag now.
$in_colour = true;
// Where are we up to now? Find the next colour tag.
$bidx = strpos($line, '|"L', $aidx);
if (!$bidx)
$bidx = -1;
}
if (strpos($line, '|"L') === false)
$string = $line;
elseif ($bidx != -1)
$string = substr($line, $aidx, ($bidx - $aidx));
else
$string = substr($line, $aidx);
//echo htmlentities($string);
echo htmlspecialchars($string);
$aidx = $bidx;
}
echo '
';
}
// Close any remaining colour tag.
if ($in_colour == true)
echo '';
}
else
{
?>