projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add cloud smasher countermeasure
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
c2c4be1
..
437f454
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-377,6
+377,13
@@
function index_main(&$brisk, $transp_type, $header, &$header_out, $remote_addr_f
break;
}
}
break;
}
}
+ if ($brisk->cloud_check($remote_addr)) {
+ // TODO: find a way to add a nonblocking sleep(5) here
+ $banned = TRUE;
+ $last_msg = $mlang_room['reas_cloud'][$G_lang];
+ }
+
+
if (validate_sess($sess)) {
log_main("pre garbage_manager UNO");
$brisk->garbage_manager(TRUE);
if (validate_sess($sess)) {
log_main("pre garbage_manager UNO");
$brisk->garbage_manager(TRUE);