Changeset 5164 for trunk/phpgwapi/templates
- Timestamp:
- 11/10/11 14:57:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/templates/default/login_default.php
r5141 r5164 67 67 return $aux; 68 68 } 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 { 69 89 /* Program starts here */ 70 90 … … 585 605 586 606 $tmpl->pfp('loginout','login_form'); 607 } 587 608 588 609 ?>
Note: See TracChangeset
for help on using the changeset viewer.