function process_remove_head($retWpInc, $loc = 'inner')
{
    global $wpUnited, $wpu_dtd, $wpu_page_title;
    //Locate where the WordPress <body> begins, and snip off everything above and including the statement
    $bodyLocStart = strpos($retWpInc, "<body");
    $bodyLoc = strpos($retWpInc, ">", $bodyLocStart);
    $wpHead = substr($retWpInc, 0, $bodyLoc + 1);
    $retWpInc = substr_replace($retWpInc, '', 0, $bodyLoc + 1);
    //grab the page title
    $begTitleLoc = strpos($wpHead, "<title>");
    $titleLen = strpos($wpHead, "</title>") - $begTitleLoc;
    $wpTitleStr = substr($wpHead, $begTitleLoc + 7, $titleLen - 7);
    // set page title
    $wpu_page_title = trim($wpTitleStr);
    //get anything inportant from the WP or phpBB <head> and integrate it into our phpBB page...
    $header_info = '';
    $findItems = array('<!--[if' => '<![endif]-->', '<meta ' => '/>', '<script ' => '</script>', '<link ' => '/>', '<style ' => '</style>', '<!-- wpu-debug -->' => '<!-- /wpu-debug -->');
    $header_info = head_snip($wpHead, $findItems);
    //get the DTD if we're doing DTD switching
    if ($wpUnited->get_setting('dtdSwitch') && !$wpUnited->should_do_action('template-p-in-w')) {
        $wpu_dtd = head_snip($wpHead, array('<!DOCTYPE' => '>'));
    }
    //fix font sizes coded in pixels  by phpBB -- un-comment this line if WordPress text looks too small
    //$wpHdrInfo .= "<style type=\"text/css\" media=\"screen\"> body { font-size: 62.5% !important;} </style>";
    if ($loc == 'outer') {
        $wpUnited->set_outer_content($retWpInc);
    } else {
        $wpUnited->set_inner_content($retWpInc);
    }
    return $header_info;
}
function process_head(&$retWpInc)
{
    global $wpSettings, $template, $wpuAbs;
    //Locate where the WordPress <body> begins, and snip of everything above and including the statement
    $bodyLocStart = strpos($retWpInc, "<body");
    $bodyLoc = strpos($retWpInc, ">", $bodyLocStart);
    $wpHead = substr($retWpInc, 0, $bodyLoc + 1);
    $retWpInc = substr_replace($retWpInc, '', 0, $bodyLoc + 1);
    //grab the page title
    $begTitleLoc = strpos($wpHead, "<title>");
    $titleLen = strpos($wpHead, "</title>") - $begTitleLoc;
    $wpTitleStr = substr($wpHead, $begTitleLoc + 7, $titleLen - 7);
    // set page title
    $GLOBALS['wpu_page_title'] = trim($wpTitleStr);
    //get anything inportant from the WP or phpBB <head> and integrate it into our phpBB page...
    $header_info = '';
    $findItems = array('<!--[if' => '<![endif]-->', '<meta ' => '/>', '<script ' => '</script>', '<link ' => '/>', '<style ' => '</style>', '<!-- wpu-debug -->' => '<!-- /wpu-debug -->');
    $header_info = head_snip($wpHead, $findItems);
    //get the DTD if we're doing DTD switching
    if ($wpSettings['dtdSwitch'] && !defined('WPU_REVERSE_INTEGRATION')) {
        $wp_dtd = head_snip($wpHead, array('<!DOCTYPE' => '>'));
        $wpuAbs->add_template_switch('WP_DTD', $wp_dtd);
    }
    //fix font sizes coded in pixels  by phpBB -- un-comment this line if WordPress text looks too small
    //$wpHdrInfo .= "<style type=\"text/css\" media=\"screen\"> body { font-size: 62.5% !important;} </style>";
    return $header_info;
}