get_member_row_field(get_member(), 'm_password_compat_scheme'); } else { $compat = ''; } non_overridden__handle_active_logout(); if ($compat == 'facebook') { require_code('facebook_connect'); global $FACEBOOK_CONNECT; if ($FACEBOOK_CONNECT !== null) { $FACEBOOK_CONNECT->destroySession(); } $GLOBALS['FACEBOOK_LOGOUT'] = true; $GLOBALS['BOOTSTRAPPING'] = false; // We know we've set up enough to be able to do a clean inform_exit screen require_lang('facebook'); require_javascript('facebook'); require_code('site'); $tpl = do_template('FACEBOOK_FOOTER', null, null, true, null, '.tpl', 'templates', 'default'); attach_to_screen_footer($tpl); inform_exit(do_lang_tempcode('LOGGED_OUT_OF_FACEBOOK_ACCOUNT')); } $GLOBALS['MEMBER_CACHED'] = $GLOBALS['FORUM_DRIVER']->get_guest_id(); }