Skip to content

Commit 78c9910

Browse files
committed
Change statistics resolver from url/ip to uuid
1 parent fe92d15 commit 78c9910

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

_build/resolvers/resolve.treehillstudio.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@
7575

7676
$params = [
7777
'name' => $options['namespace'],
78-
'url' => $modx->getOption('SERVER_NAME', $_SERVER, 'unknown'),
79-
'ip' => $modx->getOption('SERVER_ADDR', $_SERVER, 'unknown'),
80-
'host' => $modx->getOption('HTTP_HOST', $_SERVER, 'unknown'),
78+
'uuid' => $modx->uuid ?? 'unknown',
79+
'host' => $modx->getOption('http_host', null, 'unknown'),
8180
'php_version' => phpversion(),
8281
'modx_version' => $modxVersion,
8382
'manager_lang' => $managerLang,

_build/setup.options.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
developed by Treehill Studio - MODX development in Münsterland.</p>
2424
2525
<p>During the installation, we will collect some statistical data (the
26-
hostname, the IP address, the PHP version and the MODX version of your
26+
hostname, the MODX UUID, the PHP version and the MODX version of your
2727
MODX installation). Your data will be kept confidential and under no
2828
circumstances be used for promotional purposes or disclosed to third
2929
parties. We only like to know the usage count of this package.</p>
@@ -38,12 +38,11 @@
3838
<p>ToggleTVSet will be upgraded. This open source extra was developed by
3939
Treehill Studio - MODX development in Münsterland.</p>
4040
41-
During the upgrade, we will collect some statistical data (the hostname,
42-
the IP address, the PHP version, the MODX version of your MODX
43-
installation and the previous installed version of this extra package).
44-
Your data will be kept confidential and under no circumstances be used
45-
for promotional purposes or disclosed to third parties. We only like to
46-
know the usage count of this package.</p>
41+
<p>During the installation, we will collect some statistical data (the
42+
hostname, the MODX UUID, the PHP version and the MODX version of your
43+
MODX installation). Your data will be kept confidential and under no
44+
circumstances be used for promotional purposes or disclosed to third
45+
parties. We only like to know the usage count of this package.</p>
4746
4847
<p>If you upgrade this package, you are giving us your permission to
4948
collect, process and use that data for statistical purposes.</p>';

0 commit comments

Comments
 (0)