| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: bbP private groups |
| 5 |
Plugin URI: http://www.rewweb.co.uk/bbp-private-groups/ |
| 6 |
Description: This plugin adds private groups to the forums, allocating users to groups, and combinations of forums to those groups, creating multiple closed forums. |
| 7 |
Version: 3.9.7 |
| 8 |
Text Domain: bbp-private-groups |
| 9 |
Domain Path: /lang |
| 10 |
Author: Robin Wilson |
| 11 |
Author URI: http://www.rewweb.co.uk |
| 12 |
License: GPL2 |
| 13 |
*/ |
| 14 |
/* Copyright 2013-2015 PLUGIN_AUTHOR_NAME (email : wilsonrobine@btinternet.com) |
| 15 |
|
| 16 |
This program is free software; you can redistribute it and/or modify |
| 17 |
it under the terms of the GNU General Public License, version 2, as |
| 18 |
published by the Free Software Foundation. |
| 19 |
|
| 20 |
This program is distributed in the hope that it will be useful, |
| 21 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
GNU General Public License for more details. |
| 24 |
|
| 25 |
You should have received a copy of the GNU General Public License |
| 26 |
along with this program; if not, write to the Free Software |
| 27 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
/******************************************* |
| 32 |
* global variables |
| 33 |
*******************************************/ |
| 34 |
|
| 35 |
// load the plugin options |
| 36 |
$rpg_settingsf = get_option( 'rpg_settingsf' ); |
| 37 |
$rpg_settingsg = get_option( 'rpg_settingsg' ); |
| 38 |
$rpg_groups = get_option ( 'rpg_groups') ; |
| 39 |
$rpg_roles = get_option ( 'rpg_roles') ; |
| 40 |
$rpg_topic_permissions = get_option ('rpg_topic_permissions') ; |
| 41 |
$rpg_disable_groups = get_option ('rpg_disable_groups') ; |
| 42 |
|
| 43 |
|
| 44 |
if(!defined('PG_PLUGIN_DIR')) |
| 45 |
define('PG_PLUGIN_DIR', dirname(__FILE__)); |
| 46 |
|
| 47 |
function bbp_private_groups_init() { |
| 48 |
load_plugin_textdomain('bbp-private-groups', false, basename( dirname( __FILE__ ) ) . '/lang' ); |
| 49 |
} |
| 50 |
add_action('plugins_loaded', 'bbp_private_groups_init'); |
| 51 |
|
| 52 |
|
| 53 |
/******************************************* |
| 54 |
* file includes |
| 55 |
*******************************************/ |
| 56 |
include(PG_PLUGIN_DIR . '/includes/user-profile.php'); |
| 57 |
include(PG_PLUGIN_DIR . '/includes/meta-box.php'); |
| 58 |
include(PG_PLUGIN_DIR . '/includes/forum-filters.php'); |
| 59 |
include(PG_PLUGIN_DIR . '/includes/functions.php'); |
| 60 |
include(PG_PLUGIN_DIR . '/includes/user-view-post.php'); |
| 61 |
include(PG_PLUGIN_DIR . '/includes/pg_forum_widgets.php'); |
| 62 |
include(PG_PLUGIN_DIR . '/includes/settings.php'); |
| 63 |
include(PG_PLUGIN_DIR . '/includes/search.php'); |
| 64 |
include(PG_PLUGIN_DIR . '/includes/topics.php'); |
| 65 |
include(PG_PLUGIN_DIR . '/includes/replies.php'); |
| 66 |
include(PG_PLUGIN_DIR . '/includes/link_query.php'); |
| 67 |
include(PG_PLUGIN_DIR . '/includes/mark-as-read-filter.php'); |
| 68 |
include(PG_PLUGIN_DIR . '/includes/shortcodes.php'); |
| 69 |
include(PG_PLUGIN_DIR . '/includes/user_management.php'); |
| 70 |
include(PG_PLUGIN_DIR . '/includes/role_assignment.php'); |
| 71 |
include(PG_PLUGIN_DIR . '/includes/widget_warning.php'); |
| 72 |
include(PG_PLUGIN_DIR . '/includes/shortcode_warning.php'); |
| 73 |
include(PG_PLUGIN_DIR . '/includes/plugin-info.php'); |
| 74 |
include(PG_PLUGIN_DIR . '/includes/help.php'); |
| 75 |
include(PG_PLUGIN_DIR . '/includes/topic_permissions.php'); |
| 76 |
include(PG_PLUGIN_DIR . '/includes/private_groups_adds_class.php'); |
| 77 |
include(PG_PLUGIN_DIR . '/includes/programmers_help.php'); |
| 78 |
include(PG_PLUGIN_DIR . '/includes/disable_groups.php'); |
| 79 |
include(PG_PLUGIN_DIR . '/includes/topic_filters.php'); |
| 80 |
include(PG_PLUGIN_DIR . '/includes/management_info.php'); |
| 81 |
|