X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Facl.php;h=e04a3fbc7e1d243727ae7a13a6d973497de15005;hb=bf0b98017decf73123891e935993f2921d3b0acf;hp=375c618c86dbfe483c9229a347a19db174938ba8;hpb=b71a3af4570ccf349804b9ffa151fc1d35287d88;p=friendica.git diff --git a/mod/acl.php b/mod/acl.php old mode 100755 new mode 100644 index 375c618c86..e04a3fbc7e --- a/mod/acl.php +++ b/mod/acl.php @@ -1,115 +1,12 @@ "g", - "photo" => "images/twopeople.png", - "name" => $g['name'], - "id" => intval($g['id']), - "uids" => array_map("intval", explode(",",$g['uids'])), - "link" => '' - ); - } - } - - if ($type=='' || $type=='c'){ - - $r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url`, `attag` FROM `contact` - WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != '' - $sql_extra2 - 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'], - "link" => $g['url'], - "nick" => ($g['attag']) ? $g['attag'] : $g['nick'], - ); - } - - } - - - $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); }