';
echo '
| ';
echo '';
$result = WPF()->db->get_results("SHOW INDEXES FROM " . esc_sql($table), ARRAY_A);
echo '
| ';
echo '||||||||||||||||||||||
" . 'INSERT INTO `' . WPF()->tables->usergroups . '` (`groupid`, `name`, `cans`, `description`, `utitle`, `role`, `access`, `color`, `visible`, `secondary`) VALUES
(4, \'Guest\', \'a:32:{s:2:\"mf\";s:1:\"0\";s:2:\"ms\";s:1:\"0\";s:2:\"mt\";s:1:\"0\";s:2:\"mp\";s:1:\"0\";s:3:\"mth\";s:1:\"0\";s:2:\"vm\";s:1:\"0\";s:3:\"aum\";s:1:\"0\";s:2:\"em\";s:1:\"0\";s:3:\"vmg\";s:1:\"0\";s:3:\"aup\";s:1:\"0\";s:4:\"vmem\";s:1:\"1\";s:4:\"vprf\";s:1:\"1\";s:4:\"vpra\";s:1:\"1\";s:4:\"vprs\";s:1:\"0\";s:2:\"bm\";s:1:\"0\";s:2:\"dm\";s:1:\"0\";s:3:\"upa\";s:1:\"0\";s:3:\"ups\";s:1:\"0\";s:2:\"va\";s:1:\"1\";s:3:\"vmu\";s:1:\"0\";s:3:\"vmm\";s:1:\"0\";s:3:\"vmt\";s:1:\"1\";s:4:\"vmct\";s:1:\"1\";s:3:\"vmr\";s:1:\"1\";s:3:\"vmw\";s:1:\"0\";s:4:\"vmsn\";s:1:\"1\";s:4:\"vmrd\";s:1:\"1\";s:3:\"vml\";s:1:\"1\";s:3:\"vmo\";s:1:\"1\";s:3:\"vms\";s:1:\"1\";s:4:\"vmam\";s:1:\"1\";s:4:\"vwpm\";s:1:\"0\";}\', \'\', \'Guest\', \'\', \'read_only\', \'#222222\', 0, 0);
' . "";
}
$perms = array();
$nonsec = array(
'mf' => __( 'Dashboard - Manage Forums', 'wpforo' ),
'ms' => __( 'Dashboard - Manage Settings', 'wpforo' ),
'mt' => __( 'Dashboard - Manage Tools', 'wpforo' ),
'vm' => __( 'Dashboard - Manage Members', 'wpforo' ),
'aum' => __( 'Dashboard - Moderate Topics & Posts', 'wpforo' ),
'vmg' => __( 'Dashboard - Manage Usergroups', 'wpforo' ),
'mp' => __( 'Dashboard - Manage Phrases', 'wpforo' ),
'mth' => __( 'Dashboard - Manage Themes', 'wpforo' ),
'em' => __( 'Dashboard - Can edit member', 'wpforo' ),
'bm' => __( 'Dashboard - Can ban member', 'wpforo' ),
'dm' => __( 'Dashboard - Can delete member', 'wpforo' ),
'vmu' => __( 'Front - Can view member username', 'wpforo' )
);
$default_ug = WPF()->usergroup->default_groupid;
$default_ug_cans = WPF()->db->get_var("SELECT `cans` FROM `" . WPF()->tables->usergroups . "` WHERE `groupid` = " . intval($default_ug) );
$default_ug_cans = unserialize($default_ug_cans);
if( !empty($default_ug_cans) ){
foreach( $default_ug_cans as $key => $value ){
if( wpfkey($nonsec, $key) && $value == 1 ) {
$perms[] = $nonsec[$key];
}
}
if( !empty($perms) ){
$cans = ',wp-includes/js/tinymce, than click on [Save Changes and Empty Cache] button bellow.', 'wpforo');
}
}
#########################################################
//Email Issues //////////////////////////////////////////
$email = "test@example.com";
$subject = "Email Test";
$message = "This is a mail testing email function on server";
if( !wp_mail($email, $subject, $message) ){
$issues['email']['wp_mail']['level'] = 3;
$issues['email']['wp_mail']['message'] = __('WordPress Email sending function wp_mail() doesn\'t work!', 'wpforo');
$issues['email']['wp_mail']['solution'] = __('In most cases this is a server issue. We recommend you contact to your hosting service support team or open a support topic in wordpress.org support forum. Also there are many good articles regarding this issue in web. For example ', 'wpforo') . ' - ' . __('How to Fix WordPress Not Sending Email Issue', 'wpforo') . '';
}
#########################################################
//Other Issues //////////////////////////////////////////
$phrases = WPF()->db->get_var("SELECT COUNT(*) FROM `" . WPF()->tables->phrases . "`");
if( !$phrases ){
$issues['other']['empty_phrase_table']['level'] = 3;
$issues['other']['empty_phrase_table']['message'] = __('wpForo phrases are missing!', 'wpforo');
$issues['other']['empty_phrase_table']['solution'] = __('Please download wpForo Phrases XML compressed file, unzip it, find english.xml file, navigate to Forums > Settings > General Tab and import it using [Add New] button of "XML Based Language" option.', 'wpforo') . ' [ ' . __('Download wpForo Phrases', 'wpforo') . ' ]';
}
echo '| ' . strtoupper($key) . ' | |||||
| ' . $data['message'] . ' | '; echo '' . $data['solution'] . ' | '; echo '||||
' . __('No issues found', 'wpforo') . ' | |||||
' . $file . '' . __('No errors found', 'wpforo') . '
'; } }