Changeset 8082 for trunk/admin


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

feature 2048: add $confsend_hosting_technical_details parameter

File:
1 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']),
Note: See TracChangeset for help on using the changeset viewer.