phpBB-Social-Network/phpBB-Social-Network — pull request #128 by Kamahl19 (2012-12-10 02:59:00+00:00)
Title: Include http_build_query() for php4

phpBB 3.0 requires PHP 4.3.3 and SN too however http_build_query() is only in php5. therefore we need to include it to the code

https://www.phpbb.com/community/viewtopic.php?f=70&t=2008845&p=13200908#p13200647

something like this
```php
if (!function_exists('http_build_query')) {
function http_build_query($data, $prefix='', $sep='', $key='') {
$ret = array();
foreach ((array)$data as $k => $v) {
if (is_int($k) && $prefix != null) $k = urlencode($prefix . $k);
if (!empty($key)) $k = $key.'['.urlencode($k).']';

if (is_array($v) || is_object($v))
array_push($ret, http_build_query($v, '', $sep, $k));
else array_push($ret, $k.'='.urlencode($v));
}

if (empty($sep)) $sep = ini_get('arg_separator.output');
return implode($sep, $ret);
}}
```