Changeset 3257


Ignore:
Timestamp:
09/16/10 08:26:26 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1264 - Reativar rot. de bloquear login de um usuário.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/inc/class.sessions.inc.php

    r3170 r3257  
    637637                { 
    638638                        /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 
    639                         return false; 
     639                        //return false; // 
    640640 
    641641                        $blocked = False; 
    642642                        $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60; 
    643                          
     643                        /* 
    644644                        $ip = $this->db->db_addslashes($ip); 
    645645                        $this->db->query("SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND ip='$ip' AND li > $block_time",__LINE__,__FILE__); 
     
    650650                                $blocked = True; 
    651651                        } 
    652                          
     652                        */ 
    653653                        $login = $this->db->db_addslashes($login); 
    654654                        $this->db->query("SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND (loginid='$login' OR loginid LIKE '$login@%') AND li > $block_time",__LINE__,__FILE__); 
Note: See TracChangeset for help on using the changeset viewer.