Changeset 5319 for branches/2.3


Ignore:
Timestamp:
01/06/12 13:08:37 (12 years ago)
Author:
rafaelraymundo
Message:

Ticket #2418 - Instala o gears diretamente dos servidores do Expresso

Location:
branches/2.3/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/expressoMail1_2/index.php

    r5277 r5319  
    8383        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['notification_domains'] = $current_config['expressoMail_notification_domains']; 
    8484        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['googlegears_url'] = $current_config['expressoMail_googlegears_url']; 
     85        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['gears_firefox_windows'] = $current_config['expressoMail_gears_firefox_windows']; 
     86        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['gears_firefox_linux'] = $current_config['expressoMail_gears_firefox_linux']; 
     87        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['gears_ie'] = $current_config['expressoMail_gears_ie']; 
    8588    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_assinar_criptografar'] = $GLOBALS['phpgw_info']['server']['use_assinar_criptografar'] ?  $GLOBALS['phpgw_info']['server']['use_assinar_criptografar'] : "0"; 
    8689    $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital_cripto'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital_cripto'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature_digital_cripto'] : "0"; 
  • branches/2.3/expressoMail1_2/js/draw_api.js

    r4977 r5319  
    152152                 */ 
    153153                if (preferences.use_local_messages==1 || expresso_offline) { 
    154                         if (!window.google || !google.gears) { 
    155                                 if (!expresso_local_messages.installGears()) 
    156                                         preferences.use_local_messages=0; 
    157                         } 
    158                         else{ 
    159                                 if (!window.google || !google.gears) { 
    160                                 temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 
    161                                 if (temp) { 
    162                                        if(is_win && is_gecko && preferences.gears_firefox_windows != "") 
    163                                             location.href = preferences.gears_firefox_windows; 
    164                                        else if(!is_win && is_gecko && preferences.gears_firefox_linux != "") 
    165                                            location.href = preferences.gears_firefox_linux; 
    166                                        else if(is_ie && preferences.gears_ie != "") 
    167                                            location.href = preferences.gears_ie; 
    168                                        else 
    169                                             location.href = "http://gears.google.com/?action=install&message="+get_lang("To use local messages, install Google Gears")+"&return="+document.location.href; 
    170                                 } 
    171                                 else { 
    172                                         preferences.use_local_messages=0; 
    173                                 } 
    174                         } 
    175                         else{ 
    176154                                if (expresso_offline) 
    177155                                        tree_folders = new dFTree({ 
     
    207185                                                }); 
    208186                                                tree_folders.add(nodeLocal, node_root); 
    209                                         } 
    210187                                } 
    211                         } 
    212188                } 
    213189 
  • branches/2.3/expressoMail1_2/js/main.js

    r5277 r5319  
    2525                if(parseInt(version)==7 && (/trident\/\d/i.test(navigator.userAgent))) 
    2626                        preferences.use_local_messages="0"; 
    27                  
     27         
     28                if ( preferences.use_local_messages == '1' && (!window.google || !google.gears)) { 
     29                                temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 
     30                                if (temp) { 
     31                                       if(is_win && is_gecko && preferences.gears_firefox_windows != null) 
     32                                            location.href = preferences.gears_firefox_windows; 
     33                                       else if(!is_win && is_gecko && preferences.gears_firefox_linux != null) 
     34                                           location.href = preferences.gears_firefox_linux; 
     35                                       else if(is_ie && preferences.gears_ie != null) 
     36                                           location.href = preferences.gears_ie; 
     37                                       else 
     38                                            location.href = "http://gears.google.com/?action=install&message="+get_lang("To use local messages, install Google Gears")+"&return="+document.location.href; 
     39                                } 
     40                                else { 
     41                                        preferences.use_local_messages=0; 
     42                                } 
     43                } 
     44 
    2845                if( (window.google && google.gears) && !google.gears.factory.getPermission()) 
    2946                    preferences.use_local_messages=0; 
    3047                 
    31                 if ((preferences.use_local_messages==1) && (!window.google || !google.gears)) { 
    32                     temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 
    33                     if (temp) { 
    34                             location.href = "http://gears.google.com/?action=install&message="+ 
    35                             "Para utilizar o recurso de mensagens locais, instale o google gears&return=" + document.location.href; 
    36                     } 
    37                     else { 
    38                             preferences.use_local_messages=0; 
    39                     } 
    40                 } 
    4148                if (preferences.use_local_messages==1) { //O I.E 7 estava se atrapalhando caso esses loads fossem feitos após as chamadas ajax. Antes não apresentou problemas... 
    4249                        connector.loadScript('mail_sync'); 
Note: See TracChangeset for help on using the changeset viewer.