X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=34d35df70da9924063c3b48e54e4ea0098d93465;hb=d653bc4dbdd8ec7a920421ced225f5b9eb4eef46;hp=accaf1d0c549760f679a144a237ba72c65d5895a;hpb=8eb781994bd53451cfea95b2632c22ced8543e32;p=friendica.git diff --git a/boot.php b/boot.php index accaf1d0c5..34d35df70d 100644 --- a/boot.php +++ b/boot.php @@ -12,9 +12,9 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.1.1592' ); +define ( 'FRIENDICA_VERSION', '3.1.1614' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1158 ); +define ( 'DB_UPDATE_VERSION', 1159 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); @@ -1327,7 +1327,7 @@ if(! function_exists('profile_sidebar')) { } } - if(get_my_url() && $profile['unkmail']) + if( get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()) ) $wallmessage = t('Message'); else $wallmessage = false; @@ -1942,6 +1942,36 @@ function build_querystring($params, $name=null) { return $ret; } +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) { + if($arg === '') + unset($args[$k]); + } + $args = array_values($args); + + if(!$base) { + $base = $args[0]; + unset($args[0]); + $args = array_values($args); + } + + return array( + 'base' => $base, + 'args' => $args, + ); +} + /** * Returns the complete URL of the current page, e.g.: http(s)://something.com/network *