X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd.php;h=cbaf2fac1ac60d2c56a90e0453957226b17db6ac;hb=bdb3cb2379f32bfb9279da661b1d4dbaf9712299;hp=689fce087441e12f25d584c885fdf1e1442a3a3e;hpb=f75953e13e14ee5374fd635beb1cb401f86fd46d;p=brisk.git diff --git a/web/index_rd.php b/web/index_rd.php index 689fce0..cbaf2fa 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -278,7 +278,9 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su $new_subst = $user->subst; $new_step = $user->step; } while (0); - + + log_mop($user->step, 'index_rd.php: after ret set'); + if ($user->the_end == TRUE) { log_rd2("LOGOUT BYE BYE!!"); log_auth($user->sess, "Explicit logout."); @@ -317,9 +319,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su step */ -$is_page_streaming = ((stristr($HTTP_USER_AGENT, "linux") && - (stristr($HTTP_USER_AGENT, "firefox") || stristr($HTTP_USER_AGENT, "iceweasel"))) ? FALSE : TRUE); - +$is_page_streaming = (stristr($HTTP_USER_AGENT, "MSIE") || stristr($HTTP_USER_AGENT, "CHROME") ? TRUE : FALSE); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past @@ -341,6 +341,7 @@ $old_step = $ext_step = $step; for ($i = 0 ; time() < $endtime ; $i++) { // log_rd("PRE MAIN ".$step);; + $pre_main = gettimeofday(TRUE); if (($ret = maincheck($sess, $old_stat, $old_subst, $old_step, &$stat, &$subst, &$step)) != FALSE) { echo '@BEGIN@'; // log_rd2(sprintf("\nSESS: [%s]\nOLD_STAT: [%s] OLD_SUBST: [%s] OLD_STEP: [%s] \nSTAT: [%s] SUBST: [%s] STEP: [%s] \nCOMM: [%s]\n", $sess, $old_stat, $old_subst, $old_step, $stat, $subst, $step, $ret)); @@ -348,6 +349,7 @@ for ($i = 0 ; time() < $endtime ; $i++) { echo ' @END@'; log_send("IS_PAGE: ".($is_page_streaming == TRUE ? "TRUE" : "FALSE")."EXT_STEP: ".$ext_step." ENDTIME: [".$endtime."] ".$ret); flush(); + log_mop(0, 'index_rd.php: after flush (begin: '.sprintf("%f", $pre_main).')'); if ($is_page_streaming) break; } @@ -356,7 +358,7 @@ for ($i = 0 ; time() < $endtime ; $i++) { $old_step = $step; // log_rd("POST MAIN ".$step);; usleep(400000); - if (($i % 5) == 0) { + if (($i % 10) == 0) { // log_rd2("TIME: ".time()); echo '_'; flush();