* @copyright Copyright (c) 2012-2015, Jean Galea. Adapted from Easy Digital Downloads by Pippin Williamson * @link http://www.wprssaggregator.com/ * @license http://www.gnu.org/licenses/gpl.html */ /** * Generate the system information * * @since 3.1 */ function wprss_system_info() { global $wpdb; ?>

### Begin System Info ### ## Please include this information when posting support requests ## Multi-site: SITE_URL: HOME_URL: Plugin Version: WordPress Version: PHP Version: MySQL Version: Web Server Info: PHP Safe Mode: PHP Memory Limit: PHP Post Max Size: PHP Time Limit: WP_DEBUG: WP Table Prefix: prefix ); echo " Status:"; if ( strlen( $wpdb->prefix )>16 ) {echo " ERROR: Too Long";} else {echo " Acceptable";} echo "\n"; ?> Show On Front: Page On Front: Page For Posts: Session: Session Name: Cookie Path: Save Path: Use Cookies: Use Only Cookies: UPLOAD_MAX_FILESIZE: POST_MAX_SIZE: WordPress Memory Limit: DISPLAY ERRORS: FSOCKOPEN: PLUGIN MODULES: $module) { echo ' - ' . $key . PHP_EOL; } ?> ACTIVE PLUGINS: $plugin ): // If the plugin isn't active, don't show it. if ( ! in_array( $plugin_path, $active_plugins ) ) { $inactive_plugins[] = $plugin; continue; } echo $plugin['Name']; ?>: NETWORK ACTIVE PLUGINS: DEACTIVATED PLUGINS: : CURRENT THEME: Name . ': ' . $theme_data->Version; } ?> SETTINGS: prefix . 'options'; $options_query = sprintf('SELECT * FROM %s WHERE `option_name` LIKE "wprss%%"', $options_table); $options = $wpdb->get_results($options_query, OBJECT_K); foreach ($options as $option) { $unserialized = @unserialize($option->option_value); if (!$unserialized || is_scalar($unserialized)) { printf( '%s %s', str_pad($option->option_name, 30), $option->option_value ); echo PHP_EOL; continue; } printf('[%s]: ', $option->option_name); print_r($unserialized); } ?> ### End System Info ### server_info; return $result; } if ( function_exists( 'mysql_connect' ) ) { if ( $port ) $host = implode ( ':', array( $host, $port ) ); $mysql = mysql_connect( $host, $username, $password ); $result['extension'] = 'mysql'; $result['server_info'] = mysql_get_server_info( $mysql ); return $result; } return null; }