2010-07-13 03:00:58 +02:00
|
|
|
<?php
|
2016-01-24 19:56:23 +01:00
|
|
|
/**
|
|
|
|
* @file include/acl_selectors.php
|
|
|
|
*/
|
2018-02-05 01:23:49 +01:00
|
|
|
|
2017-04-30 06:07:00 +02:00
|
|
|
use Friendica\App;
|
2018-02-26 01:45:32 +01:00
|
|
|
use Friendica\Core\Acl;
|
2017-12-07 15:04:24 +01:00
|
|
|
use Friendica\Model\Contact;
|
2017-04-30 06:07:00 +02:00
|
|
|
|
2017-04-08 19:20:01 +02:00
|
|
|
require_once "mod/proxy.php";
|
2013-01-26 20:52:21 +01:00
|
|
|
|
2015-06-26 15:13:52 +02:00
|
|
|
function populate_acl($user = null, $show_jotnets = false) {
|
2018-02-26 01:45:32 +01:00
|
|
|
return Acl::getFullSelectorHTML($user, $show_jotnets);
|
2010-08-16 14:23:26 +02:00
|
|
|
}
|
|
|
|
|
2017-01-09 13:09:01 +01:00
|
|
|
function navbar_complete(App $a) {
|
2018-02-11 22:13:29 +01:00
|
|
|
$search = notags(trim($_REQUEST['search']));
|
2016-07-11 10:33:39 +02:00
|
|
|
$mode = $_REQUEST['smode'];
|
2016-01-24 19:56:23 +01:00
|
|
|
|
2018-02-26 01:45:32 +01:00
|
|
|
return Acl::contactAutocomplete($search, $mode);
|
2016-04-14 17:05:19 +02:00
|
|
|
}
|