User:
Title: patch
Content:
--- fremes.php.org 2018-09-11 19:28:29.850113549 +0200
+++ fremes.php 2018-09-11 21:38:48.144864099 +0200
@@ -74,12 +74,12 @@
return $matches;
}
-function fremeMsg($msg)
+function fremeMsg($msg, $last=false)
{
- GWF_Javascript::newSection();
+ GWF_Javascript::newSection('text/plain; charset=UTF-8');
echo $msg.PHP_EOL;
GWF_Javascript::flush();
- GWF_Javascript::endSection();
+ GWF_Javascript::endSection($last);
}
function fremes()
@@ -114,7 +114,7 @@
fremeMsg($line);
}
- fremeMsg("Connection closed.");
+ fremeMsg("Connection closed.", true);
}
?>
Edit |
Back