dokeos-chat
[ class tree: dokeos-chat ] [ index: dokeos-chat ] [ all elements ]

Source for file chat.php

Documentation is available at chat.php

  1. <?php // $Id: chat.php 15067 2008-04-24 17:39:03Z juliomontoya $
  2. /*
  3. ==============================================================================
  4.     Dokeos - elearning and course management software
  5.  
  6.     Copyright (c) 2004 Dokeos S.A.
  7.     Copyright (c) 2003 Ghent University (UGent)
  8.     Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9.     Copyright (c) Olivier Brouckaert
  10.  
  11.     For a full list of contributors, see "credits.txt".
  12.     The full license can be read in "license.txt".
  13.  
  14.     This program is free software; you can redistribute it and/or
  15.     modify it under the terms of the GNU General Public License
  16.     as published by the Free Software Foundation; either version 2
  17.     of the License, or (at your option) any later version.
  18.  
  19.     See the GNU General Public License for more details.
  20.  
  21.     Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
  22. ==============================================================================
  23. */
  24. /**
  25. ==============================================================================
  26. *    Frameset of the Chat tool
  27. *
  28. *    @author Olivier Brouckaert
  29. *    @package dokeos.chat
  30. ==============================================================================
  31. */
  32.  
  33. $language_file array ('chat');
  34. include('../inc/global.inc.php');
  35. $nameTools=get_lang('Chat');
  36. if ($_GET["origin"!= 'whoisonline'{
  37. }
  38. else
  39. {
  40.     $origin $_SESSION['origin'];
  41.     $target $_SESSION['target'];
  42.     $_SESSION['origin']=$_GET["origin"];
  43.     $_SESSION['target']=$_GET["target"];
  44. }
  45. /* ============================================================================== 
  46.               TRACKING
  47. ==============================================================================  */
  48. include('../inc/lib/events.lib.inc.php');
  49.  
  50.  
  51.  
  52. /*
  53.  * Choose CSS style (platform's, user's, or course's) 
  54.  */
  55. $platform_theme api_get_setting('stylesheets');     // plataform's css
  56. $my_style=$platform_theme;
  57. if(api_get_setting('user_selected_theme'== 'true'
  58. {        
  59.     $useri api_get_user_info();
  60.     $user_theme $useri['theme'];
  61.     if(!empty($user_theme&& $user_theme != $my_style)
  62.     {
  63.         $my_style $user_theme;                    // user's css
  64.     }
  65. }
  66.  
  67. $mycourseid api_get_course_id();
  68. if (!empty($mycourseid&& $mycourseid != -1
  69. {    
  70.     if (api_get_setting('allow_course_theme'== 'true'
  71.     {    
  72.         $mycoursetheme=api_get_course_setting('course_theme');            
  73.         if (!empty($mycoursetheme&& $mycoursetheme!=-1)         
  74.         {                            
  75.             if(!empty($mycoursetheme&& $mycoursetheme != $my_style)
  76.             {                
  77.                 $my_style $mycoursetheme;        // course's css
  78.             }            
  79.         }                
  80.     
  81.     }
  82. }
  83.  
  84. switch($my_style){
  85.     case 'dokeos_classic' 
  86.         $footer_size 48;
  87.         break;
  88.     case 'academica' 
  89.         $footer_size 140;
  90.         break;
  91.     case 'silver_line' 
  92.         $footer_size 60;
  93.         break;
  94.     case 'baby_orange' 
  95.         $footer_size 120;
  96.         break;
  97.     default 
  98.         $footer_size 48;
  99.         break;
  100. }
  101. ?>
  102.  
  103. <frameset rows="130,*,<?php echo $footer_size;?>" border="0" frameborder="0" framespacing="1">
  104.     <frame src="chat_banner.php" name="chat_banner" scrolling="no">
  105.     <frameset cols="200,*,0" border="1" frameborder="1" framespacing="1">
  106.         <frame src="chat_whoisonline.php" name="chat_whoisonline" scrolling="auto">
  107.         <frameset rows="75,15" border="1" frameborder="1" framespacing="1">
  108.             <frame src="chat_chat.php?origin=<?php echo $_GET["origin"]?>&target=<?php echo $_GET["target"]?>" name="chat_chat" scrolling="auto">
  109.             <frame src="chat_message.php" name="chat_message" scrolling="no">
  110.         </frameset>
  111.         <frame src="chat_hidden.php" name="chat_hidden" scrolling="no">
  112.     </frameset>
  113.     <frame src="chat_footer.php" name="chat_footer" scrolling="no">
  114. </frameset>
  115. </html>

Documentation generated on Thu, 12 Jun 2008 13:03:10 -0500 by phpDocumentor 1.4.1