X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=e0bd91e374011d3836b4794aead6e5c0d016e64d;hb=e7efeeeeacd58593ef6da93ef9a94d0f950a9856;hp=7a6e6ad196c127ac6ecba95fabdd5cd81b38788e;hpb=8dae4c3ee7fdb23c9780191e7e51343553033a93;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 7a6e6ad..e0bd91e 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -26,15 +26,8 @@ $G_base = "../"; require_once("../Obj/brisk.phh"); -// require_once("../Obj/proxyscan.phh"); require_once("Obj/briskin5.phh"); -// Use of proxies isn't allowed. -// if (is_proxy()) { -// sleep(5); -// exit; -//} - /* * MAIN */ @@ -72,7 +65,7 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) return FALSE; } $bin5->brisk->sess_cur_set($user->sess); - if (!($user->flags & USER_FLAG_AUTH) && + if ( ( ! $user->is_auth() ) && $bin5->brisk->ban_check($user->ip)) { // TODO: waiting async 5 sec before close return (FALSE); @@ -150,13 +143,13 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) } else { require_once("../Obj/hardban.phh"); - Hardbans::add(($user->flags & USER_FLAG_AUTH ? $user->name : FALSE), + Hardbans::add(($user->is_auth() ? $user->name : FALSE), $user->ip, $user->sess, $user->laccwr + BAN_TIME); } // $user->bantime = $user->laccwr + BAN_TIME; if ($logout_cont == TRUE) { - $bin5->table_wakeup(&$user); + $bin5->table_wakeup($user); } } else if ($argz[0] == 'exitlock') {