X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=aa3739f01021a4aa9147827fc95f7a29ed224ff7;hb=a98a614f402c4d43d5fa665cc2468508d1558c67;hp=eab34611e2eccaf78240038cacd403cb60f4de24;hpb=e80d68ba53776bed047d897f52db7e25b35a479d;p=friendica.git diff --git a/boot.php b/boot.php index eab34611e2..aa3739f010 100644 --- a/boot.php +++ b/boot.php @@ -1,6 +1,6 @@ get(local_user(), 'system', 'ignore_info')) { - return; - } - if (empty($_SESSION['sysmsg_info'])) { $_SESSION['sysmsg_info'] = []; } @@ -410,38 +383,6 @@ function is_site_admin() return local_user() && $admin_email && in_array($a->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 *