X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Facl.php;h=e04a3fbc7e1d243727ae7a13a6d973497de15005;hb=bf0b98017decf73123891e935993f2921d3b0acf;hp=cb5959a95b4b6393158097ef263b9d264ca8ee42;hpb=9debbfde1e6f4fd84b47486cd6b3f63ff381b4cd;p=friendica.git diff --git a/mod/acl.php b/mod/acl.php index cb5959a95b..e04a3fbc7e 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -1,94 +1,12 @@ "g", - "photo" => "images/default-group-mm.png", - "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(); +function acl_init(App $a) { + acl_lookup($a); }