remove old readme
[atutor.git] / docs / mods / _standard / chat / chat.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2010                                      */
6 /* Inclusive Design Institute                                   */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 // $Id$
14 define('AT_INCLUDE_PATH', '../../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16
17 require(AT_INCLUDE_PATH.'../mods/_standard/chat/lib/chat.inc.php');
18
19 $myPrefs = getPrefs($_SESSION['login']);
20 writePrefs($myPrefs, $_SESSION['login']);
21 ?>
22 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
23    "http://www.w3.org/TR/html4/frameset.dtd">
24 <html lang="<?php echo $myLang->getCode(); ?>">
25 <head>
26         <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $myLang->getCharacterSet(); ?>">
27         <meta http-equiv="Pragma" content="no-cache">
28         <title>ATutor AChat</title>
29 </head>
30
31 <?php
32         if ($myPrefs['bingFlag'] > 0 && $myPrefs['refresh'] == 'manual') {
33                 //makeBingFile($chatID);
34 ?>
35         <frameset cols="*,300" frameborder="0">
36                 <frame src="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" title="Message Display" frameborder="0">
37                 <frameset rows="*,1">
38                         <frame src="options.php" name="options" title="Chat Options" frameborder="0">
39                         <frame src="bings/taras.php" name="bing" title="Hidden Bing Frame" frameborder="0">
40                 </frameset>
41   <noframes>
42       <p><?php echo _AT('frame_contains'); ?><br />
43           * <a href="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>"><?php echo _AT('chat_messages') ?></a>
44           * <a href="options.php"><?php echo _AT('chat_options'); ?></a>
45           * <a href="poster.php"><?php echo _AT('chat_compose_message'); ?></a>
46           </p>
47   </noframes>
48         </frameset>
49 <?php
50         } else if ($myPrefs['refresh'] == 'manual') {
51 ?>
52         <frameset cols="*,300" frameborder="0">
53                 <frame src="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" title="Message Display and Poster" frameborder="0">
54                 <frame src="options.php" name="options" title="<?php echo _AT('chat_options'); ?>" frameborder="0" />
55         <noframes>
56       <p><?php echo _AT('frame_contains'); ?><br />
57           * <a href="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>"><?php echo _AT('chat_messages') ?></a>
58           * <a href="options.php"><?php echo _AT('chat_options'); ?></a>
59           * <a href="poster.php"><?php echo _AT('chat_compose_message'); ?></a>
60           </p>
61   </noframes>
62         </frameset>
63 <?php
64         } else {
65 ?>
66         <frameset cols="*,300" frameborder="0">
67                 <frameset rows="*,120">
68                         <frame src="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" title="Message Display" frameborder="0" marginwidth="0" marginheight="0">
69                         <frame src="poster.php" name="compose" title="Message Poster" frameborder="0" marginwidth="0" marginheight="0">
70                 </frameset>
71                 <frame src="options.php" name="options" title="<?php echo _AT('chat_options'); ?>" frameborder="0" marginwidth="0" marginheight="0">
72                         <noframes>
73       <p><?php echo _AT('frame_contains'); ?><br />
74           * <a href="display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>"><?php echo _AT('chat_messages') ?></a>
75           * <a href="options.php"><?php echo _AT('chat_options'); ?></a>
76           * <a href="poster.php"><?php echo _AT('chat_compose_message'); ?></a>
77           </p>
78   </noframes>
79         </frameset>
80 <?php
81         }
82 ?>
83 </html>