Changeset 4304 for sandbox/2.2.0.2/login.php
- Timestamp:
- 05/10/11 11:11:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/login.php
r4278 r4304 40 40 if(function_exists('CreateObject')) 41 41 { 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; 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 } 57 58 } 58 }59 60 59 $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 61 60 }
Note: See TracChangeset
for help on using the changeset viewer.