Skip to content
Permalink
Browse files

Still better handling of console output, and starting to experiment w…

…ith the

new idea of "externally" refreshing the users window for reliability.
  • Loading branch information...
defacer
defacer committed Aug 24, 2004
1 parent dd23e49 commit 4b31fcf60834357a05a9c7d0f818516dc3efa115
Showing with 25 additions and 5 deletions.
  1. +5 −1 mod/chat/chatd.php
  2. +16 −0 mod/chat/gui_sockets/chatinput.php
  3. +4 −4 mod/chat/gui_sockets/index.php
@@ -3,7 +3,7 @@
define('QUIRK_CHUNK_UPDATE', 0x0001);
echo "Moodle chat daemon v1.0 (\$Id$)\n\n";
echo "Moodle chat daemon v1.0 on PHP ".phpversion()." (\$Id$)\n\n";
/// Set up all the variables we need /////////////////////////////////////
@@ -74,6 +74,10 @@ function ChatDaemon() {
$this->_beepsoundsrc = $GLOBALS['CFG']->wwwroot.'/mod/chat/beep.wav';
$this->_freq_update_records = 15;
$this->_stdout = fopen('php://stdout', 'w');
if($this->_stdout) {
// Avoid double traces for everything
$this->_trace_to_console = false;
}
}
function query_start() {
@@ -68,6 +68,22 @@ function empty_field_and_submit() {
<input type="hidden" name="groupid" value="<?php echo $groupid ?>" />
</form>

<script type="text/javascript">
<!--
var frm = window.parent.frames;
for(i = 0; i < frm.length; ++i) {
if(frm(i).name == "users") {
window.userFrame = frm(i);
window.setTimeout("reloadusers();", 4000);
}
}
function reloadusers() {
window.userFrame.location.reload();
window.setTimeout("reloadusers();", 4000);
}
-->
</script>

</body>

</html>
@@ -62,11 +62,11 @@
</head>
<frameset cols="*,200" border="5" framespacing="no" frameborder="yes" marginwidth="2" marginheight="1">
<frameset rows="0,*,40" border="0" framespacing="no" frameborder="no" marginwidth="2" marginheight="1">
<frame id="f_empty" src="empty.php" name="empty" scrolling="auto" noresize marginwidth="2" marginheight="0">
<frame id="f_channel" src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=chat&amp;$params"; ?>" NAME="msg" scrolling="auto" noresize marginwidth="2" marginheight="0">
<frame id="f_input" src="chatinput.php?<?php echo $params ?>" name="input" scrolling="no" marginwidth="2" marginheight="1">
<frame src="empty.php" name="empty" scrolling="auto" noresize marginwidth="2" marginheight="0">
<frame src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=chat&amp;$params"; ?>" NAME="msg" scrolling="auto" noresize marginwidth="2" marginheight="0">
<frame src="chatinput.php?<?php echo $params ?>" name="input" scrolling="no" marginwidth="2" marginheight="1">
</frameset>
<frame id="f_users" src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=users&amp;$params"; ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
<frame src="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport?win=users&amp;$params"; ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
<!--
<frame src="../users.php?<?php echo $params ?>" name="users" scrolling="auto" marginwidth="5" marginheight="5">
-->

0 comments on commit 4b31fcf

Please sign in to comment.
You can’t perform that action at this time.