$repl) { $text = str_replace($sub, $repl, $text); } } /** * SECURITY CHANGE: * Removed eval() completely. * Old system allowed PHP injection via templates. * * Now only plain text substitution is supported. */ // Output buffering kept for compatibility with legacy usage ob_start(); echo $text; return ob_get_clean(); } ?>