Changeset 1354 for trunk/phpgwapi/inc/class.sessions.inc.php
- Timestamp:
- 08/20/09 15:23:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.sessions.inc.php
r1292 r1354 680 680 { 681 681 /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 682 return false;682 //return false; 683 683 684 684 $blocked = False; 685 685 $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60; 686 686 /* 687 687 $ip = $this->db->db_addslashes($ip); 688 688 $this->db->query("SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND ip='$ip' AND li > $block_time",__LINE__,__FILE__); … … 693 693 $blocked = True; 694 694 } 695 */ 695 696 $login = $this->db->db_addslashes($login); 696 697 $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.