public function executeGetMsg()
 {
     $user = $this->getUser();
     $timePunbbMsg = $user->getAttribute('TimePunbbMsg', 0);
     $request = $this->getRequest();
     if (time() - $timePunbbMsg > 60 * 5 || $timePunbbMsg == 0 || strstr($request->getUri(), 'message_list.php') !== false && $request->hasParameter('id') === true) {
         $this->UnreadMsg = PunbbMsg::GetUnreadMsg($user->getId());
         if (!$this->UnreadMsg) {
             $this->UnreadMsg = 0;
         }
         $user->setAttribute('NbPunbbMsg', $this->UnreadMsg);
         $user->setAttribute('TimePunbbMsg', time());
     } else {
         $this->UnreadMsg = $user->getAttribute('NbPunbbMsg', 0);
     }
 }
    echo display_flash_message($value);
}
?>

<div id="header">
  <div id="banner_middle">
    <div id="log">
        <div id="mobile_home">
        <?php 
echo link_to('<span>&nbsp;</span>', '@homepage', array('title' => 'Camptocamp.org'));
?>
        </div>
      <div class="log_elt">
      <?php 
echo select_interface_language(), ' ';
if ($sf_user->isConnected() && PunbbMsg::GetUnreadMsg($sf_user->getId())) {
    echo f_link_to(picto_tag('action_contact', __('mailbox')), 'message_list.php');
}
?>
      </div>
        <div class="log_elt" id="user_mngt">
        <?php 
if ($sf_user->isConnected()) {
    ?>
          <strong><?php 
    echo link_to($sf_user->getUsername(), '@document_by_id?module=users&id=' . $sf_user->getId(), array('id' => 'name_to_use', 'data-user-id' => $sf_user->getId(), 'class' => 'logged_as', 'title' => __('Your are connected as ')));
    ?>
</strong>
          <?php 
    echo link_to(picto_tag('action_cancel', __('Logout')), '@logout');
} else {