X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex.php;h=9fb6b3d5b01313078f67a3b3c2eeed227d585911;hb=818b1bd911888487f2c217ac84f414d3ec527de5;hp=c8a15997c5645405d2276ab72280caf00adb9216;hpb=a3dd865033d13bc0c1d16128e4f30f647d741ff9;p=brisk.git diff --git a/web/index.php b/web/index.php index c8a1599..9fb6b3d 100644 --- a/web/index.php +++ b/web/index.php @@ -243,7 +243,7 @@ function index_main(&$room, &$header_out, $addr, $get, $post, $cookie) // Use of proxies isn't allowed. - if (!$G_is_local && is_proxy()) { + if (!$G_is_local && is_proxy($addr)) { return FALSE; } @@ -294,7 +294,7 @@ function index_main(&$room, &$header_out, $addr, $get, $post, $cookie) $is_login = TRUE; } - log_legal($curtime, $user, "STAT:LOGIN", ''); + log_legal($curtime, $addr, $user, "STAT:LOGIN", ''); // recovery lost game if ($user->stat == "table") { @@ -1058,7 +1058,7 @@ else { ?> sess = ""; - hstm = new http_streaming(window, console, gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd_ifra.php', function(com){eval(com);}); +hstm = new http_streaming(window, null /* console*/ , gst, 'index_php', 'sess', sess, $('sandbox'), 'index_rd_ifra.php', function(com){eval(com);}); hstm.hbit_set(heartbit); tra = new train($('room_tit')); window.onunload = onunload_cb;