X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd_ifra.php;h=7546c2c595b39978c8af2e7138cfd495392afc7e;hb=a83f493a328cfcb04ab53c5e5f08a530a9b5f290;hp=2f2d39356cb8fbbf52eb5ec00eb7b211c17fd605;hpb=8428f5186e50b2b390c95ace8870de516b79061e;p=brisk.git diff --git a/web/index_rd_ifra.php b/web/index_rd_ifra.php index 2f2d393..7546c2c 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 */