Changeset 8020


Ignore:
Timestamp:
12/07/10 13:37:37 (9 years ago)
Author:
patdenice
Message:

Feature 2048: Send data to piwigo server anonymously (like php and mysql versions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r7724 r8020  
    17201720  } 
    17211721 
     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 
    17221739  // After 3 redirections, return false 
    17231740  if ($step > 3) return false; 
Note: See TracChangeset for help on using the changeset viewer.