From f39a2c8dda8f1bea178cf9ca3ef8ee64bee902b5 Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Tue, 31 Oct 2017 11:17:34 +0000 Subject: [PATCH] added env data to weekly report --- lib/Analytics/Reporter.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Analytics/Reporter.php b/lib/Analytics/Reporter.php index 5e04ee874b..ba0a402a6f 100644 --- a/lib/Analytics/Reporter.php +++ b/lib/Analytics/Reporter.php @@ -12,7 +12,7 @@ use MailPoet\Settings\Pages; class Reporter { function getData() { - + global $wpdb, $wp_version; $mta = Setting::getValue('mta', array()); $newsletters = Newsletter::getAnalytics(); $isCronTriggerMethodWP = Setting::getValue('cron_trigger.method') === CronTrigger::$available_methods['wordpress']; @@ -22,6 +22,15 @@ class Reporter { return array( 'PHP version' => PHP_VERSION, + 'MySQL version' => $wpdb->db_version(), + 'WordPress version' => $wp_version, + 'Multisite environment' => is_multisite() ? 'yes' : 'no', + 'RTL' => is_rtl() ? 'yes' : 'no', + 'WP_MEMORY_LIMIT' => WP_MEMORY_LIMIT, + 'WP_MAX_MEMORY_LIMIT' => WP_MAX_MEMORY_LIMIT, + 'PHP memory_limit' => ini_get('memory_limit'), + 'PHP max_execution_time' => ini_get('max_execution_time'), + 'users_can_register' => get_option('users_can_register') ? 'yes' : 'no', 'MailPoet Free version' => MAILPOET_VERSION, 'MailPoet Premium version' => (defined('MAILPOET_PREMIUM_VERSION')) ? MAILPOET_PREMIUM_VERSION : 'N/A', 'Total number of subscribers' => Subscriber::getTotalSubscribers(),