Changeset 5053 for branches/2.2
- Timestamp:
- 09/06/11 11:02:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/index.php
r4126 r5053 8 8 //$fwConstruct = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $proxies[0] : $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 9 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 ); 10 $REQUEST_URI = substr( $_SERVER['REQUEST_URI'], 0, strpos( $_SERVER['REQUEST_URI'], "/mobile/"+1)); 11 if( strpos( $_SERVER['REQUEST_URI'], "/mobile/" ) !== false ) 12 { 13 $REQUEST_URI = substr($_SERVER['REQUEST_URI'], 0, strpos( $_SERVER['REQUEST_URI'], "/mobile/")); 14 } 15 11 16 $fwConstruct .= $REQUEST_URI; 12 17 … … 21 26 $aux = 'https://'; 22 27 } 23 24 Header('Location: ' . $aux . $fwConstruct . " login.php");25 exit;28 29 Header('Location: ' . $aux . $fwConstruct . "/login.php"); 30 exit; 26 31 } 27 32 … … 29 34 { 30 35 if ($_SERVER['HTTPS'] != 'on') { 31 Header('Location: https://' . $fwConstruct . '/' .$_SERVER['REQUEST_URI']);36 Header('Location: https://' . $fwConstruct . $_SERVER['REQUEST_URI']); 32 37 exit; 33 38 }
Note: See TracChangeset
for help on using the changeset viewer.