|
|
@ -63,10 +63,13 @@ if (Database::num_rows($rs)>0) { |
|
|
|
|
|
|
|
|
|
|
|
$action = $_GET['action']; |
|
|
|
$action = $_GET['action']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$url_id = api_get_current_access_url_id(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch($action) { |
|
|
|
switch($action) { |
|
|
|
case 'add_user_to_url': |
|
|
|
case 'add_user_to_url': |
|
|
|
$user_id = $_REQUEST['user_id']; |
|
|
|
$user_id = $_REQUEST['user_id']; |
|
|
|
$result = UrlManager::add_user_to_url($user_id); |
|
|
|
$result = UrlManager::add_user_to_url($user_id, $url_id); |
|
|
|
$user_info = api_get_user_info($user_id); |
|
|
|
$user_info = api_get_user_info($user_id); |
|
|
|
if ($result) { |
|
|
|
if ($result) { |
|
|
|
$message = Display::return_message(get_lang('UserAdded').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']), 'confirm'); |
|
|
|
$message = Display::return_message(get_lang('UserAdded').' '.api_get_person_name($user_info['firstname'], $user_info['lastname']), 'confirm'); |
|
|
@ -309,7 +312,6 @@ if ($session['nbr_users']==0) { |
|
|
|
$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname'; |
|
|
|
$order_clause = api_sort_by_first_name() ? ' ORDER BY firstname, lastname' : ' ORDER BY lastname, firstname'; |
|
|
|
|
|
|
|
|
|
|
|
if ($multiple_url_is_on) { |
|
|
|
if ($multiple_url_is_on) { |
|
|
|
$url_id = api_get_current_access_url_id(); |
|
|
|
|
|
|
|
$sql = "SELECT u.user_id, lastname, firstname, username, access_url_id |
|
|
|
$sql = "SELECT u.user_id, lastname, firstname, username, access_url_id |
|
|
|
FROM $tbl_user u |
|
|
|
FROM $tbl_user u |
|
|
|
INNER JOIN $tbl_session_rel_user su |
|
|
|
INNER JOIN $tbl_session_rel_user su |
|
|
|