aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-20 15:27:10 -0700
committerFriendika <info@friendika.com>2011-04-20 15:27:10 -0700
commita1ef8f669d41908e5d457ffe2ab2ac0455fec037 (patch)
tree7587246b77ee853141ee9985cc134b8b4c584305 /boot.php
parentb93b04e4a1c28156b4388ef58bd91eba0b5fae51 (diff)
downloadvolse-hubzilla-a1ef8f669d41908e5d457ffe2ab2ac0455fec037.tar.gz
volse-hubzilla-a1ef8f669d41908e5d457ffe2ab2ac0455fec037.tar.bz2
volse-hubzilla-a1ef8f669d41908e5d457ffe2ab2ac0455fec037.zip
don't show connect link to authenticated visitors
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 060a9e7cd..2713f3dce 100644
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
set_time_limit(0);
-define ( 'FRIENDIKA_VERSION', '2.1.954' );
+define ( 'FRIENDIKA_VERSION', '2.1.955' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1053 );
@@ -2252,8 +2252,15 @@ function profile_sidebar($profile) {
$photo = '<div id="profile-photo-wrapper"><img class="photo" src="' . $profile['photo'] . '" alt="' . $profile['name'] . '" /></div>';
+ // don't show connect link to yourself
+
$connect = (($profile['uid'] != local_user()) ? '<li><a id="dfrn-request-link" href="dfrn_request/' . $profile['nickname'] . '">' . t('Connect') . '</a></li>' : '');
-
+
+ // don't show connect link to authenticated visitors either
+
+ if((remote_user()) && ($_SESSION['visitor_visiting'] == $profile['uid']))
+ $connect = '';
+
if((x($profile,'address') == 1)
|| (x($profile,'locality') == 1)
|| (x($profile,'region') == 1)