X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=30f33bbf84683f505e6f20b7903ed915585888ef;hb=43cab39ea58529cd2442c28f4157bb7efc97856f;hp=4fb54b14a73a4a7571e82f06c6e42930b0874642;hpb=64fd2be16978dab5d777388423a9d1d74d620cf8;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 4fb54b1..30f33bb 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -718,7 +718,37 @@ class Bin5_user extends User { return ($ret); } - static function blocking_error($is_unrecoverable) +public static function stream_fini($is_unrecoverable) +{ + GLOBAL $G_four_rnd_string; + + printf("xXx user::stream_fini\n"); + + // IF IFRAME THEN: + $body = ""; + $body .= sprintf(" + + + + + +"); + $body .= sprintf("\n", $G_four_rnd_string); + $body .= sprintf("", 0, escpush(self::blocking_error($is_unrecoverable)) ); + // ELSE IF XHR THEN: + // return (self::blocking_error($is_unrecoverable)); + return ($body); +} + + + protected function blocking_error($is_unrecoverable) { GLOBAL $is_page_streaming; @@ -903,6 +933,29 @@ class Bin5 { var $the_end; var $tok; + static function page_manager($room, $header_out, $path, $method, $addr, $get, $post, $cookie) + { + switch ($path) { + case "": + case "index.php": + ob_start(); + bin5_index_main($room, $header_out, $addr, $get, $post, $cookie); + $content = ob_get_contents(); + ob_end_clean(); + + force_no_cache($header_out); + + $pgflush = new PageFlush($new_socket, $curtime, 20, $header_out, $content); + + if ($pgflush->try_flush($curtime) == FALSE) { + // Add $pgflush to the pgflush array + array_push($pages_flush, $pgflush); + } + break; + } + return TRUE; + } + function Bin5 ($room, $table_idx, $table_token) { $this->user = array(); $this->table = array(); @@ -1406,6 +1459,8 @@ class Bin5 { if (($table_token = gpcs_var('table_token', $get, $post, $cookie)) === FALSE) unset($table_token); + force_no_cache($header_out); + switch ($path) { case "": case "index.php":