Ignore:
Timestamp:
05/04/11 09:43:23 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1817 - Adicionado link para acesso a versão Clássica a partir da Expresso Mini.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/login.php

    r3621 r4200  
    4040                if(function_exists('CreateObject')) 
    4141                { 
    42                         //detect if the user has a compatible browser, if don't have send him to expresso mini 
    43                         $browser = CreateObject('phpgwapi.browser'); 
    44                          
    45                         switch ($browser->get_platform()) { 
    46                                 case browser::PLATFORM_IPHONE: 
    47                                 case browser::PLATFORM_IPOD: 
    48                                 case browser::PLATFORM_IPAD: 
    49                                 case browser::PLATFORM_BLACKBERRY: 
    50                                 case browser::PLATFORM_NOKIA: 
    51                                 case browser::PLATFORM_ANDROID: 
    52                                         $GLOBALS['phpgw']->redirect_link('/mobile/');                                    
    53                                         break; 
    54                                 default: 
    55                                         break; 
     42                        if($_GET['dont_redirect_if_moble'] != 1) { 
     43                                //detect if the user has a compatible browser, if don't have send him to expresso mini 
     44                                $browser = CreateObject('phpgwapi.browser'); 
     45 
     46                                switch ($browser->get_platform()) { 
     47                                        case browser::PLATFORM_IPHONE: 
     48                                        case browser::PLATFORM_IPOD: 
     49                                        case browser::PLATFORM_IPAD: 
     50                                        case browser::PLATFORM_BLACKBERRY: 
     51                                        case browser::PLATFORM_NOKIA: 
     52                                        case browser::PLATFORM_ANDROID: 
     53                                                        $GLOBALS['phpgw']->redirect_link('/mobile/'); 
     54                                                break; 
     55                                        default: 
     56                                                break; 
     57                                } 
    5658                        } 
    57                          
    5859                        $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 
    5960                } 
Note: See TracChangeset for help on using the changeset viewer.