<?php
/****************************************************************************************/
/* ACollab */
/****************************************************************************************/
/* Copyright (c) 2002-2004 Adaptive Technology Resource Centre / University of Toronto */
/* */
/* http://atutor.ca/acollab */
/* */
/* This program is free software. You may redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 of the License, */
/* or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, but */
/* WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
/* See the GNU General Public License for more details. */
/* */
/* You may access the GNU General Public License at: */
/* http://www.opensource.org/licenses/gpl-license.php */
/* */
/* You may contact the Adaptive Technology Resource Centre at */
/* Robarts Library, University of Toronto */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5 */
/* Further contact information is available at http://www.utoronto.ca/atrc/ */
/****************************************************************************************/
/* Programmer: */
/* Joel Kronenberg - ATRC */
/****************************************************************************************/
// $Id: chat.php 441 2005-03-07 21:07:59Z shozubq $
define('AC_INCLUDE_PATH', '../include/');
require(AC_INCLUDE_PATH.'vitals.inc.php');
authenticate(USER_CLIENT, USER_GROUP_ADMIN, USER_ADMIN);
/*updated*/
require('include/functions.inc.php');
$myPrefs = getPrefs($_SESSION['login']);
writePrefs($myPrefs, $_SESSION['login']);
$my_group = get_group($_SESSION['group_id']);
?>
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<title><?php echo SITE_NAME.' '._AC('chat').' - '.$my_group['title']; ?></title>
</head>
<?php
if ($myPrefs['bingFlag'] > 0 && $myPrefs['refresh'] == 'manual') {
makeBingFile($chatID);
?>
<frameset cols="*,300" border="0">
<frame src="./display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" />
<frameset rows="*,1" border="0">
<frame src="./options.php" name="options" />
<frame src="bings/taras.html" name="bing" />
</frameset>
</frameset>
<?php
} else if ($myPrefs['refresh'] == 'manual') {
?>
<frameset cols="*,300" border="0">
<frame src="./display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" />
<frame src="./options.php" name="options" />
</frameset>
<?php
} else {
?>
<frameset cols="*,300" border="0">
<frameset rows="*,120" border="0">
<frame src="./display.php?firstLoginFlag=<?php echo $_GET['firstLoginFlag']; ?>" name="display" />
<frame src="./poster.php" name="compose" />
</frameset>
<frame src="./options.php" name="options" />
</frameset>
<?php
}
?>