Commit 1e29e696 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Adding PHP & system info to stats collection" into 1.9_STABLE

parents 174e5363 c7139c0c
...@@ -138,6 +138,28 @@ function registration_data() { ...@@ -138,6 +138,28 @@ function registration_data() {
$data_to_send[$key] = get_config($key); $data_to_send[$key] = get_config($key);
} }
// System information
$data_to_send['phpversion'] = phpversion();
$data_to_send['dbversion'] = get_field_sql('SELECT VERSION()');
$osversion = php_uname('s');
if ($osversion == 'Linux') {
$lsbversion = exec('lsb_release -d', $execout, $return_val);
if ($return_val === 0) {
$osversion = $lsbversion;
}
else {
$osversion = php_uname();
}
}
$data_to_send['osversion'] = $osversion;
$data_to_send['phpsapi'] = php_sapi_name();
if (!empty($_SERVER) && !empty($_SERVER['SERVER_SOFTWARE'])) {
$data_to_send['webserver'] = $_SERVER['SERVER_SOFTWARE'];
}
$modules = get_loaded_extensions();
natcasesort($modules);
$data_to_send['phpmodules'] = '; ' . implode('; ', $modules) . ';';
foreach (array( foreach (array(
'usr_friend', 'usr_friend',
'usr_institution', 'usr_institution',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment