Changeset 4200 for branches/2.2/login.php
- Timestamp:
- 05/04/11 09:43:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/login.php
r3621 r4200 40 40 if(function_exists('CreateObject')) 41 41 { 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 } 56 58 } 57 58 59 $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 59 60 }
Note: See TracChangeset
for help on using the changeset viewer.