<script type=\"text/javascript\" src=\"xynt-http-streaming-ifra.js\"></script>
<script type=\"text/javascript\">
var http_streaming = \"ready\";");
- if (isset($st)) {
- $body .= sprintf("last_clean = %d;\n", $st);
- }
+ if ($user->rd_scristp > 0)
+ $body .= sprintf("last_clean = %d;\n", ($user->rd_scristp-1));
$body .= sprintf("
window.onload = function () { if (http_streaming != \"ready\") { http_streaming.reload(); } };
</script>
function index_rd_ifra_main(&$room, &$user, &$body)
{
GLOBAL $is_page_streaming;
+ // FIXME: only to test fwrite
+ // GLOBAL $G_four_rnd_string;
$is_page_streaming = FALSE;
log_rd2("FROM OUTSIDE - STAT: ".$user->rd_stat." SUBST: ".$user->rd_subst." STEP: ".$user->rd_step." FROM: ".$user->rd_from. "IS_PAGE:" . $is_page_streaming);
echo "$ret";
echo ' @END@';
}
+
+ // FIXME only to test fwrite
+ // for ($u = 0 ; $u < 10 ; $u++) {
+ // $body .= sprintf("<!-- \n%s -->\n", $G_four_rnd_string);
+ // }
$body .= sprintf("<script id='hs%d' type='text/javascript'><!--
push(\"%s\");
// -->