X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fbriskin5%2Findex_wr.php;fp=web%2Fbriskin5%2Findex_wr.php;h=7a6e6ad196c127ac6ecba95fabdd5cd81b38788e;hb=14cd1fc05b5d9148de3c427e43bf60cfdf098e9d;hp=ef9dfdaa57b3334225e802df2f8d111dce5c839b;hpb=03002883141b5e751650f5a28812456c2aa5f054;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index ef9dfda..7a6e6ad 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -40,15 +40,10 @@ require_once("Obj/briskin5.phh"); */ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) { - GLOBAL $G_base, $G_dbasetype, $G_black_list; + GLOBAL $G_base, $G_dbasetype, $G_ban_list, $G_black_list; $remote_addr = addrtoipv4($remote_addr_full); - if (array_search($remote_addr, $G_black_list) !== FALSE) { - // TODO: waiting async 5 sec before close - return (FALSE); - } - $curtime = time(); if ($bin5 == NULL) { return FALSE; @@ -77,7 +72,8 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) return FALSE; } $bin5->brisk->sess_cur_set($user->sess); - if (array_search($user->ip, $G_black_list) !== FALSE) { + if (!($user->flags & USER_FLAG_AUTH) && + $bin5->brisk->ban_check($user->ip)) { // TODO: waiting async 5 sec before close return (FALSE); } @@ -527,8 +523,6 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) log_wr("NOSENSE"); } } - log_wr("before save data"); - log_wr($user->step, 'bin::index_wr.php: after save_data()'); return TRUE; } ?>