Changeset 5060 for branches/2.2/phpgwapi
- Timestamp:
- 09/06/11 11:58:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/inc/functions.inc.php
r3552 r5060 345 345 } 346 346 } 347 // this removes the sessiondata if its saved in the URL 348 $query = preg_replace('/[&]?sessionid(=|%3D)[^&]+&kp3(=|%3D)[^&]+&domain=.*$/','',$_SERVER['QUERY_STRING']); 349 Header('Location: '.$GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=10&phpgw_forward='.urlencode($relpath.(!empty($query) ? '?'.$query : ''))); 350 exit; 347 348 $ifMobile = false; 349 $browser = CreateObject('phpgwapi.browser'); 350 switch ( $browser->get_platform() ) 351 { 352 case browser::PLATFORM_IPHONE: 353 case browser::PLATFORM_IPOD: 354 case browser::PLATFORM_IPAD: 355 case browser::PLATFORM_BLACKBERRY: 356 case browser::PLATFORM_NOKIA: 357 case browser::PLATFORM_ANDROID: 358 $ifMobile = true; 359 break; 360 } 361 362 if( $ifMobile ) 363 { 364 Header('Location: '.$GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=66'); 365 exit; 366 } 367 else 368 { 369 // this removes the sessiondata if its saved in the URL 370 $query = preg_replace('/[&]?sessionid(=|%3D)[^&]+&kp3(=|%3D)[^&]+&domain=.*$/','',$_SERVER['QUERY_STRING']); 371 Header('Location: '.$GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=10&phpgw_forward='.urlencode($relpath.(!empty($query) ? '?'.$query : ''))); 372 exit; 373 } 351 374 } 352 375
Note: See TracChangeset
for help on using the changeset viewer.