Changeset 141 for trunk/index.php


Ignore:
Timestamp:
01/03/08 14:10:56 (16 years ago)
Author:
niltonneto
Message:

Correções no modo HTTPS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r15 r141  
    2121        if(!$GLOBALS['sessionid']) 
    2222        { 
    23                 /*if (($GLOBALS['phpgw_info']['server']['use_https'] == 2) && ($_SERVER['HTTPS'] != 'on')) 
    24                 { 
    25                          
    26                         Header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 
    27                         exit; 
    28                 } 
    29                 else 
    30                 {*/ 
    31                         Header('Location: login.php'. 
    32                         (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ? 
    33                         '?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):'')); 
    34                         exit; 
    35                 //} 
     23                Header('Location: login.php'. 
     24                (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ? 
     25                '?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):'')); 
     26                exit; 
    3627        } 
    3728 
     
    6859        ); 
    6960        include('./header.inc.php'); 
     61 
     62        if (($GLOBALS['phpgw_info']['server']['use_https'] == 2) && ($_SERVER['HTTPS'] != 'on')) 
     63        { 
     64                Header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 
     65                exit; 
     66        } 
    7067 
    7168        if($app == 'home' && !$api_requested) 
Note: See TracChangeset for help on using the changeset viewer.