mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Include live data in the statistics #53795
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10423 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bdf60ab2c1
commit
e2deb29d59
1 changed files with 4 additions and 0 deletions
|
@ -267,6 +267,7 @@ class phpbb_questionnaire_phpbb_data_provider
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
global $phpbb_root_path, $phpEx;
|
||||||
include("{$phpbb_root_path}config.$phpEx");
|
include("{$phpbb_root_path}config.$phpEx");
|
||||||
|
unset($dbhost, $dbport, $dbname, $dbuser, $dbpasswd); // Just a precaution
|
||||||
|
|
||||||
// Only send certain config vars
|
// Only send certain config vars
|
||||||
$config_vars = array(
|
$config_vars = array(
|
||||||
|
@ -480,10 +481,13 @@ class phpbb_questionnaire_phpbb_data_provider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global $db;
|
||||||
|
|
||||||
$result['dbms'] = $dbms;
|
$result['dbms'] = $dbms;
|
||||||
$result['acm_type'] = $acm_type;
|
$result['acm_type'] = $acm_type;
|
||||||
$result['load_extensions'] = $load_extensions;
|
$result['load_extensions'] = $load_extensions;
|
||||||
$result['user_agent'] = 'Unknown';
|
$result['user_agent'] = 'Unknown';
|
||||||
|
$result['dbms_version'] = $db->sql_server_info(true);
|
||||||
|
|
||||||
// Try to get user agent vendor and version
|
// Try to get user agent vendor and version
|
||||||
$match = array();
|
$match = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue