X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Fbrisk.phh;h=df0c63166f6b0f07881fae598e61fbbb6b544074;hb=f55c2d16a38119d63ee03304ea38e7e647ad1f5a;hp=08523ca5e583ca465bb999a92752143922e5504f;hpb=df0c35f07b624ca2f9467443dd07f453d74662f0;p=brisk.git
diff --git a/web/brisk.phh b/web/brisk.phh
index 08523ca..df0c631 100644
--- a/web/brisk.phh
+++ b/web/brisk.phh
@@ -20,7 +20,7 @@
*/
define( FTOK_PATH, "/var/lib/brisk");
-define(TABLES_N, 4);
+define(TABLES_N, 8);
define(PLAYERS_N, 3);
define(MAX_POINTS, 5);
define(MAX_PLAYERS, (PLAYERS_N * TABLES_N));
@@ -29,7 +29,7 @@ define(COMM_GEN_N, 50);
define(SESS_LEN, 13);
define(STREAM_TIMEOUT, 20);
define(EXPIRE_TIME, 180);
-define(GARBAGE_TIMEOUT, 30);
+define(GARBAGE_TIMEOUT, 10);
define(NICKSERV, "SERVER");
define(BRISK_DEBUG, FALSE);
// define(DEBUGGING, "local");
@@ -362,7 +362,7 @@ class brisco {
$ret = "gst.st = ".($user_cur->step+1)."; ";
if ($from_table && ($user_cur->table == $table_idx || $user_cur == $user)) {
- $ret .= 'gst.st_loc++; the_end=true; document.location.assign("index.php");|';
+ $ret .= 'gst.st_loc++; the_end=true; window.onunload = null; document.location.assign("index.php");|';
// $ret .= 'gst.st_loc++; document.location.assign("index.php");|';
log_main("DOCUMENT.index.php", "from table");
}
@@ -822,8 +822,10 @@ function table_content($bri, $user, $table_idx)
$content .= sprintf("%s%s%s
",$hilion, xcape($user_cur->name), $hilioff);
}
+ /*
for ( ; $i < PLAYERS_N ; $i++)
$content .= "
";
+ */
$ret .= sprintf('$("table%d").innerHTML = "%s";', $table_idx, $content);
@@ -838,7 +840,7 @@ function standup_content(&$bri, $user)
if ($user->stat != 'room')
return;
- $content .= '