page.list.chat.php 441 B

123456789101112131415161718
  1. <?php
  2. global $myUser,$conf;
  3. User::check_access('rocketchat','read');
  4. if(empty($conf->get('rocketchat_host'))) throw new Exception("Le serveur chat n'est pas configuré, merci de contacter un administrateur");
  5. $url = $conf->get('rocketchat_host');
  6. if(!empty($conf->get('rocketchat_embed_chan'))){
  7. $url .= $conf->get('rocketchat_embed_chan').'?layout=embedded';
  8. }
  9. ?>
  10. <iframe class="frame-view" src="<?php echo $url; ?>"></iframe>