X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex.php;h=1e0ba3bb5fef01875001d11c05f5078880533ea4;hb=0e17eb7ed18d621be70d7890f531a2dc1cab2a42;hp=7ee4a331e006f2deec2aa2b5ec1bb5231a617925;hpb=82602601a4300006e470e92cb44f18844a656a44;p=brisk.git diff --git a/web/briskin5/index.php b/web/briskin5/index.php index 7ee4a33..1e0ba3b 100644 --- a/web/briskin5/index.php +++ b/web/briskin5/index.php @@ -2,7 +2,7 @@ /* * brisk - briskin5/index.php * - * Copyright (C) 2006-2011 Matteo Nastasi + * Copyright (C) 2006-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -41,20 +41,30 @@ $mlang_bin5_index = array( 'aucwin' => array( 'it' => 'Hai vinto l\'asta.
Sc ); -// Use of proxies isn't allowed. -if (is_proxy()) { - exit; -} +function bin5_index_main(&$header_out, $addr, $get, $post, $cookie) +{ + GLOBAL $G_lang, $mlang_bin5_index; + if (($table_idx = gpcs_var('table_idx', $get, $post, $cookie)) === FALSE) + unset ($table_idx); + if (($laststate = gpcs_var('laststate', $get, $post, $cookie)) === FALSE) + unset ($laststate); + if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE) + unset ($sess); -header('Content-type: text/html; charset="utf-8"',true); -?> + // Use of proxies isn't allowed. + // if (is_proxy()) { + // return (FALSE); + // } + +// header('Content-type: text/html; charset="utf-8"',true); + ?> Brisk - Tavolo <?php echo "$table_idx";?> - + @@ -71,7 +81,6 @@ header('Content-type: text/html; charset="utf-8"',true); var stat = "table"; var subst = "none"; var table_pos = ""; - var myfrom = "table_php"; var g_withflash = false; var asta_ptr; @@ -79,13 +88,13 @@ header('Content-type: text/html; charset="utf-8"',true); var gst = new globst(); gst.st = ; + if (isset($laststate) == false) { + $laststate = -1; + } + echo $laststate; + ?>; var g_is_spawn=1; // var g_table_idx=; @@ -101,14 +110,16 @@ window.onload = function() { preferences_update(); sess = ""; - hstm = new http_streaming("sess", $('sandbox')); + hstm = new http_streaming(window, null /* console */, gst, 'table_php', 'sess', sess, $('sandbox'), 'index_rd_ifra.php', function(com){eval(com);}); hstm.hbit_set(heartbit); window.onbeforeunload = onbeforeunload_cb; window.onunload = onunload_cb; - hstm.start(sess); - setTimeout(preload_images, 0, g_preload_img_arr, g_imgct); + hstm.start(); + // FIXME: add this setTimeout(preload_images into data stream to avoid + // race on opened socket + // setTimeout(preload_images, 0, g_preload_img_arr, g_imgct); }
@@ -298,3 +309,6 @@ window.onload = function() { +