friendica/include/acl_selectors.php

35 lines
913 B
PHP
Raw Normal View History

2010-07-13 01:00:58 +00:00
<?php
/**
* @file include/acl_selectors.php
*/
use Friendica\App;
use Friendica\Core\Acl;
2017-12-07 14:04:24 +00:00
use Friendica\Model\Contact;
require_once "mod/proxy.php";
function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false, $tabindex = null) {
return Acl::getMessageContactSelectHTML($selname, $selclass, defaults($preselected, []), $size, $privmail, $celeb, $privatenet, $tabindex);
2010-08-08 06:54:22 +00:00
}
2010-07-13 01:00:58 +00:00
function prune_deadguys($arr) {
Contact::pruneUnavailable($arr);
return $arr;
}
function get_acl_permissions($user = null) {
return Acl::getDefaultUserPermissions($user);
}
2015-06-26 13:13:52 +00:00
function populate_acl($user = null, $show_jotnets = false) {
return Acl::getFullSelectorHTML($user, $show_jotnets);
2010-08-16 12:23:26 +00:00
}
function navbar_complete(App $a) {
$search = notags(trim($_REQUEST['search']));
$mode = $_REQUEST['smode'];
return Acl::contactAutocomplete($search, $mode);
2016-04-14 15:05:19 +00:00
}