Name . ' ' . $theme_data->Version; $parent_theme = $theme_data->Template; if ( ! empty( $parent_theme ) ) { $parent_theme_data = wp_get_theme( $parent_theme ); $parent_theme = $parent_theme_data->Name . ' ' . $parent_theme_data->Version; } $sys_info .= '

Site Information


'; $sys_info .= 'Site URL: ' . site_url() . '
'; $sys_info .= 'Home URL: ' . home_url() . '
'; $sys_info .= 'Multisite: ' . ( is_multisite() ? 'Yes' : 'No' ) . '
'; $sys_info .= '

WordPress Information


'; $sys_info .= 'Version: ' . get_bloginfo( 'version' ) . '
'; $sys_info .= 'Language: ' . ( defined( 'WPLANG' ) && WPLANG ? WPLANG : 'en_US' ) . '
'; $sys_info .= 'Permalink Structure: ' . ( get_option( 'permalink_structure' ) ? get_option( 'permalink_structure' ) : 'Default' ) . '
'; $sys_info .= "Active Theme: {$theme}
"; $sys_info .= "Parent Theme: {$parent_theme}
"; $sys_info .= 'Debug Mode: ' . ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' : 'Disabled' : 'Not set' ) . '
'; $sys_info .= 'Memory Limit: ' . WP_MEMORY_LIMIT . '
'; $sys_info .= '

Plugins Information


'; $plugin_mu = get_mu_plugins(); if ( count( $plugin_mu ) > 0 ) { $sys_info .= '

Must Use


'; foreach ( $plugin_mu as $plugin => $plugin_data ) { $sys_info .= $plugin_data['Name'] . ': ' . $plugin_data['Version'] . "
"; } } $sys_info .= '

Active


'; $plugins = get_plugins(); $active_plugins = get_option( 'active_plugins', array() ); foreach ( $plugins as $plugin_path => $plugin ) { if ( ! in_array( $plugin_path, $active_plugins ) ) { continue; } $sys_info .= $plugin['Name'] . ': ' . $plugin['Version'] . '
'; } $sys_info .= '

Inactive


'; foreach ( $plugins as $plugin_path => $plugin ) { if ( in_array( $plugin_path, $active_plugins ) ) { continue; } $sys_info .= $plugin['Name'] . ': ' . $plugin['Version'] . '
'; } $sys_info .= '

Server Information


'; $sys_info .= 'PHP : ' . PHP_VERSION . '
'; $sys_info .= 'MySQL : ' . $wpdb->db_version() . '
'; $sys_info .= 'Webserver : ' . $_SERVER['SERVER_SOFTWARE'] . '
'; $total_quizzes = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_quizzes LIMIT 1" ); $total_active_quizzes = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_quizzes WHERE deleted = 0 LIMIT 1" ); $total_questions = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_questions LIMIT 1" ); $total_active_questions = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_questions WHERE deleted = 0 LIMIT 1" ); $total_results = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_results LIMIT 1" ); $total_active_results = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}mlw_results WHERE deleted = 0 LIMIT 1" ); $sys_info .= '

QSM Information


'; $sys_info .= 'Initial Version : ' . get_option( 'qmn_original_version' ) . '
'; $sys_info .= 'Current Version : ' . $mlwQuizMasterNext->version . '
'; $sys_info .= "Total Quizzes : {$total_quizzes}
"; $sys_info .= "Total Active Quizzes : {$total_active_quizzes}
"; $sys_info .= "Total Questions : {$total_questions}
"; $sys_info .= "Total Active Questions : {$total_active_questions}
"; $sys_info .= "Total Results : {$total_results}
"; $sys_info .= "Total Active Results : {$total_active_results}
"; $sys_info .= '

QSM Recent Logs


'; $recent_errors = $mlwQuizMasterNext->log_manager->get_logs(); if ( $recent_errors ) { foreach ( $recent_errors as $error ) { $sys_info .= "Log created at {$error->post_date}: {$error->post_title} - {$error->post_content}
"; } } else { $sys_info .= 'No recent logs
'; } return $sys_info; } ?>