Changeset 8086 for branches/2.1/include


Ignore:
Timestamp:
Dec 11, 2010, 10:37:44 PM (13 years ago)
Author:
patdenice
Message:

merge r8079, r8080, r8082, r8083, r8084 from trunk to branch 2.1
feature 2057: fetchRemote can send POST data
feature 2048: Use POST to send server data
feature 2048: add $confsend_hosting_technical_details parameter
feature 2057: use $get_data parameter to send GET data.
feature 2048: send technical details only to get_version_list.php of PEM API.

Location:
branches/2.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1

  • branches/2.1/include/config_default.inc.php

    r6715 r8086  
    485485// gives an empty value '' to deactivate
    486486$conf['show_php_errors'] = E_ALL;
     487
     488// sends your hosting PHP and MySQL versions to piwigo.org as anonymously as
     489// possible, for statistics purpose. No personnal data are transmitted
     490$conf['send_hosting_technical_details'] = true;
    487491
    488492// +-----------------------------------------------------------------------+
  • branches/2.1/include/functions_url.inc.php

    r6410 r8086  
    9090 * @return string
    9191 */
    92 function add_url_params($url, $params)
     92function add_url_params($url, $params, $arg_separator='&' )
    9393{
    9494  if ( !empty($params) )
     
    101101      {
    102102        $is_first = false;
    103         $url .= ( strpos($url, '?')===false ) ? '?' :'&';
     103        $url .= ( strpos($url, '?')===false ) ? '?' : $arg_separator;
    104104      }
    105105      else
    106106      {
    107         $url .= '&';
     107        $url .= $arg_separator;
    108108      }
    109109      $url .= $param;
Note: See TracChangeset for help on using the changeset viewer.