2 /****************************************************************/
4 /****************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
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 /****************************************************************/
14 define('AT_INCLUDE_PATH', '../../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
16 //authenticate(USER_CLIENT, USER_ADMIN);
17 require(AT_INCLUDE_PATH.'../mods/_standard/chat/lib/chat.inc.php');
19 $myPrefs = getPrefs($_SESSION['username']);
20 writePrefs($myPrefs, $_SESSION['username']);
23 $topMsgNum = $bottomMsgNum = 0;
24 howManyMessages($topMsgNum, $bottomMsgNum);
26 $filterChatID = $_GET['filterChatID'];
28 require('include/html/chat_header.inc.php');
30 <table width="100%" border="0" cellpadding="5" cellspacing="0">
32 <td align="right"><a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
36 <table width="100%" border="0" cellpadding="5" cellspacing="0">
38 <th align="left" class="box"><?php echo _AT('history'); ?></th>
41 <p><table border="0" cellpadding="2" cellspacing="0" width="90%" class="box2">
43 if ($myPrefs['newestFirstFlag'] > 0) {
44 for ($i = $topMsgNum; $i >= 1; $i--) {
45 showMessageFiltered($i, $myPrefs, $filterChatID);
48 for ($i = 1; $i <= $topMsgNum ; $i++) {
49 showMessageFiltered($i, $myPrefs, $filterChatID);
56 <table width="100%" border="0" cellpadding="5" cellspacing="0">
58 <td align="right"><a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
61 <?php require('include/html/chat_footer.inc.php'); ?>