added: IP ban mechanism (not finished yet -- we need a winix function to remove a ban)

now after some incorrent login attempts your IP can be banned or blocked
       (see new config variables)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@902 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-10-27 07:44:26 +00:00
parent 53b4175d00
commit 099dd55d0c
54 changed files with 2691 additions and 1266 deletions

View File

@@ -279,6 +279,20 @@ void Templates::CreateFunctions()
ezc_functions.Insert("insert_page", insert_page);
/*
ipban
*/
ezc_functions.Insert("ipban_tab", ipban_tab);
ezc_functions.Insert("ipban_tab_id", ipban_tab_id);
ezc_functions.Insert("ipban_tab_ip", ipban_tab_ip);
ezc_functions.Insert("ipban_tab_incorrect_login", ipban_tab_incorrect_login);
ezc_functions.Insert("ipban_tab_ban_level", ipban_tab_ban_level);
ezc_functions.Insert("ipban_tab_has_active_flag", ipban_tab_has_active_flag);
ezc_functions.Insert("ipban_tab_expires", ipban_tab_expires);
ezc_functions.Insert("ipban_tab_last_used", ipban_tab_last_used);
ezc_functions.Insert("ipban_tab_is_logging_allowed", ipban_tab_is_logging_allowed);
/*
item
*/
@@ -375,17 +389,20 @@ void Templates::CreateFunctions()
/*
last
*/
ezc_functions.Insert("last_tab", last_tab);
ezc_functions.Insert("last_tab_name", last_tab_name);
ezc_functions.Insert("last_tab_ip", last_tab_ip);
ezc_functions.Insert("last_tab_start", last_tab_start);
ezc_functions.Insert("last_tab_end", last_tab_end);
ezc_functions.Insert("last_tab", last_tab);
ezc_functions.Insert("last_tab_name", last_tab_name);
ezc_functions.Insert("last_tab_ip", last_tab_ip);
ezc_functions.Insert("last_tab_start", last_tab_start);
ezc_functions.Insert("last_tab_end", last_tab_end);
/*
login
*/
ezc_functions.Insert("login_path", login_path);
ezc_functions.Insert("login_path", login_path);
ezc_functions.Insert("login_cannot_login", login_cannot_login);
ezc_functions.Insert("login_when_available_login", login_when_available_login);
ezc_functions.Insert("login_should_use_captcha", login_should_use_captcha);
/*