diff options
| author | Nils Adermann <naderman@naderman.de> | 2009-07-22 00:11:46 +0000 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2009-07-22 00:11:46 +0000 |
| commit | 8e8c40bc75f1394dfcb9fd772858069388b86b06 (patch) | |
| tree | 6e00dcbde73e40d6ca36889a058090286a816a60 /phpBB/includes/acp/acp_send_statistics.php | |
| parent | cbed011ee3ca1fb545c23b2feba84a329a0f65c5 (diff) | |
| download | forums-8e8c40bc75f1394dfcb9fd772858069388b86b06.tar forums-8e8c40bc75f1394dfcb9fd772858069388b86b06.tar.gz forums-8e8c40bc75f1394dfcb9fd772858069388b86b06.tar.bz2 forums-8e8c40bc75f1394dfcb9fd772858069388b86b06.tar.xz forums-8e8c40bc75f1394dfcb9fd772858069388b86b06.zip | |
- Added install_id to data collector
- config variable whitelist, so sensitive MOD info is not transmitted, currently mostly bool/int values - should we reduce the amount of data?
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9818 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_send_statistics.php')
| -rw-r--r-- | phpBB/includes/acp/acp_send_statistics.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_send_statistics.php b/phpBB/includes/acp/acp_send_statistics.php index 6c29b9fbb5..c76b450605 100644 --- a/phpBB/includes/acp/acp_send_statistics.php +++ b/phpBB/includes/acp/acp_send_statistics.php @@ -29,12 +29,23 @@ class acp_send_statistics { global $config, $template; - $collect_url = "http://www.phpbb.com/stats/getstatdata.php"; + $collect_url = "http://www.phpbb.com/stats/receive_stats.php"; $this->tpl_name = 'acp_send_statistics'; $this->page_title = 'ACP_SEND_STATISTICS'; - $collector = new phpbb_questionnaire_data_collector(); + // generate a unique id if necessary + if (!isset($config['questionnaire_unique_id'])) + { + $install_id = unique_id(); + set_config('questionnaire_unique_id', $install_id); + } + else + { + $install_id = $config['questionnaire_unique_id']; + } + + $collector = new phpbb_questionnaire_data_collector($install_id); // Add data provider $collector->add_data_provider(new phpbb_questionnaire_php_data_provider()); |
