Ignore:
Timestamp:
11/10/11 14:57:58 (12 years ago)
Author:
niltonneto
Message:

Ticket #2276 - Resincronizando as revisões deste ticket para o Trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/login_default.php

    r5141 r5164  
    6767            return $aux; 
    6868        } 
     69        $ifMobile = false; 
     70        $browser = CreateObject('phpgwapi.browser'); 
     71        switch ( $browser->get_platform() ) 
     72        { 
     73                case browser::PLATFORM_IPHONE: 
     74                case browser::PLATFORM_IPOD: 
     75                case browser::PLATFORM_IPAD: 
     76                case browser::PLATFORM_BLACKBERRY: 
     77                case browser::PLATFORM_NOKIA: 
     78                case browser::PLATFORM_ANDROID: 
     79                        $ifMobile = true; 
     80                        break; 
     81        } 
     82         
     83        if( $ifMobile && $_GET['dont_redirect_if_moble'] != 1 )  
     84        { 
     85                $GLOBALS['phpgw']->redirect_link('/mobile/login.php'); 
     86        } 
     87        else 
     88        { 
    6989        /* Program starts here */ 
    7090         
     
    585605 
    586606        $tmpl->pfp('loginout','login_form'); 
     607        } 
    587608 
    588609?> 
Note: See TracChangeset for help on using the changeset viewer.