api_get_path(WEB_PATH).'main/messages/inbox.php','name' => get_lang('Messages'));
$social_right_content = null;
if (isset($_GET['f']) && $_GET['f']=='social') {
$social_parameter = '?f=social';
} else {
if (api_get_setting('extended_profile') == 'true') {
$social_right_content .= '
';
}
}
if (empty($_GET['id'])) {
$id_message = $_GET['id_send'];
$source = 'outbox';
$show_menu = 'messages_outbox';
} else {
$id_message = $_GET['id'];
$source = 'inbox';
$show_menu = 'messages_inbox';
}
$message = MessageManager::show_message_box($id_message, $source);
if (empty($message)) {
api_not_allowed();
}
$tpl = $app['template'];
//$tpl->setTitle(get_lang('Read'));
$tpl->assign('actions', $actions);
$tpl->assign('message', $message);
$tpl->assign('content', $social_right_content);
$tpl->display_one_col_template();