Changeset 4126 for branches/2.2/mobile/index.php
- Timestamp:
- 04/25/11 11:55:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/index.php
r4120 r4126 6 6 7 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 8 //$fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 9 $fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST']; 10 $REQUEST_URI = substr( $_SERVER['REQUEST_URI'], 0, strpos( $_SERVER['REQUEST_URI'], "/mobile/" ) + 8 ); 11 $fwConstruct .= $REQUEST_URI; 12 10 13 if(!$GLOBALS['sessionid']) 11 14 { 12 //$location = 'Location: ' . $fwConstruct . 'login.php';13 15 if ($_SERVER['HTTPS'] != 'on') 14 16 { … … 19 21 $aux = 'https://'; 20 22 } 21 22 Header('Location: ' . $aux . $fwConstruct . 'login.php');23 24 Header('Location: ' . $aux . $fwConstruct . "login.php"); 23 25 exit; 24 26 } … … 58 60 ); 59 61 60 include ('../header.inc.php');61 include ('./mobile_header.inc.php');62 include_once('../header.inc.php'); 63 include_once('./mobile_header.inc.php'); 62 64 63 65 if($mobileapp == 'home')
Note: See TracChangeset
for help on using the changeset viewer.