1 ) { // Put parameters into the environment $args = explode( '&', $parts[1] ); if ( count( $args ) > 0 ) { foreach ( $args as $arg ) { $tmp = explode( '=', $arg ); if ( count( $tmp ) === 1 ) $_GET[ $arg ] = ''; else $_GET[ $tmp[0] ] = $tmp[1]; } } } include( $parts[0] ); exit(); } else { $_SERVER['REQUEST_URI'] = $target; if ( strpos( $target, '?' ) ) { $_SERVER['QUERY_STRING'] = substr( $target, strpos( $target, '?' ) + 1 ); parse_str( $_SERVER['QUERY_STRING'], $_GET ); } } return true; } }