X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=98fd79bb64afd649daa020d3acde4aff94cae9cb;hb=9a17da4020740578e3a744630fd6be96c8237cab;hp=4c816fd81e18adad15bb0ee43891b3fafd298ec9;hpb=3834934333bc49c745beaf1e373986d308b66255;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 4c816fd..98fd79b 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -38,9 +38,16 @@ require_once("Obj/briskin5.phh"); /* * MAIN */ -function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) +function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) { - GLOBAL $G_base, $G_dbasetype; + GLOBAL $G_base, $G_dbasetype, $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 ($bri == NULL) { @@ -69,6 +76,12 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) log_wr("Get User Error"); return FALSE; } + + if (array_search($user->ip, $G_black_list) !== FALSE) { + // TODO: waiting async 5 sec before close + return (FALSE); + } + $argz = explode('|', $mesg); log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']');