Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.65
diff -u -p -r1.65 mollom.module
--- mollom.module	7 Aug 2010 03:00:12 -0000	1.65
+++ mollom.module	7 Aug 2010 12:52:49 -0000
@@ -1398,6 +1398,31 @@ function mollom($method, $data = array()
     $data['testing'] = TRUE;
   }
 
+  // Add statistical data for mollom.verifyKey, which is normally invoked on
+  // Mollom's administration pages only.
+  // @todo Statically cache this anyway.
+  if ($method == 'mollom.verifyKey') {
+    // Fetch Drupal distribution/installation profile information.
+    include_once DRUPAL_ROOT . '/includes/install.inc';
+    $profile = drupal_get_profile();
+    $info = install_profile_info($profile);
+    $platform_name = 'Drupal';
+    if (!empty($info['distribution_name'])) {
+      $platform_name .= ' ' . $info['distribution_name'];
+    }
+
+    // Fetch Mollom module information.
+    $mollom_info = db_query("SELECT info FROM {system} WHERE type = 'module' AND name = 'mollom'")->fetchField();
+    $mollom_info = unserialize($mollom_info);
+
+    $data += array(
+      'platform_name' => $platform_name,
+      'platform_version' => VERSION,
+      'client_name' => $mollom_info['name'],
+      'client_version' => $mollom_info['version'],
+    );
+  }
+
   // Retrieve the list of Mollom servers from the database.
   $servers = variable_get('mollom_servers', array());
 
