function init($enc, &$header_out, $init_string, $base, $step)
{
- $ret = $init_string;
+ $ret = sprintf("@BEGIN@ /* %s */ @END@", $init_string);
if ($enc != 'plain')
$header_out['Content-Encoding'] = $enc;
$header_out['Cache-Control'] = 'no-cache, must-revalidate'; // HTTP/1.1
if ($step > 0)
$ret .= sprintf("last_clean = %d;\n", ($step-1));
$ret .= sprintf("
-window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming.reload(); } };
+window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming.transp.stopped = true; } };
</script>
</head>
<body>");