diff --git a/html/lmbrowse.php b/html/lmbrowse.php index a41b0dd..2d2dc3a 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -2935,7 +2935,7 @@ function lmb_play_page( $play_type, $play_id, $play_priority) $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - if( file_exists( $play_path)) + if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is())) { $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); @@ -3856,13 +3856,21 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $skin_path = "{$play_path}/skin"; - $track_title = lmb_title_get( $play_type, $play_id, $play_priority, $track_id); - $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); - lmb_header( 4, "Langueur Monotone - {$track_fulltitle} - Track Page", "{$track_fulltitle} - Track", "Langueur Monotone track page, giving all the information about {$track_fulltitle} track", "track, {$track_title}, {$track_fulltitle}", 962, "{$skin_path}"); - lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_path); - lmb_footer( $skin_path); + if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is())) + { + $skin_path = "{$play_path}/skin"; + $track_title = lmb_title_get( $play_type, $play_id, $play_priority, $track_id); + $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); + + lmb_header( 4, "Langueur Monotone - {$track_fulltitle} - Track Page", "{$track_fulltitle} - Track", "Langueur Monotone track page, giving all the information about {$track_fulltitle} track", "track, {$track_title}, {$track_fulltitle}", 962, "{$skin_path}"); + lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_path); + lmb_footer( $skin_path); + } + else + { + lmb_redirect_page( ""); + } }