Ignore:
Timestamp:
04/11/11 15:04:46 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1726 - Visualizacao do Mobile. Tickets #1730, #1728, #1733, #1734

File:
1 edited

Legend:

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

    r3571 r3974  
    55        $GLOBALS['sessionid'] = isset($_GET['sessionid']) ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 
    66 
    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']; 
    99 
    1010        if(!$GLOBALS['sessionid']) 
    1111        { 
    1212                //$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'); 
    2223                exit; 
    2324        } 
    2425 
    25         if ($GLOBALS['phpgw_info']['server']['use_https'] > 0)  { 
     26        if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) 
     27        { 
    2628                if ($_SERVER['HTTPS'] != 'on') { 
    2729                        Header('Location: https://' . $fwConstruct . '/' . $_SERVER['REQUEST_URI']); 
Note: See TracChangeset for help on using the changeset viewer.