position == "top") $pos_regx = "!<\!--BeforeDocument\(([0-9]+),([0-9]+)\)-->!is"; else $pos_regx = "!<\!--AfterDocument\(([0-9]+),([0-9]+)\)-->!is"; $GLOBALS['__g_addon_info__'] = $addon_info; $output = preg_replace_callback($pos_regx, matchDocument, $output); ?>