35eb24e3ede8cb255012799222219ea7d0190bda
[atutor.git] / docs / mods / _standard / chat / manage / view_transcript.php
1 <?php
2 /************************************************************************/
3 /* ATutor                                                                                                                               */
4 /************************************************************************/
5 /* Copyright (c) 2002-2010                                              */
6 /* Inclusive Design Institute                                           */
7 /* http://atutor.ca                                                     */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12 // $Id$
13 define('AT_INCLUDE_PATH', '../../../../include/');
14 require(AT_INCLUDE_PATH.'vitals.inc.php');
15
16
17 $file = AT_CONTENT_DIR . 'chat/'.$_SESSION['course_id'].'/tran/'.$_GET['t'].'.html';
18 if (!file_exists($file)) {
19         $msg->addError('FILE_NOT_FOUND');
20         header('Location: index.php');
21         exit;
22 }
23 require(AT_INCLUDE_PATH.'header.inc.php');
24 @readfile($file);
25 echo '</table>';
26 require(AT_INCLUDE_PATH.'footer.inc.php');
27 ?>