'; /* MAIN CODE */ //$nameTools = get_lang('Messages'); //api_display_tool_title(api_xml_http_response_encode(get_lang('Inbox'))); if ($_GET['f']=='social') { $this_section = SECTION_SOCIAL; $interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social')); $interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox')); } else { $this_section = SECTION_MYPROFILE; $interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/auth/profile.php','name' => get_lang('Profile')); $interbreadcrumb[]= array ('url' => '#','name' => get_lang('Inbox')); } Display::display_header(''); if ($_GET['f']=='social') { } else { if (api_get_setting('extended_profile') == 'true') { echo '
'; if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { echo ''.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).' '.get_lang('ViewSharedProfile').''; } if (api_get_setting('allow_message_tool') == 'true') { echo ''.Display::return_icon('inbox.png').' '.get_lang('Messages').''; } echo ''.Display::return_icon('edit.gif', get_lang('EditNormalProfile')).' '.get_lang('EditNormalProfile').''; echo '
'; } } $info_delete_outbox=array(); $info_delete_outbox=explode(',',$_GET['form_delete_outbox']); $count_delete_outbox=(count($info_delete_outbox)-1); if( trim($info_delete_outbox[0])=='delete' ) { for ($i=1;$i<=$count_delete_outbox;$i++) { MessageManager::delete_message_by_user_sender(api_get_user_id(),$info_delete_outbox[$i]); } $message_box=get_lang('SelectedMessagesDeleted'). ' 
'. get_lang('BackToOutbox'). ''; Display::display_normal_message(api_xml_http_response_encode($message_box),false); exit; } $table_message = Database::get_main_table(TABLE_MESSAGE); $user_sender_id=api_get_user_id(); echo '
'; $id_content_right = ''; //LEFT COLUMN if (api_get_setting('allow_social_tool') != 'true') { $id_content_right = 'outbox'; echo '
'; echo ''; echo '
'; } else { require_once api_get_path(LIBRARY_PATH).'social.lib.php'; $id_content_right = 'social-content-right'; echo '
'; //this include the social menu div SocialManager::show_social_menu('messages_outbox'); echo '
'; } echo '
'; if (api_get_setting('allow_social_tool') == 'true'){ echo ''; echo '
'; /* FOOTER */ Display::display_footer(); ?>