<?php
//20.0.56.2 FMK/Compat/http_build_query.php GF 
//VersionVI: 30F200067s
//(c) 2005-2012 PC SOFT  - Release
 function Fe36aae79($formdata, $numeric_prefix = null) { if (is_object($formdata)) { $formdata = get_object_vars($formdata); } if (!is_array($formdata)) { user_error('http_build_query() Parameter 1 expected to be Array or Object. Incorrect value given.', E_WARNING); return false; } if (empty($formdata)) { return; } $separator = ini_get('arg_separator.output'); if (utf8_strlen($separator) == 0) { $separator = '&'; } $tmp = array (); foreach ($formdata as $key => $val) { if (is_null($val)) { continue; } if (is_integer($key) && $numeric_prefix != null) { $key = $numeric_prefix . $key; } if (is_scalar($val)) { array_push($tmp, urlencode($key) . '=' . urlencode($val)); continue; } if (is_array($val) || is_object($val)) { array_push($tmp, Fcc46e3f7($val, urlencode($key))); continue; } return null; } return utf8_implode($separator, $tmp); } function Fcc46e3f7($array, $name) { $tmp = array (); foreach ($array as $key => $value) { if (is_array($value)) { array_push($tmp, Fcc46e3f7($value, utf8_sprintf('%s[%s]', $name, $key))); } elseif (is_scalar($value)) { array_push($tmp, utf8_sprintf('%s[%s]=%s', $name, urlencode($key), urlencode($value))); } elseif (is_object($value)) { array_push($tmp, Fcc46e3f7(get_object_vars($value), utf8_sprintf('%s[%s]', $name, $key))); } } $separator = ini_get('arg_separator.output'); if (utf8_strlen($separator) == 0) { $separator = '&'; } return utf8_implode($separator, $tmp); } if (!function_exists('http_build_query')) { function http_build_query($formdata, $numeric_prefix = null) { return Fe36aae79($formdata, $numeric_prefix); } } ?>