Changeset 3969
- Timestamp:
- 04/11/11 11:19:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/index.php
r3571 r3969 5 5 $GLOBALS['sessionid'] = isset($_GET['sessionid']) ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 6 6 7 $proxies=explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']);8 $fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST'];7 $proxies = explode(',',$_SERVER['HTTP_X_FORWARDED_HOST']); 8 $fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 9 9 10 10 if(!$GLOBALS['sessionid']) 11 11 { 12 12 //$location = 'Location: ' . $fwConstruct . 'login.php'; 13 if ($_SERVER['HTTPS'] != 'on') 14 { 15 $aux = 'http://'; 16 } 17 else 18 { 19 $aux = 'https://'; 20 } 21 Header('Location: ' . $aux . $fwConstruct . '/mobile/login.php'); 13 if ($_SERVER['HTTPS'] != 'on') 14 { 15 $aux = 'http://'; 16 } 17 else 18 { 19 $aux = 'https://'; 20 } 21 22 Header('Location: ' . $aux . $fwConstruct . 'login.php'); 22 23 exit; 23 24 } 24 25 25 if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) { 26 if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) 27 { 26 28 if ($_SERVER['HTTPS'] != 'on') { 27 29 Header('Location: https://' . $fwConstruct . '/' . $_SERVER['REQUEST_URI']);
Note: See TracChangeset
for help on using the changeset viewer.