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

Source for file online_working_area.php

Documentation is available at online_working_area.php

  1. <?php // $Id: online_working_area.php 10204 2006-11-26 20:46:53Z pcool $
  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. *    Welcome page of the working area (right frame)
  27. *
  28. *    @author Olivier Brouckaert
  29. *    @package dokeos.online
  30. ==============================================================================
  31. */
  32.  
  33. define('FRAME','working_area');
  34.  
  35. // name of the language file that needs to be included 
  36. $language_file='chat';
  37.  
  38. include('../inc/global.inc.php');
  39. $this_section=SECTION_COURSES;
  40.  
  41. $query="SELECT username FROM $tbl_user WHERE user_id='".$_user['user_id']."'";
  42. $result=api_sql_query($query,__FILE__,__LINE__);
  43.  
  44. list($pseudoUser)=mysql_fetch_row($result);
  45.  
  46. $isAllowed=(empty($pseudoUser|| !$_cid)?false:true;
  47. $isMaster=$is_courseAdmin?true:false;
  48.  
  49. if(!$isAllowed)
  50. {
  51.     api_not_allowed();
  52. }
  53.  
  54. include('header_frame.inc.php');
  55. ?>
  56.  
  57. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  58. <tr>
  59.   <td align="center" valign="middle">
  60.     <img src="../img/whiteboard.gif" border="0"><br><br><br>
  61.     <?php echo get_lang('WelcomeToOnlineConf')?> !
  62.   </td>
  63. </tr>
  64. </table>
  65.  
  66. <?php
  67. include('footer_frame.inc.php');
  68. ?>

Documentation generated on Thu, 12 Jun 2008 14:08:44 -0500 by phpDocumentor 1.4.1