diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-12 23:08:07 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-12 23:08:07 -0700 |
commit | 7e16f8cdae597cc8329c3cc9ce769d512ba84085 (patch) | |
tree | cf16a878c11fefc2e60950792cc028016cc0a8d0 /mod/group.php | |
parent | a4dbd6657ca48131731da050c5378be8c84eda0e (diff) | |
download | volse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.tar.gz volse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.tar.bz2 volse-hubzilla-7e16f8cdae597cc8329c3cc9ce769d512ba84085.zip |
groups and acls
Diffstat (limited to 'mod/group.php')
-rw-r--r-- | mod/group.php | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/mod/group.php b/mod/group.php index 16298e63e..538277a0c 100644 --- a/mod/group.php +++ b/mod/group.php @@ -4,6 +4,7 @@ function group_init(&$a) { require_once('include/group.php'); + $a->page['aside'] .= group_side(); } @@ -46,11 +47,33 @@ function group_content(&$a) { )); + } + +dbg(2); + if(($a->argc == 2) && (intval($a->argv[1]))) { + require_once('view/acl_selectors.php'); + $r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1", + intval($a->argv[1]), + intval($_SESSION['uid']) + ); + if(! count($r)) { + notice("Group not found." . EOL ); + goaway($a->get_baseurl() . '/contacts'); + } + $ret = group_get_members($r[0]['id']); + $preselected = array(); + if(count($ret)) { + foreach($ret as $p) + $preselected[] = $p['id']; + } + $sel = contact_select('group_members_select','group_members_select',$preselected); + $o .= $sel; + } + + - } - return $o; }
\ No newline at end of file |