hello,
today i had an php-memory-error with line 72 in jat3.php.
can you change the line from
$buffer = preg_replace("/<\/body>/", $content . "\n</body>", $buffer);
to
$buffer = str_replace('</body>', $content . "\n</body>", $buffer);
imho is not necessary to use preg_replace in this line.