X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_rd.php;h=2a3522079859f3bc5ecfa3119de93a6f283eb9a5;hb=f6a01481a38713553a82314f845bf39fddaa998d;hp=5078362b1771d18174a527d7589e4f871112db0b;hpb=a9c98a1177f7491f59765ce7a24583083a04c148;p=brisk.git diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 5078362..2a35220 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -2,7 +2,7 @@ /* * brisk - index_rd.php * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -20,10 +20,10 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ +$G_base = "../"; + require_once("../Obj/brisk.phh"); // require_once("../Obj/proxyscan.phh"); require_once("Obj/briskin5.phh"); @@ -252,6 +252,8 @@ 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, 'bin::index_rd.php: after ret set'); if ($user->the_end == TRUE) { log_rd2("LOGOUT BYE BYE!!"); @@ -293,9 +295,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 @@ -317,6 +317,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, $table_idx, $table_token)) != 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)); @@ -324,6 +325,7 @@ for ($i = 0 ; time() < $endtime ; $i++) { echo ' @END@'; log_send("EXT_STEP: ".$ext_step." ENDTIME: [".$endtime."] ".$ret); flush(); + log_mop(0, 'bin::index_rd.php: after flush (begin: '.sprintf("%f", $pre_main).')'); if ($is_page_streaming) break; } @@ -332,7 +334,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();