Changeset 1354


Ignore:
Timestamp:
08/20/09 15:23:27 (11 years ago)
Author:
rafaelraymundo
Message:

Ticket #618 - Reativada a rotina de bloqueio de usuarios.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.sessions.inc.php

    r1292 r1354  
    680680                { 
    681681                        /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 
    682                         return false; 
     682                        //return false; 
    683683 
    684684                        $blocked = False; 
    685685                        $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60; 
    686                          
     686                        /* 
    687687                        $ip = $this->db->db_addslashes($ip); 
    688688                        $this->db->query("SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND ip='$ip' AND li > $block_time",__LINE__,__FILE__); 
     
    693693                                $blocked = True; 
    694694                        } 
     695                        */ 
    695696                        $login = $this->db->db_addslashes($login); 
    696697                        $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.