Copyright (c) Facultad de Matematicas, UADY (México) Copyright (c) Evie, Free University of Brussels (Belgium) For a full list of contributors, see "credits.txt". The full license can be read in "license.txt". This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the GNU General Public License for more details. Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium Mail: info@dokeos.com ============================================================================== */ /* ============================================================================== INIT SECTION ============================================================================== */ // name of the language file that needs to be included $language_file= 'messages'; $cidReset=true; include_once ('../inc/global.inc.php'); require_once '../messages/message.class.php'; require_once (api_get_path(LIBRARY_PATH).'message.lib.php'); api_block_anonymous_users(); if (api_get_setting('allow_message_tool')!='true'){ api_not_allowed(); } $htmlHeadXtra[]=''; /* ============================================================================== MAIN CODE ============================================================================== */ $nameTools = get_lang('Messages'); $request=api_is_xml_http_request(); if ($request===false) { $interbreadcrumb[]= array ( 'url' => '#', 'name' => get_lang($nameTools) ); $interbreadcrumb[]= array ( 'url' => 'inbox.php', 'name' => get_lang('Inbox') ); $interbreadcrumb[]= array ( 'url' => 'outbox.php', 'name' => get_lang('Outbox') ); Display::display_header(''); } api_display_tool_title(get_lang('Outbox')); $table_message = Database::get_main_table(TABLE_MESSAGE); echo '
'; echo get_lang('MessageOutboxComment'); echo '
'; $user_sender_id=api_get_user_id(); if ($_REQUEST['action']=='delete') { $delete_list_id=array(); if (isset($_POST['out'])) { $delete_list_id=$_POST['out']; } if (isset($_POST['id'])) { $delete_list_id=$_POST['id']; } for ($i=0;$i