*/ $language_file = array('userInfo'); $cidReset=true; require '../inc/global.inc.php'; require_once api_get_path(CONFIGURATION_PATH).'profile.conf.php'; require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php'; require_once api_get_path(LIBRARY_PATH).'fileUpload.lib.php'; require_once api_get_path(LIBRARY_PATH).'image.lib.php'; require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php'; require_once api_get_path(LIBRARY_PATH).'social.lib.php'; api_block_anonymous_users(); $this_section = SECTION_SOCIAL; //jquery thickbox already called from main/inc/header.inc.php $htmlHeadXtra[] = ''; $interbreadcrumb[]= array ('url' =>'profile.php','name' => get_lang('Social')); $interbreadcrumb[]= array ('url' =>'#','name' => get_lang('Friends')); Display :: display_header($tool_name, 'Groups'); echo '
'; echo '
'; //this include the social menu div SocialManager::show_social_menu('friends'); echo '
'; echo '
'; $language_variable = api_xml_http_response_encode(get_lang('Contacts')); $user_id = api_get_user_id(); $list_path_friends = array(); $user_id = api_get_user_id(); $name_search= Security::remove_XSS($_POST['search_name_q']); $number_friends = 0; if (isset($name_search) && $name_search!='undefined') { $friends = SocialManager::get_friends($user_id,null,$name_search); } else { $friends = SocialManager::get_friends($user_id); } if (count($friends) == 0 ) { echo get_lang('NoFriendsInYourContactList').'

'; echo ''.get_lang('TryAndFindSomeFriends').''; } else { ?>
'; echo '
'.Display::return_icon('content-post-group1.jpg',get_lang('Friends')).'
'; echo ''; echo ''; ?>
'; echo '
'; Display :: display_footer();