class php_include_plugin
{
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if($hookName == 'include_php')
{
ob_start();
require_once('../my_include.php');
$contents .= ob_get_contents();
ob_end_clean();
}
}
}