Changeset 3257
- Timestamp:
- 09/16/10 08:26:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/inc/class.sessions.inc.php
r3170 r3257 637 637 { 638 638 /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 639 return false;639 //return false; // 640 640 641 641 $blocked = False; 642 642 $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60; 643 643 /* 644 644 $ip = $this->db->db_addslashes($ip); 645 645 $this->db->query("SELECT count(*) FROM phpgw_access_log WHERE account_id=0 AND ip='$ip' AND li > $block_time",__LINE__,__FILE__); … … 650 650 $blocked = True; 651 651 } 652 652 */ 653 653 $login = $this->db->db_addslashes($login); 654 654 $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.