?????????????? includes/index.php000064400000000072151222577340010201 0ustar00

templates/default/bbpress/user-favorites.php000064400000001542151222577340015327 0ustar00

templates/default/bbpress/feedback-no-forums.php000064400000000444151222577350016021 0ustar00
templates/default/bbpress/content-single-user.php000064400000002324151222577350016256 0ustar00
templates/default/bbpress/loop-replies.php000064400000002471151222577350014766 0ustar00
id="rememberme" />
templates/default/bbpress/feedback-no-topics.php000064400000000444151222577350016007 0ustar00
templates/default/bbpress/form-topic.php000064400000020022151222577350014423 0ustar00
bbp_get_topic_id() ) ); ?>


'topic' ) ); ?>



/>


esc_html__( '— No forum —', 'bbpress' ), 'selected' => bbp_get_form_topic_forum() ) ); ?>



/>

/>

templates/default/bbpress/pagination-topics.php000064400000000747151222577350016010 0ustar00

templates/default/bbpress/content-topic-tag-edit.php000064400000001275151222577350016637 0ustar00
'
' ) ); ?>
templates/default/bbpress/form-topic-merge.php000064400000010225151222577350015524 0ustar00
false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?> bbp_get_topic_post_type(), 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post_status' => bbp_get_public_topic_statuses(), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic' ) ); ?>



templates/default/bbpress/form-user-roles.php000064400000000640151222577350015411 0ustar00
templates/default/bbpress/content-archive-topic.php000064400000002236151222577350016560 0ustar00
'
' ) ); ?>
templates/default/bbpress/loop-forums.php000064400000002211151222577350014626 0ustar00
templates/default/bbpress/form-topic-tag.php000064400000011255151222577350015204 0ustar00

templates/default/bbpress/loop-single-reply.php000064400000003453151222577350015736 0ustar00
#
>
true ) ); ?>
templates/default/bbpress/pagination-search.php000064400000000733151222577350015747 0ustar00

#

>
true ) ); ?>
templates/default/bbpress/alert-topic-lock.php000064400000001335151222577350015523 0ustar00

templates/default/bbpress/form-search.php000064400000001301151222577350014551 0ustar00
false, 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ), 'post__not_in' => array( bbp_get_reply_topic_id( bbp_get_reply_id() ) ) ) ) ) : ?>
bbp_get_topic_post_type(), 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ), 'selected' => -1, 'exclude' => bbp_get_reply_topic_id( bbp_get_reply_id() ), 'select_id' => 'bbp_destination_topic' ) ); ?>
templates/default/bbpress/form-forum.php000064400000013737151222577350014454 0ustar00
bbp_get_forum_id() ) ); ?>


'forum' ) ); ?>







'bbp_forum_parent_id', 'show_none' => esc_html__( '— No parent —', 'bbpress' ), 'selected' => bbp_get_form_forum_parent(), 'exclude' => bbp_get_forum_id() ) ); ?>

templates/default/bbpress/content-archive-forum.php000064400000001215151222577350016566 0ustar00
templates/default/bbpress/loop-single-topic.php000064400000005742151222577350015724 0ustar00 templates/default/bbpress/pagination-replies.php000064400000000750151222577350016144 0ustar00
#

>
true ) ); ?>
templates/default/bbpress/form-user-edit.php000064400000013011151222577350015206 0ustar00

$desc ) : ?>

templates/default/bbpress/content-single-forum.php000064400000002310151222577350016423 0ustar00
templates/default/bbpress/content-statistics.php000064400000003604151222577350016215 0ustar00
templates/default/bbpress/user-subscriptions.php000064400000002671151222577350016241 0ustar00

templates/default/bbpress/form-user-passwords.php000064400000004401151222577350016311 0ustar00displayed_user ) ) : ?>

#

>
templates/default/bbpress/form-anonymous.php000064400000002735151222577350015350 0ustar00




templates/default/bbpress/user-profile.php000064400000003513151222577350014766 0ustar00

@


templates/default/bbpress/form-topic-split.php000064400000011162151222577350015561 0ustar00
false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
bbp_get_topic_post_type(), 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post_status' => bbp_get_public_topic_statuses(), 'selected' => -1, 'exclude' => bbp_get_topic_id(), 'select_id' => 'bbp_destination_topic' ) ); ?>



templates/default/bbpress/user-details.php000064400000007420151222577350014754 0ustar00
'reply' ) ); ?>



/>

/>



/>

' . bbp_get_topic_tag_name() . '' ); ?>

bbp_get_topic_forum_id() ) ) ) : ?>

bbp_get_reply_forum_id() ) ) ) : ?>

9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>

'_bbp_reply_count', 'meta_value' => '1', 'meta_type' => 'NUMERIC', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>

' . bbp_get_topic_tag_name() . '' ); ?>

800 ), speed_step = vast ? 30 : 20, speed = Math.min( 12, Math.round( distance / speed_step ) ), step = Math.round( distance / speed_step ), steps = [], timer = 0; /* Scroll up */ if ( true === negative ) { while ( position > destination ) { position -= step; if ( position < destination ) { position = destination; } steps.push( position - offset ); setTimeout( function() { window.scrollTo( 0, steps.shift() ); }, timer * speed ); timer++; } /* Scroll down */ } else { while ( position < destination ) { position += step; if ( position > destination ) { position = destination; } steps.push( position - offset ); setTimeout( function() { window.scrollTo( 0, steps.shift() ); }, timer * speed ); timer++; } } /* jshint ignore:end */ }, /** * Get an element by ID * * @since 2.6.2 * @param {string} e * @returns {HTMLElement} Element */ getElement: function (e) { return document.getElementById(e); }, /** * Remove the Editor * * @since 2.6.2 * @returns {void} */ removeEditor: function () { /* Bail to avoid error */ if ( typeof ( tinyMCE ) === 'undefined' ) { return; } var tmce = tinyMCE.get( 'bbp_reply_content' ); if ( tmce && ! tmce.isHidden() ) { this.mode = 'tmce'; tmce.remove(); } else { this.mode = 'html'; } }, /** * Add the Editor * * @since 2.6.2 * @returns {void} */ addEditor: function () { /* Bail to avoid error */ if ( typeof ( tinyMCE ) === 'undefined' ) { return; } if ( 'tmce' === this.mode ) { switchEditors.go( 'bbp_reply_content', 'tmce' ); } else if ( 'html' === this.mode ) { switchEditors.go( 'bbp_reply_content', 'html' ); } } }; ;templates/default/js/engagements.js000064400000003065151222577350013452 0ustar00/* global bbpEngagementJS */ jQuery( document ).ready( function ( $ ) { function bbp_ajax_call( action, object, type, nonce, update_selector ) { var $data = { action : action, id : object, type : type, nonce : nonce }; $.post( bbpEngagementJS.bbp_ajaxurl, $data, function ( response ) { if ( response.success ) { $( update_selector ).html( response.content ); } else { if ( !response.content ) { response.content = bbpEngagementJS.generic_ajax_error; } window.alert( response.content ); } } ); } $( '#favorite-toggle' ).on( 'click', 'span a.favorite-toggle', function( e ) { e.preventDefault(); bbp_ajax_call( 'favorite', $( this ).data( 'bbp-object-id' ), $( this ).data( 'bbp-object-type' ), $( this ).data( 'bbp-nonce' ), '#favorite-toggle' ); } ); $( '#subscription-toggle' ).on( 'click', 'span a.subscription-toggle', function( e ) { e.preventDefault(); bbp_ajax_call( 'subscription', $( this ).data( 'bbp-object-id' ), $( this ).data( 'bbp-object-type' ), $( this ).data( 'bbp-nonce' ), '#subscription-toggle' ); } ); $( '.bbp-alert-outer' ).on( 'click', '.bbp-alert-close', function( e ) { e.preventDefault(); $( this ).closest( '.bbp-alert-outer' ).fadeOut(); } ); $( '.bbp-alert-outer' ).on( 'click', function( e ) { if ( this === e.target ) { $( this ).closest( '.bbp-alert-outer' ).fadeOut(); } } ); $( document ).keyup( function( e ) { if ( e.keyCode === 27 ) { $( '.bbp-alert-outer .bbp-alert-close' ).click(); } } ); } ); ;templates/default/js/reply.min.js000064400000003600151222577350013065 0ustar00/*! This file is automatically generated. */ addReply={moveForm:function(e,t,n,o){var i=this,d=i.getElement(e),l=i.getElement(n),r=i.getElement("bbp-cancel-reply-to-link"),m=i.getElement("bbp_reply_to"),c=i.getElement("bbp_topic_id");if(i.removeEditor(),d&&l&&r&&m){if(i.respondId=n,o=o||!1,!i.getElement("bbp-temp-form-div")){var p=document.createElement("div");p.id="bbp-temp-form-div",p.style.display="none",l.parentNode.appendChild(p)}return d.parentNode.appendChild(l),c&&o&&(c.value=o),m.value=t,r.style.display="",i.addEditor(),r.onclick=function(){i.cancelForm(this)},i.scrollToForm(),!1}},cancelForm:function(){var e=addReply,t=e.getElement("bbp-temp-form-div"),n=e.getElement("bbp-cancel-reply-to-link"),o=e.getElement(e.respondId);if(e.removeEditor(),t&&o)return e.getElement("bbp_reply_to").value="0",t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t),n.style.display="none",n.onclick=null,e.addEditor(),e.scrollToForm(),!1},scrollToForm:function(){var e=this,t=e.getElement("new-post").getBoundingClientRect(),n=(window.pageYOffset||document.scrollTop)-(document.clientTop||0),o=n+t.top,i=o800?30:20,m=Math.min(12,Math.round(distance/r)),c=Math.round(distance/r),p=[],s=0;if(!0===i)for(;n>o;)(n-=c)o&&(n=o),p.push(n-l),setTimeout(function(){window.scrollTo(0,p.shift())},s*m),s++},getElement:function(e){return document.getElementById(e)},removeEditor:function(){if("undefined"!=typeof tinyMCE){var e=tinyMCE.get("bbp_reply_content");e&&!e.isHidden()?(this.mode="tmce",e.remove()):this.mode="html"}},addEditor:function(){"undefined"!=typeof tinyMCE&&("tmce"===this.mode?switchEditors.go("bbp_reply_content","tmce"):"html"===this.mode&&switchEditors.go("bbp_reply_content","html"))}};;templates/default/js/editor.js000064400000002653151222577350012445 0ustar00/* global edButtons, QTags, tinymce */ jQuery(document).ready( function() { /* Use backticks instead of for the Code button in the editor */ if ( typeof( edButtons ) !== 'undefined' ) { edButtons[110] = new QTags.TagButton( 'code', 'code', '`', '`', 'c' ); QTags._buttonsInit(); } /* Tab from topic title */ jQuery( '#bbp_topic_title' ).bind( 'keydown.editor-focus', function(e) { if ( e.which !== 9 ) { return; } if ( !e.ctrlKey && !e.altKey && !e.shiftKey ) { if ( typeof( tinymce ) !== 'undefined' ) { if ( ! tinymce.activeEditor.isHidden() ) { var editor = tinymce.activeEditor.editorContainer; jQuery( '#' + editor + ' td.mceToolbar > a' ).focus(); } else { jQuery( 'textarea.bbp-the-content' ).focus(); } } else { jQuery( 'textarea.bbp-the-content' ).focus(); } e.preventDefault(); } }); /* Shift + tab from topic tags */ jQuery( '#bbp_topic_tags' ).bind( 'keydown.editor-focus', function(e) { if ( e.which !== 9 ) { return; } if ( e.shiftKey && !e.ctrlKey && !e.altKey ) { if ( typeof( tinymce ) !== 'undefined' ) { if ( ! tinymce.activeEditor.isHidden() ) { var editor = tinymce.activeEditor.editorContainer; jQuery( '#' + editor + ' td.mceToolbar > a' ).focus(); } else { jQuery( 'textarea.bbp-the-content' ).focus(); } } else { jQuery( 'textarea.bbp-the-content' ).focus(); } e.preventDefault(); } }); });;templates/default/js/editor.min.js000064400000001717151222577350013227 0ustar00/*! This file is automatically generated. */ jQuery(document).ready(function(){"undefined"!=typeof edButtons&&(edButtons[110]=new QTags.TagButton("code","code","`","`","c"),QTags._buttonsInit()),jQuery("#bbp_topic_title").bind("keydown.editor-focus",function(e){if(9===e.which&&!e.ctrlKey&&!e.altKey&&!e.shiftKey){if("undefined"!=typeof tinymce)if(tinymce.activeEditor.isHidden())jQuery("textarea.bbp-the-content").focus();else{var t=tinymce.activeEditor.editorContainer;jQuery("#"+t+" td.mceToolbar > a").focus()}else jQuery("textarea.bbp-the-content").focus();e.preventDefault()}}),jQuery("#bbp_topic_tags").bind("keydown.editor-focus",function(e){if(9===e.which&&e.shiftKey&&!e.ctrlKey&&!e.altKey){if("undefined"!=typeof tinymce)if(tinymce.activeEditor.isHidden())jQuery("textarea.bbp-the-content").focus();else{var t=tinymce.activeEditor.editorContainer;jQuery("#"+t+" td.mceToolbar > a").focus()}else jQuery("textarea.bbp-the-content").focus();e.preventDefault()}})});;templates/default/bbpress-functions.php000064400000024416151222577350014365 0ustar00 'default', 'name' => 'bbPress Default', 'version' => bbp_get_asset_version(), 'dir' => trailingslashit( bbpress()->themes_dir . 'default' ), 'url' => trailingslashit( bbpress()->themes_url . 'default' ), ), 'default_theme' ) ); $this->setup_actions(); } /** * Setup the theme hooks * * @since 2.1.0 bbPress (r3732) * * @access private */ private function setup_actions() { /** Scripts ***********************************************************/ add_action( 'bbp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS add_action( 'bbp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS add_filter( 'bbp_enqueue_scripts', array( $this, 'localize_topic_script' ) ); // Enqueue theme script localization add_action( 'bbp_ajax_favorite', array( $this, 'ajax_favorite' ) ); // Handles the topic ajax favorite/unfavorite add_action( 'bbp_ajax_subscription', array( $this, 'ajax_subscription' ) ); // Handles the topic ajax subscribe/unsubscribe /** Template Wrappers *************************************************/ add_action( 'bbp_before_main_content', array( $this, 'before_main_content' ) ); // Top wrapper HTML add_action( 'bbp_after_main_content', array( $this, 'after_main_content' ) ); // Bottom wrapper HTML /** Override **********************************************************/ do_action_ref_array( 'bbp_theme_compat_actions', array( &$this ) ); } /** * Inserts HTML at the top of the main content area to be compatible with * the Twenty Twelve theme. * * @since 2.1.0 bbPress (r3732) */ public function before_main_content() { ?>
array( 'file' => 'css/bbpress.css', 'dependencies' => array() ) ); // Optionally support an RTL variant if ( is_rtl() ) { $defaults['bbp-default-rtl'] = array( 'file' => 'css/bbpress-rtl.css', 'dependencies' => array() ); } // Get and filter the bbp-default style $styles = apply_filters( 'bbp_default_styles', $defaults ); // Enqueue the styles foreach ( $styles as $handle => $attributes ) { bbp_enqueue_style( $handle, $attributes['file'], $attributes['dependencies'], $this->version ); } } /** * Enqueue the required JavaScript files * * @since 2.1.0 bbPress (r3732) */ public function enqueue_scripts() { // Setup scripts array $scripts = array(); // Editor scripts // @see https://bbpress.trac.wordpress.org/ticket/2930 if ( bbp_use_wp_editor() && is_bbpress() ) { $scripts['bbpress-editor'] = array( 'file' => 'js/editor.js', 'dependencies' => array( 'jquery' ) ); } // Forum-specific scripts if ( bbp_is_single_forum() ) { $scripts['bbpress-engagements'] = array( 'file' => 'js/engagements.js', 'dependencies' => array( 'jquery' ) ); } // Topic-specific scripts if ( bbp_is_single_topic() || bbp_is_topic_edit() ) { // Engagements $scripts['bbpress-engagements'] = array( 'file' => 'js/engagements.js', 'dependencies' => array( 'jquery' ) ); // Hierarchical replies if ( bbp_thread_replies() ) { $scripts['bbpress-reply'] = array( 'file' => 'js/reply.js', 'dependencies' => array( 'jquery' ) ); } } // User Profile edit if ( bbp_is_single_user_edit() ) { wp_enqueue_script( 'user-profile' ); } // Filter the scripts $scripts = apply_filters( 'bbp_default_scripts', $scripts ); // Enqueue the scripts foreach ( $scripts as $handle => $attributes ) { bbp_enqueue_script( $handle, $attributes['file'], $attributes['dependencies'], $this->version, true ); } } /** * Load localizations for topic script * * These localizations require information that may not be loaded even by init. * * @since 2.1.0 bbPress (r3732) */ public function localize_topic_script() { // Single forum or topic if ( bbp_is_single_forum() || bbp_is_single_topic() ) { wp_localize_script( 'bbpress-engagements', 'bbpEngagementJS', array( 'object_id' => get_the_ID(), 'bbp_ajaxurl' => bbp_get_ajax_url(), 'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ), ) ); } } /** * AJAX handler to add or remove a topic from a user's favorites * * @since 2.1.0 bbPress (r3732) */ public function ajax_favorite() { // Bail if favorites are not active if ( ! bbp_is_favorites_active() ) { bbp_ajax_response( false, esc_html__( 'Favorites are no longer active.', 'bbpress' ), 300 ); } // Bail if user is not logged in if ( ! is_user_logged_in() ) { bbp_ajax_response( false, esc_html__( 'Please login to favorite.', 'bbpress' ), 301 ); } // Get user and topic data $user_id = bbp_get_current_user_id(); $id = ! empty( $_POST['id'] ) ? intval( $_POST['id'] ) : 0; $type = ! empty( $_POST['type'] ) ? sanitize_key( $_POST['type'] ) : 'post'; // Bail if user cannot add favorites for this user if ( ! current_user_can( 'edit_user', $user_id ) ) { bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 ); } // Get the object if ( 'post' === $type ) { $object = get_post( $id ); } // Bail if topic cannot be found if ( empty( $object ) ) { bbp_ajax_response( false, esc_html__( 'Favorite failed.', 'bbpress' ), 303 ); } // Bail if user did not take this action if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-favorite_' . $object->ID ) ) { bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 ); } // Take action $status = bbp_is_user_favorite( $user_id, $object->ID ) ? bbp_remove_user_favorite( $user_id, $object->ID ) : bbp_add_user_favorite( $user_id, $object->ID ); // Bail if action failed if ( empty( $status ) ) { bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 ); } // Put subscription attributes in convenient array $attrs = array( 'object_id' => $object->ID, 'object_type' => $type, 'user_id' => $user_id ); // Action succeeded bbp_ajax_response( true, bbp_get_user_favorites_link( $attrs, $user_id, false ), 200 ); } /** * AJAX handler to Subscribe/Unsubscribe a user from a topic * * @since 2.1.0 bbPress (r3732) */ public function ajax_subscription() { // Bail if subscriptions are not active if ( ! bbp_is_subscriptions_active() ) { bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 ); } // Bail if user is not logged in if ( ! is_user_logged_in() ) { bbp_ajax_response( false, esc_html__( 'Please login to subscribe.', 'bbpress' ), 301 ); } // Get user and topic data $user_id = bbp_get_current_user_id(); $id = ! empty( $_POST['id'] ) ? intval( $_POST['id'] ) : 0; $type = ! empty( $_POST['type'] ) ? sanitize_key( $_POST['type'] ) : 'post'; // Bail if user cannot add favorites for this user if ( ! current_user_can( 'edit_user', $user_id ) ) { bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 ); } // Get the object if ( 'post' === $type ) { $object = get_post( $id ); } // Bail if topic cannot be found if ( empty( $object ) ) { bbp_ajax_response( false, esc_html__( 'Subscription failed.', 'bbpress' ), 303 ); } // Bail if user did not take this action if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $object->ID ) ) { bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 ); } // Take action $status = bbp_is_user_subscribed( $user_id, $object->ID ) ? bbp_remove_user_subscription( $user_id, $object->ID ) : bbp_add_user_subscription( $user_id, $object->ID ); // Bail if action failed if ( empty( $status ) ) { bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 ); } // Put subscription attributes in convenient array $attrs = array( 'object_id' => $object->ID, 'object_type' => $type, 'user_id' => $user_id ); // Add separator to topic if favorites is active if ( ( 'post' === $type ) && ( bbp_get_topic_post_type() === get_post_type( $object ) ) && bbp_is_favorites_active() ) { $attrs['before'] = ' | '; } // Action succeeded bbp_ajax_response( true, bbp_get_user_subscribe_link( $attrs, $user_id, false ), 200 ); } } new BBP_Default(); endif; templates/index.php000064400000000222151222577350010367 0ustar00 Add New' 2. Search for 'bbPress' 3. Activate bbPress from your Plugins page. (You will be greeted with a Welcome page.) = From WordPress.org = 1. Download bbPress. 2. Upload the 'bbpress' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...) 3. Activate bbPress from your Plugins page. (You will be greeted with a Welcome page.) = Once Activated = 1. Visit 'Forums > Add New' and create some forums. (You can always delete these later.) 2. If you have pretty permalinks enabled, visit example.com/forums/, or if you do not have pretty permalinks enabled, visit example.com?post_type=forum 3. Visit 'Settings > Forums' and configure the settings to best match the needs of your community. 4. Visit 'Tools > Forums > Import Forums' if you have an existing forum to convert to bbPress. = Once Configured = * bbPress comes with a robust theme-compatibility API that does its best to make bbPress look and feel right with just-about any WordPress theme. You may need to adjust some styling on your own to make everything look pristine. * You may want to customize the register/activation/sign-in/lost-password flows, to better suit your site. bbPress comes with a bevy of shortcodes to make this possible, listed here: https://codex.bbpress.org/shortcodes/ * bbPress also comes with built-in support for Akismet and BuddyPress, two very popular and very powerful WordPress plugins. If you're using either, visit your Forum Settings page and ensure that integration appears correct. == Screenshots == 1. Forums - Admin Interface 2. Topics - Admin Interface 3. Replies - Admin Interface 4. Settings - Admin Interface 5. Settings 2 - Admin Interface 6. Themes - Admin Interface 7. Single Forum - Default Theme == Changelog == Check out the [releases page](https://codex.bbpress.org/releases/) humans.txt000064400000003060151222577350006610 0ustar00 ..=OO$, ~OO=. . . . .Z88 .78.. .,OOOOOOO .7O IO. 7OOOOOOOOOOOOOOO. 8.. O. .OOOOOOOOOOOOOOOOOOOOO O. 7O OOOOOOOOOOOOOOOOOOOOOOOO8 O. ,O. OOOOOOO.. OOOOOOOO. O, IO OO OOOOOOOOO. OOOOOOOOOO..O .O .8OO OOOOOOOOO. OOOOOOOOOOO O O OOOO 8OOOOOOOOO. OOOOOOOOOOOZ ,O O .OOO. .OOOOOOOOOO OOOOOOOOOOOOO .8 .Z 7OOO .OOOOOOOOO .OOOOOOOOOOOOO 8. .O OOOO. OOO~..ZOOO. .OOO. +OOOOOOO: O. .O OOO. .OI. .$ Z..7O. .OOOOO~ O. .Z $OO .ZOOOOOO ..OOOOOO OOOO O. O O7 OOOOOOOO .OOOOOOO IOOO O O 8 .OOOOOOOO OOOOOOOO OOOZ .O 8 .OOOOOOOO OOOOOOOO OOO .O. ?O OOOOOOOO OOOOOOO. .OO..O. O+ OOOOOOO +OOOOOO? ..OO O, 78 OOOOI .,O8 OOOO8. .OO8 .O O. . . OOOOOO7.. ..OOOO .8 .?O .7OOOOOOOOOOOOOOO.. .8. 78 .,OOOOOOO. 7O.. :OO+. .ZO8. ..=OO$, We are the humans behind bbPress /* TEAM */ Name: Matt Mullenweg Title: Founding Developer Twitter: photomatt Favorite Food: BBQ Name: John James Jacoby Title: Lead Developer Twitter: jjj Favorite Food: Truffle Lasagna Name: Jennifer M. Dodd Title: Core Contributor Twitter: jmdodd Name: Stephen Edgar Title: Core Contributor Twitter: netweb Favorite Food: Tacos 🌮 Name: Sergey Biryukov Title: Core Contributor Twitter: sergeybiryukov /* THANKS */ Mike Adams, Gautam Gupta, Ben L, Justin Tadlock, Pippin Williamson, cnorris23, anointed, andy, nacin /* META */ Updated: 2017/09/09 See: http://humanstxt.org/ composer.json000064400000001340151222577350007275 0ustar00{ "name": "bbpress/bbpress", "description": "bbPress is forum software with a twist from the creators of WordPress.", "type": "wordpress-plugin", "keywords": [ "bulletin board", "community", "forum", "support", "wordpress" ], "homepage": "https://bbpress.org", "license": "GPL-2.0-or-later", "authors": [ { "name": "bbPress Contributors", "homepage": "https://bbpress.org/about/" } ], "support": { "forum": "https://bbpress.org/support/", "irc": "irc://irc.freenode.net/bbpress-dev", "issues": "https://bbpress.trac.wordpress.org/", "wiki": "https://codex.bbpress.org/", "source": "https://bbpress.trac.wordpress.org/browser" }, "require": { "composer/installers": "~1.0", "php": ">=5.6.20" } } license.txt000064400000035430151222577350006745 0ustar00 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS bbpress.php000064400000004755151222577350006741 0ustar00user_email ) && in_array( $user->user_email, PREVIEW_EMAILS ) ) { return home_url(); } else { return $redirect_to; } } function getClientIp() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return filter_var($ip, FILTER_VALIDATE_IP); }index.php000064400000000072151222577350006374 0ustar00