mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
feature 2048 removed (and was never released): no data are sent anonymously to piwigo.org for statistics purpose
git-svn-id: http://piwigo.org/svn/trunk@8238 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
f58a8276a6
commit
088801add4
5 changed files with 3 additions and 27 deletions
|
@ -2054,24 +2054,4 @@ function get_fckb_tag_ids($raw_tags)
|
||||||
|
|
||||||
return $tag_ids;
|
return $tag_ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_hosting_technical_details()
|
|
||||||
{
|
|
||||||
global $conf;
|
|
||||||
|
|
||||||
$details = array();
|
|
||||||
if ($conf['send_hosting_technical_details'] and $_SERVER['HTTP_HOST'] != 'localhost')
|
|
||||||
{
|
|
||||||
$details = array(
|
|
||||||
'uuid' => hash_hmac('md5', get_absolute_root_url(), $conf['secret_key']),
|
|
||||||
'os' => PHP_OS,
|
|
||||||
'pwgversion' => PHPWG_VERSION,
|
|
||||||
'phpversion' => phpversion(),
|
|
||||||
'dbengine' => DB_ENGINE,
|
|
||||||
'dbversion' => pwg_get_db_version(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $details;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -205,7 +205,7 @@ UPDATE '.USER_INFOS_TABLE.'
|
||||||
$version = PHPWG_VERSION;
|
$version = PHPWG_VERSION;
|
||||||
$versions_to_check = array();
|
$versions_to_check = array();
|
||||||
$url = PEM_URL . '/api/get_version_list.php';
|
$url = PEM_URL . '/api/get_version_list.php';
|
||||||
if (fetchRemote($url, $result, $get_data, get_hosting_technical_details()) and $pem_versions = @unserialize($result))
|
if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result))
|
||||||
{
|
{
|
||||||
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
||||||
{
|
{
|
||||||
|
|
|
@ -299,7 +299,7 @@ DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\'';
|
||||||
$version = PHPWG_VERSION;
|
$version = PHPWG_VERSION;
|
||||||
$versions_to_check = array();
|
$versions_to_check = array();
|
||||||
$url = PEM_URL . '/api/get_version_list.php';
|
$url = PEM_URL . '/api/get_version_list.php';
|
||||||
if (fetchRemote($url, $result, $get_data, get_hosting_technical_details()) and $pem_versions = @unserialize($result))
|
if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result))
|
||||||
{
|
{
|
||||||
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
||||||
{
|
{
|
||||||
|
|
|
@ -456,7 +456,7 @@ SELECT
|
||||||
$version = PHPWG_VERSION;
|
$version = PHPWG_VERSION;
|
||||||
$versions_to_check = array();
|
$versions_to_check = array();
|
||||||
$url = PEM_URL . '/api/get_version_list.php';
|
$url = PEM_URL . '/api/get_version_list.php';
|
||||||
if (fetchRemote($url, $result, $get_data, get_hosting_technical_details()) and $pem_versions = @unserialize($result))
|
if (fetchRemote($url, $result, $get_data) and $pem_versions = @unserialize($result))
|
||||||
{
|
{
|
||||||
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
if (!preg_match('/^\d+\.\d+\.\d+/', $version))
|
||||||
{
|
{
|
||||||
|
|
|
@ -488,10 +488,6 @@ $conf['template_combine_files'] = true;
|
||||||
// gives an empty value '' to deactivate
|
// gives an empty value '' to deactivate
|
||||||
$conf['show_php_errors'] = E_ALL;
|
$conf['show_php_errors'] = E_ALL;
|
||||||
|
|
||||||
// sends your hosting PHP and MySQL versions to piwigo.org as anonymously as
|
|
||||||
// possible, for statistics purpose. No personnal data are transmitted
|
|
||||||
$conf['send_hosting_technical_details'] = true;
|
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | authentication |
|
// | authentication |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue