X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd_ifra.php;h=432939794b514b6dc20c12ec0bceef05ab40f71b;hb=192dfc6558fbebf34ebda89218ca1418c1858f00;hp=2f2d39356cb8fbbf52eb5ec00eb7b211c17fd605;hpb=525cfe7d868bfaefdde9f769f52a50bcb6f1e9e9;p=brisk.git diff --git a/web/index_rd_ifra.php b/web/index_rd_ifra.php index 2f2d393..4329397 100644 --- a/web/index_rd_ifra.php +++ b/web/index_rd_ifra.php @@ -130,6 +130,7 @@ function blocking_error($is_unrecoverable) return (sprintf(($is_unrecoverable ? 'hstm.stop(); ' : '').'window.onbeforeunload = null; window.onunload = null; document.location.assign("index.php");')); } +// FIXME TO SUPPORT iframe function page_sync($sess, $page, $table_idx, $table_token) { GLOBAL $is_page_streaming; @@ -491,6 +492,33 @@ function maincheck(&$room, &$user, $cur_stat, $cur_subst, $cur_step, &$new_stat, return ($ret); } +function index_rd_ifra_fini($is_unrecoverable) +{ + GLOBAL $G_four_rnd_string; + + // IF IFRAME THEN: + $body = ""; + $body .= sprintf(" + + + + + +"); + $body .= sprintf("\n", $G_four_rnd_string); + $body .= sprintf("", 0, escpush(blocking_error($is_unrecoverable)) ); + // ELSE IF XHR THEN: + // return (blocking_error($is_unrecoverable)); + return ($body); +} + /* * MAIN */ @@ -532,9 +560,8 @@ function index_rd_ifra_init(&$room, &$user, &$header_out, &$body, $get, $post, $ @@ -548,6 +575,8 @@ window.onload = function () { if (http_streaming != \"ready\") { http_streaming. 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); @@ -570,6 +599,11 @@ function index_rd_ifra_main(&$room, &$user, &$body) echo "$ret"; echo ' @END@'; } + + // FIXME only to test fwrite + // for ($u = 0 ; $u < 10 ; $u++) { + // $body .= sprintf("\n", $G_four_rnd_string); + // } $body .= sprintf("