Changeset 4200 for branches/2.2


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.

Location:
branches/2.2
Files:
3 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                } 
  • branches/2.2/mobile/templates/default/login.tpl

    r4120 r4200  
    1414                <link rel="icon" href="./templates/default/images/favicon.png" type="image/x-ico" /> 
    1515                <meta name="apple-touch-fullscreen" content="YES" />  
     16 
    1617                <script type="text/javascript"> 
    1718 
     
    3637                </script> 
    3738        </head> 
    38          
    39         <body>           
     39 
     40        <body> 
    4041                <div class="topo"> 
    4142                <h1>{website_title} - {lang_login}</h1> 
    4243                </div> 
    4344 
    44                 {message_box}            
     45                {message_box} 
    4546                 
    4647                <form name="form_login" method="post" action="./login.php" id="login_form" autocomplete=off onSubmit="return validate_login(this);"> 
     
    6263 
    6364                <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licen&ccedil;a de Software</div> 
     65                <div class="rodape center"><a href="/login.php?dont_redirect_if_moble=1">Versão Clássica</a></div> 
    6466        </body> 
    6567</html> 
  • branches/2.2/mobile/templates/default/pc_template.tpl

    r3996 r4200  
    9595                        <p>Projeto ExpressoLivre 2004 - 2010 :: Licen&ccedil;a de Software</p> 
    9696                        <p><a href="index.php?menuaction=mobile.ui_home.change_template&template=mini_mobile">{lang_mini_mobile}</a></p> 
     97                        <p><a href="/index.php">Versão Clássica</a></p> 
    9798                </div> 
    9899        </body> 
Note: See TracChangeset for help on using the changeset viewer.