Changeset 2459 for trunk/controller.php


Ignore:
Timestamp:
04/07/10 16:58:47 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Permitindo que o ExpressoAdmin não realize reload de página.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/controller.php

    r2426 r2459  
    6161                if( strpos($app, '$this/') === 0 ) 
    6262                { 
    63                         $filename = str_replace('$this/','',$app) . '.php'; 
     63                        $_app = ''; 
     64                        $url = parse_url( $_SERVER[ 'HTTP_REFERER' ] ); 
     65                        if ( ( $pos = strpos( $url[ 'query' ], 'menuaction' ) ) !== false ) 
     66                                $_app = strstr( substr( $url[ 'query' ], $pos + 11 ), '.', true ) . '/'; 
     67                        $filename = str_replace( '$this/', $_app, $app ) . '.php'; 
    6468                        include_once($filename); 
    6569                        exit; 
Note: See TracChangeset for help on using the changeset viewer.