Ignore:
Timestamp:
07/28/08 16:42:45 (16 years ago)
Author:
niltonneto
Message:

Ver ocorrência #270 do Trac.

File:
1 edited

Legend:

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

    r2 r370  
    186186                                $save_rep = True; 
    187187                        } 
     188                         
     189                        // jakjr: ? usando o hardcode, para evitar sempre 2 chamadas ao banco. 
     190                        /* 
    188191                        if ($save_rep) 
    189192                        { 
     
    199202                                $config->save_repository(); 
    200203                                unset($config); 
    201                         } 
     204                        }*/ 
    202205                } 
    203206 
     
    493496 
    494497                        $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'; 
    496502 
    497503                        $now = time(); 
     
    514520                        } 
    515521 
     522                        /* jakjr: Expresso does not use auto-create account. 
    516523                        if (!$this->account_id && $GLOBALS['phpgw_info']['server']['auto_create_acct'] == True) 
    517524                        { 
    518525                                $this->account_id = $GLOBALS['phpgw']->accounts->auto_add($this->account_lid, $passwd); 
    519526                        } 
     527                        */ 
    520528 
    521529                        $GLOBALS['phpgw_info']['user']['account_id'] = $this->account_id; 
     
    618626                                        . $sessionid . "'",__LINE__,__FILE__); 
    619627                        } 
     628                        /* jakjr: Clean phpgw_access_log with a crontab event. 
    620629                        if ($GLOBALS['phpgw_info']['server']['max_access_log_age']) 
    621630                        { 
     
    623632 
    624633                                $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_access_log WHERE li < $max_age"); 
    625                         } 
     634                        }*/ 
    626635                } 
    627636 
     
    635644                function login_blocked($login,$ip) 
    636645                { 
     646                        /*jakjr: Disable this protection. When block an proxy server ip, all the sub-network will be blocking.*/ 
     647                        return false; 
    637648                        $blocked = False; 
    638649                        $block_time = time() - $GLOBALS['phpgw_info']['server']['block_time'] * 60; 
Note: See TracChangeset for help on using the changeset viewer.