get_bloginfo('version') );
$sysinfo = array_merge($sysinfo, $newarray);
// theme
$mytheme = wp_get_theme();
$newarray = array ( 'Theme' => $mytheme["Name"].' '.$mytheme["Version"] );
$sysinfo = array_merge($sysinfo, $newarray);
// PHP version
$newarray = array ( 'PHP version' => phpversion() );
$sysinfo = array_merge($sysinfo, $newarray);
// bbpress version
if (function_exists('bbPress')) {
$bbp = bbpress();
} else {
global $bbp;
}
if (isset($bbp->version)) {
$bbpversion = $bbp->version;
} else {
$bbpversion = '???';
}
$newarray = array ( 'bbPress version' => $bbpversion );
$sysinfo = array_merge($sysinfo, $newarray);
// site url
$newarray = array ( 'site url' => get_bloginfo('url') );
$sysinfo = array_merge($sysinfo, $newarray);
// Active plugins
$newarray = array ( 'Active Plugins' => 'Name and Version' );
$sysinfo = array_merge($sysinfo, $newarray);
$plugins=get_plugins();
$activated_plugins=array();
$i = 1;
foreach (get_option('active_plugins') as $p){
if(isset($plugins[$p])){
$linetoadd = $plugins[$p]["Name"] . ' ' . $plugins[$p]["Version"] . '
';
$newarray = array ( '- p'.$i => $linetoadd );
$sysinfo = array_merge($sysinfo, $newarray);
$i = $i + 1;
}
}
//start output
global $rpg_settingsf ;
global $rpg_settingsg ;
global $rpg_groups ;
global $rpg_disable_groups ;
global $rpg_topic_permissions ;
echo '
| Group | Name | No users in this group | Forums in this group |
| ' ; _e('Disabled', 'bbp-private-groups') ; echo '' ; } ?> | get_col("select ID from $wpdb->users") ; $countu=0 ; foreach ($users as $user) { $check= get_user_meta( $user, 'private_group',true); //single user check if ($check==$name) $countu++ ; //multiple group set if (strpos($check, '*'.$name.'*') !== FALSE) $countu++; } echo $countu ; ?> |
' ;
$forum = bbp_get_forum_post_type() ;
$forums=$wpdb->get_col("select ID from $wpdb->posts where post_type='$forum'") ;
$countu=0 ;
foreach ($forums as $forum) {
$meta = (array)get_post_meta( $forum, '_private_group', false );
foreach ($meta as $meta2) {
if ($meta2==$name) {
$ftitle=bbp_forum_title($forum) ;
echo $ftitle.' ' ; $countu++ ; } } } echo ' |
| Topic Permissions' ; ?> | ||
|---|---|---|
| $details ) { if ( is_array( $meta ) && in_array( $group, $meta ) ) { $groupname=__('Group','bbp-private-groups').substr($group,5,strlen($group)) ; $tp = '_private_group_'.$group ; $perm = get_post_meta($id, $tp, true) ; $value = (!empty ($perm ) ? $perm : '4' ); $valuename1 = __('Only View Topics/Replies', 'bbp-private-groups') ; $valuename2 = __('Create/Edit Topics (and view all topics/replies)', 'bbp-private-groups') ; $valuename3 = __('Create/Edit Replies (and view all topics/replies)', 'bbp-private-groups') ; $valuename4 = __('Create/Edit Topics and Replies (and view all topics/replies)', 'bbp-private-groups') ; $valuename5 = __('Create/Edit/view OWN Topics, create/edit Replies to those topics and view any Replies to those topics', 'bbp-private-groups') ; $valuex = 'valuename'.$value ; $valuename = $$valuex ; echo $groupname.' '.$details ; if (!empty ($rpg_topic_permissions) ) echo ' | '.$valuename.' | ' ; echo '|
| '; } // end of if is in array $meta } // end of foreach $rpg groups //now display non logged in users $valuename0 = __('No visibility or access to this forum', 'bbp-private-groups') ; if (bbp_allow_anonymous()) { $desc = __('Non-logged in & Anonymous Users', 'bbp-private-groups'); } else { $desc = __('Non-logged in users', 'bbp-private-groups'); } echo ' | ||
| ' ; echo $desc ; echo ' | ' ; $perm = get_post_meta($id ,'_private_group_nonloggedin', true) ; $value = (!empty ($perm ) ? $perm : '0' ); $valuex = 'valuename'.$value ; $valuename = $$valuex ; echo $valuename ; ?> | |
| '.$title.' | ' ; ?> ID, '_private_group', false ); foreach ( $rpg_groups as $group => $details ) { if ( is_array( $meta ) && in_array( $group, $meta ) ) { $groupname=__('Group','bbp-private-groups').substr($group,5,strlen($group)) ; $tp = '_private_group_'.$group ; $perm = get_post_meta($id, $tp, true) ; $value = (!empty ($perm ) ? $perm : '4' ); $valuename1 = __('Only View Topics/Replies', 'bbp-private-groups') ; $valuename2 = __('Create/Edit Topics (and view all topics/replies)', 'bbp-private-groups') ; $valuename3 = __('Create/Edit Replies (and view all topics/replies)', 'bbp-private-groups') ; $valuename4 = __('Create/Edit Topics and Replies (and view all topics/replies)', 'bbp-private-groups') ; $valuename5 = __('Create/Edit/view OWN Topics, create/edit Replies to those topics and view any Replies to those topics', 'bbp-private-groups') ; $valuex = 'valuename'.$value ; $valuename = $$valuex ; echo $groupname.' '.$details ; if (!empty ($rpg_topic_permissions) ) echo ' | '.$valuename.' | ' ; echo '
| '; } // end of if is in array $meta } // end of foreach $rpg groups ?> | ||
| '.$key.' | '.$item1.' |