X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Facl.php;h=5666ccabb8112646f9c01217a9994d86edda8d3c;hb=44592611e1582fd97ae1988343418a0dae1ae2a0;hp=375c618c86dbfe483c9229a347a19db174938ba8;hpb=a33031634efef94c0985cd2517f10ccd36b40b5f;p=friendica.git diff --git a/mod/acl.php b/mod/acl.php old mode 100755 new mode 100644 index 375c618c86..5666ccabb8 --- a/mod/acl.php +++ b/mod/acl.php @@ -1,115 +1,10 @@ "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(); + acl_lookup($a); +} } - -