$value ) { if ( !in_array( $option, array('_wpnonce', '_wp_http_referer', 'action', 'submit') ) ) { $option = trim( $option ); $value = is_array( $value ) ? $value : trim( $value ); $value = stripslashes_deep( $value ); if (($option == 'wp_siteurl' || $option == 'wp_home') && !empty($value)) { $value = rtrim($value, '/') . '/'; } if ( $value ) { bb_update_option( $option, $value ); } else { bb_delete_option( $option ); } } } if ($action == 'update-users') { bb_apply_wp_role_map_to_orphans(); } $goback = add_query_arg('updated', $action, wp_get_referer()); bb_safe_redirect($goback); } switch (@$_GET['updated']) { case 'update-users': bb_admin_notice( __('User role mapping saved.') ); break; case 'update-options': bb_admin_notice( __('User integration settings saved.') ); break; } bb_get_admin_header(); ?>

' . "\n"; $roles .= '' . "\n"; global $wp_roles; foreach ($wp_roles->get_names() as $key => $value) { if ($key == $set) { $selected = ' selected="selected"'; } else { $selected = ''; } $roles .= '' . "\n"; } $roles .= '' . "\n"; return $roles; } $wpRoles = array( 'administrator' => 'WordPress Administrator', 'editor' => 'WordPress Editor', 'author' => 'WordPress Author', 'contributor' => 'WordPress Contributor', 'subscriber' => 'WordPress Subscriber' ); $wpRolesMap = bb_get_option('wp_roles_map'); ?>
$wpRoleName) { ?>

Note: updating these settings may cause you to be logged out!'); ?>

WordPress address (URL) setting in your WordPress general settings.'); ?>

Blog address (URL) setting in your WordPress general settings.'); ?>

this WordPress admin page.'); ?>

this WordPress admin page. Sometimes this value is not set in WordPress, in that case you can leave this setting blank as well.'); ?>

this WordPress admin page.'); ?>

'COOKIE_DOMAIN', 'cookiepath' => 'COOKIEPATH' ); $wp_settings = ''; foreach ($cookie_settings as $bb_setting => $wp_setting) { if ( isset($bb->$bb_setting) ) { $wp_settings .= 'define(\'' . $wp_setting . '\', \'' . $bb->$bb_setting . '\');' . "\n"; } } ?>

wp-config.php file in the root directory of your WordPress installation.'); ?>

AUTH_KEY BB_AUTH_KEY
SECURE_AUTH_KEY BB_SECURE_AUTH_KEY
LOGGED_IN_KEY BB_LOGGED_IN_KEY

$wp_table_prefix in your WordPress wp-config.php file.'); ?>

wp_'); ?>

/>

not required. Look before you leap!'); ?>

localhost.'); ?>

utf8, but you will need to match the character set which you created the database with.'); ?>

$bb_setting) ) { $bb_settings .= '$bb->' . $bb_setting . ' = \'' . $bb->$bb_setting . '\';' . "\n"; } } ?>

bb-config.php file in the root directory of your bbPress installation. Afterwards, the settings in this form will reflect the hard coded values, but you will not be able to edit them here.'); ?>