Changeset 3152


Ignore:
Timestamp:
08/06/10 17:29:30 (10 years ago)
Author:
amuller
Message:

Ticket #622 - Remove alguns elementos não usados da sessão ao inciar o EM

Location:
branches/2.2/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/load_lang.php

    r1572 r3152  
    55        } 
    66         
    7         if(!$_SESSION['phpgw_info']['expressomail']['lang'])  
    8         { 
    9                 $array_keys = array(); 
    10                 $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang';                   
    11                 if (file_exists($fn)){ 
    12                         $fp = fopen($fn,'r'); 
    13                         while ($data = fgets($fp,16000)){ 
    14                                 list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); 
    15                                 $_SESSION['phpgw_info']['expressomail']['lang'][$message_id] =  $content; 
    16                         } 
    17                         fclose($fp); 
     7        $array_keys = array(); 
     8        $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang';                   
     9        if (file_exists($fn)){ 
     10                $fp = fopen($fn,'r'); 
     11                while ($data = fgets($fp,16000)){ 
     12                        list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); 
     13                        $expressomaillang[$message_id] =  $content; 
    1814                } 
     15                fclose($fp); 
    1916        } 
    2017         
    21         foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) 
     18        foreach($expressomaillang as $key => $value) 
    2219                $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 
    2320        echo "<script type='text/javascript'>$script</script>"; 
  • branches/2.2/expressoMail1_2/index.php

    r3068 r3152  
    187187        $GLOBALS['phpgw']->preferences->read_repository(); 
    188188        //print_r($_SESSION['phpgw_info']['user']['preferences']['expressoMail']); 
     189        unset($_SESSION['phpgw_info']['expressomail']['user']['preferences']); 
     190        unset($_SESSION['phpgw_info']['expressomail']['user']['acl']); 
     191        unset($_SESSION['phpgw_info']['expressomail']['user']['apps']); 
     192        unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_users']); 
     193        unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_groups']); 
    189194?> 
    190195 
Note: See TracChangeset for help on using the changeset viewer.