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 =========================================================================5==== */ // name of the language file that needs to be included $language_file= 'messages'; 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'); $nameTools = get_lang('Messages'); $interbredcrump[]=array('url' => 'inbox.php','name' => get_lang('Inbox')); Display::display_header($nameTools,get_lang('Messages')); api_display_tool_title(get_lang('ReadMessage')); $table_message = Database::get_course_table(TABLE_MESSAGE); $query = "UPDATE $table_message SET msg_status = '0' WHERE user_receiver_id=".api_get_user_id()." AND id='".Database::escape_string($_GET['id'])."';"; $result = api_sql_query($query,__FILE__,__LINE__); $query = "SELECT * FROM $table_message WHERE user_receiver_id=".api_get_user_id()." AND id='".Database::escape_string($_GET['id'])."';"; $result = api_sql_query($query,__FILE__,__LINE__); $row = Database::fetch_array($result); $user_con = users_connected_by_id(); $band=0; $reply=''; for($i=0;$i'.Display::return_icon('message_reply.png',get_lang('ReplyToMessage')).get_lang('ReplyToMessage').''; echo '
'; echo '« '.get_lang('BackToInbox').''; echo $reply; echo ''.Display::return_icon('message_delete.png',get_lang('DeleteMessage')).''.get_lang('Delete').''; echo '

'; echo '
 

'.$row[5].'

'.get_lang('From').' '.GetFullUserName($row[1],$mysqlMainDb).' '.strtolower(get_lang('To')).'  '.GetFullUserName($row[2],$mysqlMainDb).'
'.get_lang('Date').'  '.$row[4].'

'.$row[6].'
 
'; /* ============================================================================== FOOTER ============================================================================== */ Display::display_footer(); ?>