Changeset 8082


Ignore:
Timestamp:
Dec 11, 2010, 9:09:18 PM (13 years ago)
Author:
patdenice
Message:

feature 2048: add $confsend_hosting_technical_details parameter

Location:
trunk
Files:
2 edited

Legend:

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

    r8080 r8082  
    17051705function fetchRemote($src, &$dest, $get_data=array(), $post_data=array(), $user_agent='Piwigo', $step=0)
    17061706{
     1707  global $conf;
     1708
    17071709  // Try to retrieve data from local file?
    17081710  if (!url_is_remote($src))
     
    17241726
    17251727  // Send anonymous data to piwigo server
    1726   if ($_SERVER['HTTP_HOST'] != 'localhost' and $step==0
     1728  if ($conf['send_hosting_technical_details']
     1729    and $_SERVER['HTTP_HOST'] != 'localhost' and $step==0
    17271730    and preg_match('#^http://(?:[a-z]+\.)?piwigo\.org#', $src))
    17281731  {
    1729     global $conf;
    1730 
    17311732    $post_data = array_merge($post_data, array(
    17321733      'uuid' => hash_hmac('md5', get_absolute_root_url(), $conf['secret_key']),
  • trunk/include/config_default.inc.php

    r8012 r8082  
    488488// gives an empty value '' to deactivate
    489489$conf['show_php_errors'] = E_ALL;
     490
     491// sends your hosting PHP and MySQL versions to piwigo.org as anonymously as
     492// possible, for statistics purpose. No personnal data are transmitted
     493$conf['send_hosting_technical_details'] = true;
    490494
    491495// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.