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 ============================================================================== */ $language_file= 'messages'; include_once('../inc/global.inc.php'); include (api_get_path(LIBRARY_PATH).'message.lib.php'); api_block_anonymous_users(); if (api_get_setting('allow_message_tool')!='true'){ api_not_allowed(); } if(api_get_user_id()!=0) { echo ' '; echo ' '; $number_of_new_messages = get_new_messages(); if(is_null($number_of_new_messages)) { $number_of_new_messages = 0; } echo "".get_lang('Inbox')."(".$number_of_new_messages.")"; echo " - "; echo "".get_lang('ComposeMessage').""; if($number_of_new_messages > 0) { ?>
'.get_lang('YouHaveNewMessage').''; ?>
'; echo ' '; } ?>