12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- $language_file= 'messages';
- $cidReset= true;
- include_once('../inc/global.inc.php');
- api_block_anonymous_users();
- if (api_get_setting('allow_message_tool')!='true'){
- api_not_allowed();
- }
- require_once(api_get_path(LIBRARY_PATH).'message.lib.php');
- if (isset($_GET['id_send']) || isset($_GET['id'])) {
- if (isset($_GET['rs'])) {
- $interbreadcrumb[]= array (
- 'url' => '#',
- 'name' => get_lang('Messages')
- );
- $interbreadcrumb[]= array (
- 'url' => '../social/'.$_SESSION['social_dest'].'?#remote-tab-2',
- 'name' => get_lang('SocialNetwork')
- );
- $interbreadcrumb[]= array (
- 'url' => 'inbox.php',
- 'name' => get_lang('Inbox')
- );
- $interbreadcrumb[]= array (
- 'url' => 'outbox.php',
- 'name' => get_lang('Outbox')
- );
- } else {
- $interbreadcrumb[]= array (
- 'url' => '#',
- 'name' => get_lang('Messages')
- );
- $interbreadcrumb[]= array (
- 'url' => 'inbox.php',
- 'name' => get_lang('Inbox')
- );
- $interbreadcrumb[]= array (
- 'url' => 'outbox.php',
- 'name' => get_lang('Outbox')
- );
- }
- }
- $request=api_is_xml_http_request();
- if ($request===false) {
- Display::display_header('');
- }
- if (isset($_GET['id_send'])) {
- MessageManager::show_message_box_sent();
- } else {
- MessageManager::show_message_box();
- }
- if ($request===false) {
- Display::display_footer();
- }
- ?>
|