Changeset 8080 for trunk/admin


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

Use POST to send server data

File:
1 edited

Legend:

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

    r8079 r8080  
    17231723  if ($step > 3) return false;
    17241724
    1725   // Initialization
    1726   $method  = empty($post_data) ? 'GET' : 'POST';
    1727   $request = empty($post_data) ? '' : http_build_query($post_data, '', '&');
    1728   $src     = add_url_params($src, $get_data, '&');
    1729 
    17301725  // Send anonymous data to piwigo server
    17311726  if ($_SERVER['HTTP_HOST'] != 'localhost' and $step==0
     
    17341729    global $conf;
    17351730
    1736     $src = add_url_params($src, array(
     1731    $post_data = array_merge($post_data, array(
    17371732      'uuid' => hash_hmac('md5', get_absolute_root_url(), $conf['secret_key']),
    17381733      'os' => urlencode(PHP_OS),
     
    17431738      )
    17441739    );
    1745     $src = str_replace('&', '&', $src);
    1746   }
     1740  }
     1741
     1742  // Initialization
     1743  $method  = empty($post_data) ? 'GET' : 'POST';
     1744  $request = empty($post_data) ? '' : http_build_query($post_data, '', '&');
     1745  $src     = add_url_params($src, $get_data, '&');
    17471746
    17481747  // Initialize $dest
Note: See TracChangeset for help on using the changeset viewer.