Ignore:
Timestamp:
04/25/11 11:55:37 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1787 - Correção para evitar os vários redirecionamentos para o login automatico

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/index.php

    r4120 r4126  
    66 
    77        $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         
    1013        if(!$GLOBALS['sessionid']) 
    1114        { 
    12                 //$location = 'Location: ' . $fwConstruct . 'login.php'; 
    1315            if ($_SERVER['HTTPS'] != 'on') 
    1416            { 
     
    1921                $aux = 'https://'; 
    2022            } 
    21  
    22             Header('Location: ' . $aux . $fwConstruct . 'login.php'); 
     23                 
     24            Header('Location: ' . $aux . $fwConstruct . "login.php"); 
    2325                exit; 
    2426        } 
     
    5860        ); 
    5961 
    60         include('../header.inc.php'); 
    61         include('./mobile_header.inc.php'); 
     62        include_once('../header.inc.php'); 
     63        include_once('./mobile_header.inc.php'); 
    6264         
    6365        if($mobileapp == 'home') 
Note: See TracChangeset for help on using the changeset viewer.