Changeset 3434


Ignore:
Timestamp:
10/28/10 17:25:04 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1244 - Ajeitando home.php e index.php para corrigir loop infinito.

Location:
branches/2.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/home.php

    r223 r3434  
    1212        \**************************************************************************/ 
    1313        $phpgw_info = array(); 
     14        $current_url = substr($_SERVER["SCRIPT_NAME"], 0, strpos($_SERVER["SCRIPT_NAME"],'home.php')); 
     15 
    1416        if (!is_file('header.inc.php')) 
    1517        { 
    16                 Header('Location: setup/index.php'); 
     18                Header('Location: '.$current_url.'/setup/index.php'); 
    1719                exit; 
    1820        } 
     
    2123        if (!isset($GLOBALS['sessionid']) || !$GLOBALS['sessionid']) 
    2224        { 
    23                 Header('Location: login.php?cd=10'); 
     25                Header('Location: '.$current_url.'/login.php?cd=10'); 
    2426                exit; 
    2527        } 
  • branches/2.2/index.php

    r237 r3434  
    1010        \**************************************************************************/ 
    1111 
    12  
     12        $current_url = substr($_SERVER["SCRIPT_NAME"], 0, strpos($_SERVER["SCRIPT_NAME"],'home.php')); 
    1313        $phpgw_info = array(); 
    1414        if(!file_exists('header.inc.php')) 
    1515        { 
    16                 Header('Location: setup/index.php'); 
     16                Header('Location: '.$current_url.'/setup/index.php'); 
    1717                exit; 
    1818        } 
     
    2121        if(!$GLOBALS['sessionid']) 
    2222        { 
    23                 Header('Location: login.php'. 
     23                Header('Location: '.$current_url.'/login.php'. 
    2424                (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ? 
    2525                '?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):'')); 
Note: See TracChangeset for help on using the changeset viewer.