From 9fa0956966288392c3e4eb85c6d1c2c0be9464d9 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Tue, 19 Jul 2011 16:17:58 +0200 Subject: New jot acl selector --- mod/acl.php | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 mod/acl.php (limited to 'mod') diff --git a/mod/acl.php b/mod/acl.php new file mode 100644 index 000000000..352c48719 --- /dev/null +++ b/mod/acl.php @@ -0,0 +1,94 @@ + "g", + "photo" => "images/default-group-mm.jpg", + "name" => $g['name'], + "id" => intval($g['id']), + "uids" => array_map("intval", explode(",",$g['uids'])) + ); + } + + + $r = q("SELECT `id`, `name`, `micro`, `network` FROM `contact` + WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != '' + $sql_extra + ORDER BY `name` ASC ", + intval(local_user()) + ); + foreach($r as $g){ + $contacts[] = array( + "type" => "c", + "photo" => $g['micro'], + "name" => $g['name'], + "id" => intval($g['id']), + "network" => $g['network'] + ); + } + + + + + $items = array_merge($groups, $contacts); + + $o = array( + 'tot' => $tot, + 'start' => $start, + 'count' => $count, + 'items' => $items, + ); + + echo json_encode($o); + + killme(); +} + + -- cgit v1.2.3 From 9debbfde1e6f4fd84b47486cd6b3f63ff381b4cd Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Tue, 19 Jul 2011 16:25:40 +0200 Subject: fix group image name --- mod/acl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/acl.php b/mod/acl.php index 352c48719..cb5959a95 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -50,7 +50,7 @@ function acl_init(&$a){ foreach($r as $g){ $groups[] = array( "type" => "g", - "photo" => "images/default-group-mm.jpg", + "photo" => "images/default-group-mm.png", "name" => $g['name'], "id" => intval($g['id']), "uids" => array_map("intval", explode(",",$g['uids'])) -- cgit v1.2.3