Changeset 3
- Timestamp:
- 08/11/08 11:18:35 (5 months ago)
- Location:
- htdocs/core_layer
- Files:
-
- 2 modified
-
classes/output/sgen.parse/parse_url.php (modified) (1 diff)
-
serenity.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
htdocs/core_layer/classes/output/sgen.parse/parse_url.php
r1 r3 1 $PARSE['string'] = Serenity::get('base_app_url').'/'.$PARSE['args'][0]; 1 if( $PARSE['args'][0][0] == '/' ) 2 { 3 $PARSE['args'][0] = @substr( $PARSE['args'][0], 1 ); 4 } 5 6 if( @strripos( Serenity::get('base_app_url'), '/' ) == ( @strlen( Serenity::get('base_app_url') ) -1 ) ) 7 { 8 $PARSE['string'] = Serenity::get('base_app_url').$PARSE['args'][0]; 9 } 10 else 11 { 12 $PARSE['string'] = Serenity::get('base_app_url').'/'.$PARSE['args'][0]; 13 } 2 14 3 15 if( ( !Serenity::user()->get('use_cookies') ) && Serenity::user()->is_logged_in() ) -
htdocs/core_layer/serenity.php
r1 r3 420 420 421 421 $app_url = "http://{$Apps->bind_host}{$this->subs}"; 422 $app_url .= ( $Apps->path_key != '*' ) ? $Apps->path_key .'/': '';423 422 $app_url .= ( $Apps->path_key != '*' ) ? $Apps->path_key : ''; 423 424 424 self::set( 'base_app_url', $app_url ); 425 425 self::set( 'base_action_url', $app_url . $Action->action_key );
