From 0cdf34fb03aae0d61bb49cd1f47684ef9ff1153f Mon Sep 17 00:00:00 2001
From: moodler
Date: Fri, 22 Dec 2006 05:42:36 +0000
Subject: [PATCH] Fixed lots of XHTML errors but still not working correctly in
Strict
---
mod/chat/gui_header_js/chatinput.php | 12 ++++++------
mod/chat/gui_header_js/chatmsg.php | 6 ++++++
mod/chat/gui_header_js/insert.php | 13 +++++++++++--
mod/chat/gui_header_js/jsupdate.php | 10 ++++++----
mod/chat/gui_header_js/jsupdated.php | 16 ++++++++--------
mod/chat/gui_header_js/users.php | 6 +++---
mod/chat/view.php | 2 +-
7 files changed, 41 insertions(+), 24 deletions(-)
diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php
index e488871ad2..30f5190a34 100644
--- a/mod/chat/gui_header_js/chatinput.php
+++ b/mod/chat/gui_header_js/chatinput.php
@@ -27,8 +27,8 @@
ob_start();
?>
-
-
-
diff --git a/mod/chat/gui_header_js/chatmsg.php b/mod/chat/gui_header_js/chatmsg.php
index 678b075cfe..43e9d37fb8 100644
--- a/mod/chat/gui_header_js/chatmsg.php
+++ b/mod/chat/gui_header_js/chatmsg.php
@@ -1,2 +1,8 @@
+
+
+Dummy
+
+
+
diff --git a/mod/chat/gui_header_js/insert.php b/mod/chat/gui_header_js/insert.php
index 6972bcc4a7..ef2f965ccd 100644
--- a/mod/chat/gui_header_js/insert.php
+++ b/mod/chat/gui_header_js/insert.php
@@ -59,9 +59,18 @@
if ($chatuser->version == 'header_js') {
/// force msg referesh ASAP
if ($CFG->chat_normal_updatemode == 'jsupdated') { // See bug MDL-6791
- echo '';
+ echo '';
} else {
- echo '';
+ echo '';
}
}
diff --git a/mod/chat/gui_header_js/jsupdate.php b/mod/chat/gui_header_js/jsupdate.php
index e372849c02..4ad5948511 100644
--- a/mod/chat/gui_header_js/jsupdate.php
+++ b/mod/chat/gui_header_js/jsupdate.php
@@ -68,6 +68,7 @@
// no & in url, does not work in header!
$refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow";
+ $refreshurlamp = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow";
header('Expires: Sun, 28 Dec 1997 09:32:45 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
@@ -90,9 +91,10 @@
+
@@ -151,7 +153,7 @@
echo '';
}
?>
- Refresh link
+ Refresh link
@@ -153,8 +153,8 @@
$num = 0;
}
- print '' . "\n\n";
if ($beep) {
print '';
@@ -211,10 +211,10 @@
// here & should be written & :-D
$refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdated.php?chat_sid=$chat_sid&chat_lasttime=$chat_lasttime&chat_lastrow=$chat_newrow&chat_lastid=$chat_lastid";
- print '' . "\n\n";
?>
diff --git a/mod/chat/gui_header_js/users.php b/mod/chat/gui_header_js/users.php
index cae25eec2b..9023ff55be 100644
--- a/mod/chat/gui_header_js/users.php
+++ b/mod/chat/gui_header_js/users.php
@@ -58,8 +58,8 @@
ob_start();
?>
-
';
echo "$stridle: ".format_time($lastping)."";
echo '
';
- echo '';
+ echo ' | ';
}
echo '';
print_simple_box_end();
--
2.39.5