user ip address management and check fixed
[brisk.git] / web / briskin5 / index_wr.php
index 4c816fd..9f9764f 100644 (file)
@@ -38,10 +38,12 @@ 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;
 
+    $remote_addr = addrtoipv4($remote_addr_full);
+
     $curtime = time();
     if ($bri == NULL) {
         return FALSE;