Changeset 2459 for trunk/controller.php
- Timestamp:
- 04/07/10 16:58:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/controller.php
r2426 r2459 61 61 if( strpos($app, '$this/') === 0 ) 62 62 { 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'; 64 68 include_once($filename); 65 69 exit;
Note: See TracChangeset
for help on using the changeset viewer.