projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
user is_auth() is_cert() methods added
[brisk.git]
/
web
/
briskin5
/
index_wr.php
diff --git
a/web/briskin5/index_wr.php
b/web/briskin5/index_wr.php
index
491ee9d
..
534fd28
100644
(file)
--- 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)
{
*/
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_b
an_list, $G_b
lack_list;
$remote_addr = addrtoipv4($remote_addr_full);
$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;
$curtime = time();
if ($bin5 == NULL) {
return FALSE;
@@
-76,8
+71,9
@@
function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie)
log_wr("Get User Error");
return FALSE;
}
log_wr("Get User Error");
return FALSE;
}
-
- if (array_search($user->ip, $G_black_list) !== FALSE) {
+ $bin5->brisk->sess_cur_set($user->sess);
+ if ( ( ! $user->is_auth() ) &&
+ $bin5->brisk->ban_check($user->ip)) {
// TODO: waiting async 5 sec before close
return (FALSE);
}
// TODO: waiting async 5 sec before close
return (FALSE);
}
@@
-154,7
+150,7
@@
function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie)
}
else {
require_once("../Obj/hardban.phh");
}
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;
$user->ip, $user->sess, $user->laccwr + BAN_TIME);
}
// $user->bantime = $user->laccwr + BAN_TIME;
@@
-527,8
+523,6
@@
function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie)
log_wr("NOSENSE");
}
}
log_wr("NOSENSE");
}
}
- log_wr("before save data");
- log_wr($user->step, 'bin::index_wr.php: after save_data()');
return TRUE;
}
?>
return TRUE;
}
?>