Changeset 1964


Ignore:
Timestamp:
02/02/10 15:15:34 (14 years ago)
Author:
eduardoalex
Message:

Ticket #894 - Resolvendo o problema descrito no ticket em questao

Location:
trunk/expressoMail1_2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r1938 r1964  
    384384                if ( data && data.imap_error ) 
    385385                { 
     386                        if(preferences.use_local_messages==1 && expresso_local_messages.is_offline_installed){ 
     387                                conf = confirm(get_lang("The expresso imap server is currently down, expresso noticed you have offline mail module installed, would you like to use it?")); 
     388                                if(conf) { 
     389                                        window.onresize = function() { 
     390                                                var target = document.getElementById('divAppbox'); 
     391                                                target.style.height= document.body.clientHeight - 83; 
     392                                        } 
     393                                        var target = document.getElementById('divAppbox'); 
     394                                        document.getElementById("divAppboxHeader").innerHTML=""; 
     395                                        target.style.height= document.body.clientHeight - 83; 
     396                                        expresso_local_messages.set_as_logged(account_id,0,true); 
     397                                        target.innerHTML = "<iframe src='offline.php?inside=1' width='100%' height='100%' frameBorder='0'></iframe>"; 
     398                                        return false; 
     399                                } 
     400                        } 
    386401                        connector.newRequest('error.html', 'templates/'+template+'/error.html', 'GET', 
    387402                                function(data) 
  • trunk/expressoMail1_2/js/local_messages.js

    r1939 r1964  
    13051305        } 
    13061306         
    1307         local_messages.prototype.set_as_logged = function(uid_usuario,pass) { 
    1308                 this.init_local_messages(); 
    1309                 var rs = this.dbGears.execute("select pass from user where uid_usuario=?",[uid_usuario]); 
    1310                 if(!rs.isValidRow() || (pass!=rs.field(0) && pass!=MD5(rs.field(0))) ) { 
    1311                         this.finalize(); 
    1312                         return false; 
     1307        local_messages.prototype.set_as_logged = function(uid_usuario,pass,bypass) { 
     1308                this.init_local_messages(); 
     1309                if (!bypass) { 
     1310                        var rs = this.dbGears.execute("select pass from user where uid_usuario=?", [uid_usuario]); 
     1311                        if (!rs.isValidRow() || (pass != rs.field(0) && pass != MD5(rs.field(0)))) { 
     1312                                this.finalize(); 
     1313                                return false; 
     1314                        } 
    13131315                } 
    13141316                d = new Date(); 
  • trunk/expressoMail1_2/js/offline_access.js

    r1121 r1964  
    3434         
    3535        offline_access.prototype.do_login = function(uid_usuario,pass) { 
    36                 control = expresso_local_messages.set_as_logged(uid_usuario,pass); 
     36                control = expresso_local_messages.set_as_logged(uid_usuario,pass,false); 
    3737                if(!control) { 
    3838                        document.getElementById('div_error').innerHTML = 'login ou senha inválida'; 
  • trunk/expressoMail1_2/offline.php

    r1932 r1964  
    109109         
    110110        $acc = CreateObject('phpgwapi.accounts'); 
     111        if(isset($_GET['inside'])) { 
     112                $template->set_var("start_coment_logoff","<tr><td class='content-menu-td'>&nbsp;</td></tr><!--"); 
     113                $template->set_var("end_coment_logoff","-->"); 
     114        }else  { 
     115                $template->set_var("start_coment_logoff"," "); 
     116                $template->set_var("end_coment_logoff",""); 
     117        } 
    111118        $template->set_var("user_organization", $acc->get_organization($GLOBALS['phpgw_info']['user']['account_dn'])); 
    112119        $template->set_var("cyrus_delimiter",$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter']);  
  • trunk/expressoMail1_2/setup/phpgw_pt-br.lang

    r1951 r1964  
    447447The Anti Pop-Up is enabled. Allow this site (%1) for print.     expressoMail1_2 pt-br   O anti Pop-Up está ativado. Desative-o para este site (%1)! 
    448448The event was imported successfully.    expressoMail1_2 pt-br   O compromisso foi importado com sucesso. 
     449The expresso imap server is currently down, expresso noticed you have offline mail module installed, would you like to use it?  expressoMail1_2 pt-br   O servidor de caixas está aparentemente fora do ar. O expresso notou que você possui o módulo de e-mails offline instalado. Deseja utilizá-lo? 
    449450The extension %1 is incorrect.  expressoMail1_2 pt-br   O ramal %1 está incorretamente cadastrado. 
    450451The field \"%1\" of the message it contains     expressoMail1_2 pt-br   O campo \"%1\" da mensagem contém 
  • trunk/expressoMail1_2/templates/default/index_offline.tpl

    r1121 r1964  
    2020 
    2121                                                                <tr><td id="link_tools" class='content-menu-td' onmouseover='javascript:set_menu_bg(Element("link_tools"));' onmouseout='javascript:unset_menu_bg(this);'><div class='em_div_sidebox_menu'><img height='16px' src='./templates/{template}/images/menu/tools.gif'><span class="em_sidebox_menu">{tools} ...</span></div></td></tr>                                                                
    22                                                                 <tr><td class='content-menu-td' onclick='expresso_offline_access.do_logoff()' onmouseover='javascript:set_menu_bg(this);' onmouseout='javascript:unset_menu_bg(this);'><div class='em_div_sidebox_menu'><img width='18px' height='18px' src='../phpgwapi/templates/celepar/images/logout.png'><span class="em_sidebox_menu">{logoff}</span></div></td></tr> 
     22                                                                {start_coment_logoff}<tr><td class='content-menu-td' onclick='expresso_offline_access.do_logoff()' onmouseover='javascript:set_menu_bg(this);' onmouseout='javascript:unset_menu_bg(this);'><div class='em_div_sidebox_menu'><img width='18px' height='18px' src='../phpgwapi/templates/celepar/images/logout.png'><span class="em_sidebox_menu">{logoff}</span></div></td></tr>{end_coment_logoff} 
    2323                                                                <tr><td height="3px">&nbsp;</td></tr>                                                            
    2424                                                        </tbody></table> 
Note: See TracChangeset for help on using the changeset viewer.