diff --git a/ecrire/inc_distant.php b/ecrire/inc_distant.php index e90bca1de8f408466e793708622fba18429e45a9..d0f25ecb70de9a2fcb26c85dda03507fa3a04b39 100644 --- a/ecrire/inc_distant.php +++ b/ecrire/inc_distant.php @@ -51,29 +51,6 @@ function copie_locale($source, $mode='auto') { return $local; } -// fabrique une chaine HTTP pour un POST -function buildQueryString($data, $munge_charset = false) { - $querystring = ''; - - if (is_array($data)) { - // Change data in to postable data - foreach ($data as $key => $val) { - if (is_array($val)) { - foreach ($val as $val2) { - $querystring .= urlencode($key).'='.urlencode($val2).'&'; - } - } else { - $querystring .= urlencode($key).'='.urlencode($val).'&'; - } - } - $querystring = substr($querystring, 0, -1); // Eliminate unnecessary & - } else { - $querystring = $data; - } - - return $querystring; -} - function prepare_donnees_post($donnees, $boundary = '') { if($boundary) { // fabrique une chaine HTTP pour un POST avec boundary