|
From: Lo?c C. <lo...@us...> - 2001-05-06 16:45:46
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat
In directory usw-pr-cvs1:/tmp/cvs-serv16200/chat
Modified Files:
loader.php3
Log Message:
The (in)famous IE4 javascript bug is fixed :)))
***** Bogus filespec: -
***** Bogus filespec: 0.14/chat
Index: loader.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/loader.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** loader.php3 2001/04/23 18:28:48 1.6
--- loader.php3 2001/05/06 16:45:43 1.7
***************
*** 122,126 ****
{
$QueryRoom = " AND (type = 1".($T == "0" ? " OR (type = 0 AND room = '$R')" : "").") ";
! $DbLink->query("SELECT DISTINCT m_time FROM ".C_MSG_TBL." WHERE m_time > '$LastCheck' AND username IN ('SYS enter','SYS exit','SYS promote')".$QueryRoom."ORDER BY m_time DESC LIMIT 1");
$Users_Refresh = ($DbLink->num_rows() > 0);
if ($Users_Refresh) list($LastCheck) = $DbLink->next_record();
--- 122,126 ----
{
$QueryRoom = " AND (type = 1".($T == "0" ? " OR (type = 0 AND room = '$R')" : "").") ";
! $DbLink->query("SELECT DISTINCT m_time FROM ".C_MSG_TBL." WHERE m_time > '$LastCheck' AND username IN ('SYS enter','SYS exit','SYS promote','SYS delreg')".$QueryRoom."ORDER BY m_time DESC LIMIT 1");
$Users_Refresh = ($DbLink->num_rows() > 0);
if ($Users_Refresh) list($LastCheck) = $DbLink->next_record();
***************
*** 236,242 ****
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
- // Emulates replace method for non-js1.1 compliant browsers
- if (typeof(location.replace)=='undefined') location.replace = location.assign;
-
// Update the time values for last check and last loaded message in the main page
window.parent.time4LastLoadedMsg = "<?php echo($LastLoad); ?>";
--- 236,239 ----
|