Changeset 3867


Ignore:
Timestamp:
03/14/11 16:49:45 (8 years ago)
Author:
niltonneto
Message:

Ticket #1653 - Alterado de SCRIPT_URL para SCRIPT_NAME, por não ser variável padrão.

Location:
branches/2.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/header.session.inc.php

    r3018 r3867  
    3535if (empty($_SESSION['phpgw_session']['session_id']) || $invalidSession)  
    3636{ 
    37         if($_SESSION['connection_db_info']['user_auth'] && !strstr($_SERVER['SCRIPT_URL'],"/controller.php")) { 
     37        if($_SESSION['connection_db_info']['user_auth'] && !strstr($_SERVER['SCRIPT_NAME'],"/controller.php")) { 
    3838                error_log( '[ INVALID SESSION ] >>>>' .$_SESSION['connection_db_info']['user_auth'].'<<<< - >>>>' . implode("",$user_agent), 0 );  
    3939                $GLOBALS['phpgw']->session->phpgw_setcookie('sessionid');  
     
    4444        unset($_SESSION);                               // Removing session values.  
    4545        // From ExpressoAjax response "nosession"  
    46         if(strstr($_SERVER['SCRIPT_URL'],"/controller.php")){  
     46        if(strstr($_SERVER['SCRIPT_NAME'],"/controller.php")){  
    4747                echo serialize(array("nosession" => true));  
    4848                exit;  
     
    5151else{  
    5252        // From ExpressoAjax update session_dla (datetime last access).   
    53         if(strstr($_SERVER['SCRIPT_URL'],"/controller.php"))  
     53        if(strstr($_SERVER['SCRIPT_NAME'],"/controller.php"))  
    5454                $_SESSION['phpgw_session']['session_dla'] = time();  
    5555 
  • branches/2.2/mobile/inc/class.mobiletemplate.inc.php

    r3829 r3867  
    165165                        } 
    166166 
    167                         $GLOBALS['phpgw']->session->appsession('mobile.last_url','mobile',$_SERVER["SCRIPT_URL"]); 
     167                        $GLOBALS['phpgw']->session->appsession('mobile.last_url','mobile',$_SERVER["SCRIPT_NAME"]); 
    168168                        $GLOBALS['phpgw']->session->appsession('mobile.last_request','mobile',$_REQUEST); 
    169169                } 
Note: See TracChangeset for help on using the changeset viewer.