exit;
}
if (!empty($board_config['privmsg_disable'])) {
    return;
}
if (!empty($setmodules)) {
    $mode = $HTTP_GET_VARS['mode'];
    if ($mode == 'privmsg') {
        $pmmode = $HTTP_GET_VARS['pmmode'];
        define('IN_PCP', true);
        define('IN_PRIVMSG', true);
        switch ($pmmode) {
            case 'newpm':
                include $phpbb_root_path . './includes/privmsga_popup.' . $phpEx;
                exit;
                break;
            case 'review':
                include_once $phpbb_root_path . './includes/privmsga_review.' . $phpEx;
                $view_user_id = intval($HTTP_GET_VARS[POST_USERS_URL]);
                $privmsg_recip_id = intval($HTTP_GET_VARS[POST_POST_URL]);
                privmsg_review($view_user_id, $privmsg_recip_id, false);
                break;
        }
    }
    pcp_set_menu('privmsg', 80, __FILE__, 'Private_Messaging', 'Private_Messaging');
    return;
}
define('IN_PCP', true);
define('IN_PRIVMSG', true);
// get the standard program
include $phpbb_root_path . './privmsga.' . $phpEx;
        $template->assign_block_vars('switch_icon_checkbox.row', array());
        for ($j = 0; $j < $icon_per_row && $offset < count($icones_sort); $j++) {
            $icon_id = $icones_sort[$offset];
            // send to cell or cell_none
            $template->assign_block_vars('switch_icon_checkbox.row.cell', array('ICON_ID' => $icones[$icon_id]['ind'], 'ICON_CHECKED' => $post_icon == $icones[$icon_id]['ind'] ? ' checked="checked"' : '', 'ICON_IMG' => get_icon_title($icones[$icon_id]['ind'], 2)));
            $offset++;
        }
    }
}
// system
_hide(POST_USERS_URL, $view_user_id);
_hide('pmmode', $pmmode);
_hide('folder', $folder_id);
_hide('start', $pm_start);
if (!empty($privmsg_id)) {
    _hide(POST_POST_URL, $privmsg_recip_id);
}
$template->assign_vars(array('S_POST_ACTION' => append_sid($main_pgm), 'S_HIDDEN_FORM_FIELDS' => _hidden_get()));
// send to browser
privmsg_footer();
// privmsg review
if ($review) {
    include_once $phpbb_root_path . 'includes/privmsga_review.' . $phpEx;
    privmsg_review($view_user_id, $privmsg_recip_id, true);
    $template->assign_block_vars('switch_inline_mode', array());
    $template->assign_var_from_handle('TOPIC_REVIEW_BOX', 'reviewbody');
}
$template->pparse('body');
if (!defined('IN_PCP')) {
    include $phpbb_root_path . 'includes/page_tail.' . $phpEx;
}