Ignore:
Timestamp:
02/06/09 15:34:17 (15 years ago)
Author:
eduardoalex
Message:

Ticket #413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r653 r670  
    5858        } 
    5959 
     60 
     61        //Local messages 
     62        $_SESSION['phpgw_info']['server']['expressomail']['enable_local_messages'] = $current_config['enable_local_messages']; 
     63 
    6064        // Get Data from ldap_manager and emailadmin. 
    6165        $ldap_manager = CreateObject('contactcenter.bo_ldap_manager'); 
     
    7377        $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email']; 
    7478         
    75          
     79        if($current_config['enable_local_messages']!='True')  { 
     80                $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] = 0; 
     81        } 
     82 
    7683        $_SESSION['phpgw_info']['user']['preferences']['expressoMail'] = array( 
    7784                        'voip_enabled'                                          => $voip_enabled, 
     
    97104                        'number_of_contacts'                            => $current_config['expressoMail_Number_of_dynamic_contacts'] ? $current_config['expressoMail_Number_of_dynamic_contacts'] : "0", 
    98105                        'use_cache'                                             => $current_config['expressoMail_enable_cache'], 
    99                         'notification_domains'                  => $current_config['expressoMail_notification_domains'] 
    100  
    101  
     106                        'notification_domains'                  => $current_config['expressoMail_notification_domains'], 
     107                'use_local_messages'                            => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'] : "0",                      
     108                'keep_archived_messages'                        => $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'] : "0" 
    102109                 
    103110        ); 
     
    160167 
    161168    // End Set Imap Folder names options 
     169        //User info 
     170        echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";</script>"; 
    162171 
    163172        $obj = createobject("expressoMail1_2.functions"); 
     
    172181                                                        "js/InfoContact.js," . 
    173182                                                        "js/main.js," . 
     183                                                        "js/gears_init.js," . 
     184                                                        "js/local_messages.js," . 
     185                                                        "js/messages_proxy.js," . 
    174186                                                        "js/rich_text_editor.js," . 
    175187                                                        "js/wfolders.js,", 
Note: See TracChangeset for help on using the changeset viewer.