Source for file _ajax_user_autocomplete.php
Documentation is available at _ajax_user_autocomplete.php
* @package linea21.modules
* @author Simon Georget <simon@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
include_once('../config/define.php');
//////////// Check Droits utilisateur ////////////
if (!$l21auth->hasRight('workshop')) ReloadIndex('admin');
include_once('../workshop/'. SQL. '.inc.php');
foreach ($data as $i => $user)
if(!empty($user['profile_firstname']) || $user['profile_lastname']) {
$fullname = ' - '. $user['profile_firstname']. ' '. $user['profile_lastname'];
$str_id = $user['user_login'];
$html_str = $user['user_login'] . $fullname . ' ('. $user['profile_email']. ')';
$response[] = array($str_id, $html_str, null, $html_str);
header('Content-type: application/json');
|