Ignore:
Timestamp:
02/11/09 13:42:40 (15 years ago)
Author:
eduardoalex
Message:

Ticket #413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r673 r689  
    5858        } 
    5959 
     60        //Local messages 
     61        $_SESSION['phpgw_info']['server']['expressomail']['enable_local_messages'] = $current_config['enable_local_messages']; 
     62 
    6063        // Get Data from ldap_manager and emailadmin. 
    6164        $ldap_manager = CreateObject('contactcenter.bo_ldap_manager'); 
     
    7376        $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email']; 
    7477         
    75          
     78        if($current_config['enable_local_messages']!='True')  { 
     79                $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] = 0; 
     80        } 
     81 
    7682        $_SESSION['phpgw_info']['user']['preferences']['expressoMail'] = array( 
    7783                        'voip_enabled'                                          => $voip_enabled, 
     
    99105                'notification_domains'                                  => $current_config['expressoMail_notification_domains'], 
    100106                'remove_attachments_function'                           => $current_config['expressoMail_remove_attachments_function'], 
    101                 'use_important_flag'                                    => $current_config['expressoMail_enable_important_flag'] 
     107                'use_important_flag'                                    => $current_config['expressoMail_enable_important_flag'], 
     108                'use_local_messages'                            => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] : "0",                      
     109                'keep_archived_messages'                        => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'] : "0" 
     110 
    102111 
    103112 
     
    162171 
    163172    // End Set Imap Folder names options 
     173        //User info 
     174        echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";</script>"; 
    164175 
    165176        $obj = createobject("expressoMail1_2.functions"); 
     
    174185                                                        "js/InfoContact.js," . 
    175186                                                        "js/main.js," . 
     187                                                        "js/gears_init.js," . 
     188                                                        "js/local_messages.js," . 
     189                                                        "js/messages_proxy.js," . 
    176190                                                        "js/rich_text_editor.js," . 
    177191                                                        "js/wfolders.js,", 
Note: See TracChangeset for help on using the changeset viewer.