X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=60ab069cd8aec7cfc124a4de423e80a52a02bbe6;hb=ff45e11284b3d6c4b878a023038e0be0dae833b1;hp=bf4e59293d66ceb3c089d06d01621c84806d0ed1;hpb=85876be48a8376bf22201a4561ed1642197c6fa3;p=friendica.git diff --git a/boot.php b/boot.php index bf4e59293d..60ab069cd8 100644 --- a/boot.php +++ b/boot.php @@ -10,7 +10,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.0.1373' ); +define ( 'FRIENDICA_VERSION', '3.0.1374' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1149 ); @@ -1577,3 +1577,30 @@ function zrl($s,$force = false) { return $s . $achar . 'zrl=' . urlencode($mine); return $s; } + +/** +* returns querystring as string from a mapped array +* +* @param params Array +* @return string +*/ +function build_querystring($params, $name=null) { + $ret = ""; + foreach($params as $key=>$val) { + if(is_array($val)) { + if($name==null) { + $ret .= build_querystring($val, $key); + } else { + $ret .= build_querystring($val, $name."[$key]"); + } + } else { + $val = urlencode($val); + if($name!=null) { + $ret.=$name."[$key]"."=$val&"; + } else { + $ret.= "$key=$val&"; + } + } + } + return $ret; +}