| | 1722 | // Send anonymous data to piwigo server |
| | 1723 | if ($_SERVER['HTTP_HOST'] != 'localhost' and $step==0 |
| | 1724 | and preg_match('#^http://(?:[a-z]+\.)?piwigo\.org#', $src)) |
| | 1725 | { |
| | 1726 | global $conf; |
| | 1727 | |
| | 1728 | $src = add_url_params($src, array( |
| | 1729 | 'uuid' => hash_hmac('md5', get_absolute_root_url(), $conf['secret_key']), |
| | 1730 | 'os' => urlencode(PHP_OS), |
| | 1731 | 'phpversion' => urlencode(phpversion()), |
| | 1732 | 'dbengine' => urlencode(DB_ENGINE), |
| | 1733 | 'dbversion' => urlencode(pwg_get_db_version()), |
| | 1734 | ) |
| | 1735 | ); |
| | 1736 | $src = str_replace('&', '&', $src); |
| | 1737 | } |
| | 1738 | |