Changeset 370 for trunk/phpgwapi/inc/class.sessions.inc.php
- Timestamp:
- 07/28/08 16:42:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.sessions.inc.php
r2 r370 186 186 $save_rep = True; 187 187 } 188 189 // jakjr: ? usando o hardcode, para evitar sempre 2 chamadas ao banco. 190 /* 188 191 if ($save_rep) 189 192 { … … 199 202 $config->save_repository(); 200 203 unset($config); 201 } 204 }*/ 202 205 } 203 206 … … 493 496 494 497 $this->clean_sessions(); 495 sessions_::split_login_domain($login,$this->account_lid,$this->account_domain); 498 //sessions_::split_login_domain($login,$this->account_lid,$this->account_domain); 499 // jakjr: allow uid with (@); 500 $this->account_lid = $login; 501 $this->account_domain = 'default'; 496 502 497 503 $now = time(); … … 514 520 } 515 521 522 /* jakjr: Expresso does not use auto-create account. 516 523 if (!$this->account_id && $GLOBALS['phpgw_info']['server']['auto_create_acct'] == True) 517 524 { 518 525 $this->account_id = $GLOBALS['phpgw']->accounts->auto_add($this->account_lid, $passwd); 519 526 } 527 */ 520 528 521 529 $GLOBALS['phpgw_info']['user']['account_id'] = $this->account_id; … … 618 626 . $sessionid . "'",__LINE__,__FILE__); 619 627 } 628 /* jakjr: Clean phpgw_access_log with a crontab event. 620 629 if ($GLOBALS['phpgw_info']['server']['max_access_log_age']) 621 630 { … … 623 632 624 633 $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_access_log WHERE li < $max_age"); 625 } 634 }*/ 626 635 } 627 636 … … 635 644 function login_blocked($login,$ip) 636 645 { 646 /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 647 return false; 637 648 $blocked = False; 638 649 $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60;
Note: See TracChangeset
for help on using the changeset viewer.