fixed: base_url_redirect config option was not read from the config file

and was not used when checking for base url redirect
fixed: return values from plugins should be given in a special structure
       they were remembered in plugin object (ret_false, ret_true)
       and consequently were not thread safe
       now all plugin.Call() methods return PluginRes structure 
       in which there are ret_false and ret_true variables       
changed: small refactoring in AddUser winix function



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@827 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-04-22 13:30:07 +00:00
parent 920290e9dc
commit bcea4f9464
12 changed files with 165 additions and 119 deletions

View File

@@ -216,9 +216,9 @@ bool Users::LoginUser(long user_id, bool remember_me, bool use_ses_log)
if( !puser )
return false;
plugin.Call(WINIX_PREPARE_USER_TO_LOGIN, puser);
PluginRes res = plugin.Call(WINIX_PREPARE_USER_TO_LOGIN, puser);
if( plugin.False() > 0 )
if( res.res_false > 0 )
{
log << log3 << "Users: login prevented by a plugin" << logend;
return false;