From 7a21a000a2b02e7dd443fd0f3ee09172de825b08 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 11 Jul 2010 02:52:47 -0700 Subject: lots of little stuff --- include/group.php | 34 +++++++++++++++++++++++++++++++++- include/nav.php | 6 ++++++ 2 files changed, 39 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/group.php b/include/group.php index e92e4480b..598d09c2e 100644 --- a/include/group.php +++ b/include/group.php @@ -25,7 +25,7 @@ function group_rmv($uid,$name) { $r = q("SELECT * FROM `group` WHERE `uid` = %d AND `name` = '%s' LIMIT 1", intval($uid), dbesc($name) - } + ); if(count($r)) $group_id = $r[0]['id']; if(! $group_id) @@ -102,4 +102,36 @@ function group_add_member($uid,$name,$member) { intval($member) ); return $r; +} + + + +function group_side() { + + if(! local_user()) + return; +$o .= <<< EOT + +
+

Groups

+ + + +
'; + + return $o; } \ No newline at end of file diff --git a/include/nav.php b/include/nav.php index c51c56ad2..d24abd4ac 100644 --- a/include/nav.php +++ b/include/nav.php @@ -2,6 +2,11 @@ page['nav'] .= "\r\n"; + if(($a->module != 'home') && (! (x($_SESSION['uid'])))) + $a->page['nav'] .= "Home\r\n"; + + $a->page['nav'] .= "Site Directory\r\n"; + if(x($_SESSION,'uid')) { $a->page['nav'] .= "Notifications\r\n"; @@ -20,4 +25,5 @@ $a->page['nav'] .= "Home\r\n"; } + $a->page['nav'] .= "\r\n\r\n"; -- cgit v1.2.3