Changeset 3621 for branches/2.2/login.php
- Timestamp:
- 12/22/10 15:39:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/login.php
r3448 r3621 11 11 * option) any later version. * 12 12 \**************************************************************************/ 13 13 14 14 $phpgw_info = array(); 15 15 $submit = False; // set to some initial value … … 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; 56 } 57 42 58 $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 43 59 } … … 99 115 $GLOBALS['phpgw']->session->phpgw_setcookie('serverID', $GLOBALS['phpgw_info']['server']['use_frontend_id']); 100 116 } 101 if($GLOBALS['phpgw_info']['server']['captcha']==1)117 if($GLOBALS['phpgw_info']['server']['captcha']==1) 102 118 { 103 119 session_start(); 104 120 } 105 include(personalize_include_path('phpgwapi','login'));121 include(personalize_include_path('phpgwapi','login')); 106 122 ?> 107 123
Note: See TracChangeset
for help on using the changeset viewer.