Changeset 3810


Ignore:
Timestamp:
02/23/11 17:05:13 (11 years ago)
Author:
eduardoalex
Message:

Ticket #1584 - Antecipamos a criação do imap_funcions para preenchimento das sessões.

File:
1 edited

Legend:

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

    r3581 r3810  
    117117create_check_box('Do you want to use SpellChecker in email editor?','use_SpellChecker','It allow you to check the spelling of your emails'); 
    118118//Use user folders from email 
     119 
     120require_once('class.imap_functions.inc.php'); 
     121$boemailadmin = CreateObject('emailadmin.bo'); 
     122$emailadmin_profile = $boemailadmin->getProfileList(); 
     123$_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
     124$_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
     125$e_server = $_SESSION['phpgw_info']['expressomail']['email_server']; 
     126$imap = CreateObject('expressoMail1_2.imap_functions'); 
     127 
    119128if ($type != "" && $type != "user"){ 
    120129        $trash = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder']; 
     
    132141else 
    133142{ 
    134 require_once('class.imap_functions.inc.php'); 
    135 $boemailadmin = CreateObject('emailadmin.bo'); 
    136 $emailadmin_profile = $boemailadmin->getProfileList(); 
    137 $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); 
    138 $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
    139 $e_server = $_SESSION['phpgw_info']['expressomail']['email_server']; 
    140 $imap = CreateObject('expressoMail1_2.imap_functions'); 
    141143$save_in_folder_selected = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']; 
    142144 
Note: See TracChangeset for help on using the changeset viewer.