X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=2223379ca33672f40259c5976e1f00170b3f72e3;hb=43c6563123d32c37a84cdefd06ed60dd6bd39da9;hp=a070e103eaf2bf052fa9d61b4beb62059f910dac;hpb=2768ece6907dafbda96e2b523def4a2a74b86f79;p=friendica.git diff --git a/boot.php b/boot.php index a070e103ea..2223379ca3 100644 --- a/boot.php +++ b/boot.php @@ -1,6 +1,6 @@ user['email'] ?? '', $adminlist); } -function explode_querystring($query) -{ - $arg_st = strpos($query, '?'); - if ($arg_st !== false) { - $base = substr($query, 0, $arg_st); - $arg_st += 1; - } else { - $base = ''; - $arg_st = 0; - } - - $args = explode('&', substr($query, $arg_st)); - foreach ($args as $k => $arg) { - /// @TODO really compare type-safe here? - if ($arg === '') { - unset($args[$k]); - } - } - $args = array_values($args); - - if (!$base) { - $base = $args[0]; - unset($args[0]); - $args = array_values($args); - } - - return [ - 'base' => $base, - 'args' => $args, - ]; -} - /** * Returns the complete URL of the current page, e.g.: http(s)://something.com/network *