X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd_ifra.php;h=2f2d39356cb8fbbf52eb5ec00eb7b211c17fd605;hb=525cfe7d868bfaefdde9f769f52a50bcb6f1e9e9;hp=7d4f4932af07a673daa14b0329b36fde815f4d65;hpb=c3ccbbd5bc7c8534127fa10b4f88b81cffc6029a;p=brisk.git diff --git a/web/index_rd_ifra.php b/web/index_rd_ifra.php index 7d4f493..2f2d393 100644 --- a/web/index_rd_ifra.php +++ b/web/index_rd_ifra.php @@ -505,6 +505,8 @@ function index_rd_ifra_init(&$room, &$user, &$header_out, &$body, $get, $post, $ { GLOBAL $G_four_rnd_string; + $curtime = time(); + $is_page_streaming = FALSE; // (webservers_exceeded() || stristr($HTTP_USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; rv:5.0)") || stristr($HTTP_USER_AGENT, "MSIE") || stristr($HTTP_USER_AGENT, "CHROME") ? TRUE : FALSE); $header_out['Cache-Control'] = 'no-cache, must-revalidate'; // HTTP/1.1 @@ -522,7 +524,7 @@ function index_rd_ifra_init(&$room, &$user, &$header_out, &$body, $get, $post, $ if (($step = gpcs_var('step', $get, $post, $cookie)) === FALSE) unset($step); - $user->rd_data_set(time() + STREAM_TIMEOUT, $stat, $subst, $step, $from); + $user->rd_data_set($curtime, $stat, $subst, $step, $from); $body .= sprintf(" @@ -614,4 +616,13 @@ push(\"%s\"); return TRUE; } + +function index_rd_ifra_keepalive(&$user) +{ + return (sprintf("", $user->rd_scristp++)); + +} ?>