From b722d620e47623e3d13a73caf51860a164e2cb6e Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Mon, 15 Dec 2025 17:34:03 +0100 Subject: [PATCH] - Remove tweeter widget, - Fix security, - Cleanup code. --- html/lmbrowse.php | 3807 ++++++++++++++++++++++----------------------- 1 file changed, 1870 insertions(+), 1937 deletions(-) diff --git a/html/lmbrowse.php b/html/lmbrowse.php index ea20411..0da60fb 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -1,13 +1,7 @@ $criterion) { $criteria[$index] = is_array($criterion) - ? array_pad($criterion, 3, null) - : array($criterion, SORT_ASC, null); + ? array_pad($criterion, 3, null) + : array($criterion, SORT_ASC, null); } return function($first, $second) use (&$criteria) { @@ -131,7 +127,7 @@ function lmb_cookie_set( $cookie_id, $cookie_value, $cookie_time) setcookie( $cookie_id, $cookie_value, time() + $cookie_time); $lmb_cookie_tab["$cookie_id"] = $cookie_value; -// echo "set ($cookie_value) into ($cookie_id)"; + // echo "set ($cookie_value) into ($cookie_id)"; } @@ -148,13 +144,13 @@ function lmb_cookie_load( $cookie_id, $cookie_defvalue) if( array_key_exists ( $cookie_id, $_COOKIE)) { $cookie_value = $_COOKIE[ $cookie_id]; -// echo "load val ($cookie_value) for ($cookie_id)"; + // echo "load val ($cookie_value) for ($cookie_id)"; } if( ! isset( $cookie_value)) { $cookie_value = $cookie_defvalue; -// echo "set def val ($cookie_defvalue) for ($cookie_id)"; + // echo "set def val ($cookie_defvalue) for ($cookie_id)"; } $lmb_cookie_tab[ $cookie_id] = $cookie_value; @@ -184,21 +180,21 @@ function lmb_cookies_load() function lmb_cookie_update( $get_array) { - if( array_key_exists ( "cookie_id", $get_array)) - { - $cookie_id = $get_array["cookie_id"]; - } - else - { - $cookie_id = ""; - } + if( array_key_exists ( "cookie_id", $get_array)) + { + $cookie_id = $get_array["cookie_id"]; + } + else + { + $cookie_id = ""; + } - if( $cookie_id != "") - { - $cookie_value = $get_array["cookie_value"]; + if( $cookie_id != "") + { + $cookie_value = $get_array["cookie_value"]; - lmb_cookie_set( $cookie_id, $cookie_value, 31536000); - } + lmb_cookie_set( $cookie_id, $cookie_value, 31536000); + } } @@ -209,14 +205,14 @@ function lmb_cookie_update( $get_array) function lmb_get_array( $get_array, $get_key, $default_value) { - if( array_key_exists ( "$get_key", $get_array)) - { - return( preg_replace("/[^A-Za-z0-9\-_\*\.]/", "", $get_array["$get_key"])); - } - else - { - return( "$default_value"); - } + if( array_key_exists ( "$get_key", $get_array)) + { + return( preg_replace("/[^A-Za-z0-9\-_\*\.]/", "", $get_array["$get_key"])); + } + else + { + return( "$default_value"); + } } @@ -227,20 +223,20 @@ function lmb_get_array( $get_array, $get_key, $default_value) function lmb_admin_is() { - global $lmb_password; - global $lmb_cookie_tab; + global $lmb_password; + global $lmb_cookie_tab; - $admin = $lmb_cookie_tab["admin"]; + $admin = $lmb_cookie_tab["admin"]; - if( $admin == $lmb_password) - { - return( true); - } - else - { - return( false); - } + if( $admin == $lmb_password) + { + return( true); + } + else + { + return( false); + } } @@ -251,31 +247,31 @@ function lmb_admin_is() function lmb_admin_update() { - global $lmb_password; - global $lmb_cookie_tab; + global $lmb_password; + global $lmb_cookie_tab; - if( array_key_exists ( "password", $_POST)) - { - $passwd = $_POST["password"]; - } - else - { - $passwd = ""; - } - - - if( $passwd != "") - { - if( $passwd == $lmb_password) + if( array_key_exists ( "password", $_POST)) { - lmb_cookie_set( "admin", $lmb_password, 360000); + $passwd = $_POST["password"]; } else { - lmb_cookie_set( "admin", "", 360000); + $passwd = ""; + } + + + if( $passwd != "") + { + if( $passwd == $lmb_password) + { + lmb_cookie_set( "admin", $lmb_password, 360000); + } + else + { + lmb_cookie_set( "admin", "", 360000); + } } - } } @@ -286,18 +282,18 @@ function lmb_admin_update() function lmb_size_convert( $size) { - $unit_tab = array( "b", "Kb", "Mb", "Gb"); + $unit_tab = array( "b", "Kb", "Mb", "Gb"); - for( $i = 0; $size > 1024; $i++) - { - $size = intval( $size / 1024); - } + for( $i = 0; $size > 1024; $i++) + { + $size = intval( $size / 1024); + } - $size_tab["size"] = $size; - $size_tab["unit"] = $unit_tab[$i]; + $size_tab["size"] = $size; + $size_tab["unit"] = $unit_tab[$i]; - return( $size_tab); + return( $size_tab); } @@ -308,54 +304,49 @@ function lmb_size_convert( $size) function lmb_html_text_format( $input_text) { - $search_tab = array( - "&", - "\n", - "< >", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ); + $search_tab = array( + "#", + "&", + "\n", + "< >", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ); - $replace_tab = array( - "&", - "
\n ", - " ", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - " -
- -  
", - " -
- - -
-", - "" - ); + $replace_tab = array( + "", + "&", + "
\n ", + " ", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "
", + "
", + "
", + "
", + ); - return( str_replace( $search_tab, $replace_tab, $input_text)); + return( str_replace( $search_tab, $replace_tab, $input_text)); } @@ -366,48 +357,51 @@ function lmb_html_text_format( $input_text) function lmb_xml_text_format( $input_text) { - $search_tab = array( - "&", - "\"", - "\n", - "< >", - "
", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ); + $search_tab = array( + "&", + "\"", + "\n", + "< >", + "
", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ); - $replace_tab = array( - "&", - """, - "\n ", - "", - "\n", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ); + $replace_tab = array( + "&", + """, + "\n ", + "", + "\n", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ); - return( str_replace( $search_tab, $replace_tab, $input_text)); + return( str_replace( $search_tab, $replace_tab, $input_text)); } @@ -418,7 +412,7 @@ function lmb_xml_text_format( $input_text) function lmb_playtype_path_get( $play_type) { - return( "discography/{$play_type}"); + return( "discography/{$play_type}"); } @@ -451,40 +445,40 @@ function lmb_play_validate( $play_type, $play_id, $play_priority) function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_path) { - $tab_class = "sprite-tab-{$tab_id}-{$tab_side}"; + $tab_class = "sprite-tab-{$tab_id}-{$tab_side}"; - if( "$tab_side" == "l") - { - $logo_side="r"; - } - else - { - $logo_side="l"; - } + if( "$tab_side" == "l") + { + $logo_side="r"; + } + else + { + $logo_side="l"; + } - $tab_tag = "
"; + $tab_tag = "
"; - if( $logo_path[0] == "/") - { - $logo_tag = "\"\"/"; - } - else - { - $logo_tag = "
"; - } + if( $logo_path[0] == "/") + { + $logo_tag = "\"\"/"; + } + else + { + $logo_tag = "
"; + } - if( "$tab_side" == "l") - { - $l_tag = "{$tab_tag}"; - $r_tag = "{$logo_tag}"; - } - else - { - $l_tag = "$logo_tag"; - $r_tag = "$tab_tag"; - } + if( "$tab_side" == "l") + { + $l_tag = "{$tab_tag}"; + $r_tag = "{$logo_tag}"; + } + else + { + $l_tag = "$logo_tag"; + $r_tag = "$tab_tag"; + } - echo " + echo " @@ -494,11 +488,11 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_pat @@ -508,7 +502,7 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_pat
-"; + "; - echo $data; + echo $data; - echo " + echo "
 
-"; + "; } @@ -520,15 +514,15 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data, $skin_pat function lmb_spacer( $size) { - echo " "; + echo " "; - for( $i = 0; $i < $size; $i++) - { - echo "
"; - } + for( $i = 0; $i < $size; $i++) + { + echo "
"; + } - echo " -"; + echo " + "; } @@ -539,79 +533,79 @@ function lmb_spacer( $size) function lmb_menu( $menu_id, $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - for( $i = 0; $i < 3; $i++) - { - if( $i == $menu_id) + for( $i = 0; $i < 3; $i++) { - $mode="off"; - } - else - { - $mode="on"; - } - - switch($i) - { - case 0: - { - if( $i == $menu_id) + if( $i == $menu_id) { - echo "
-"; + $mode="off"; } else { - echo "
-"; + $mode="on"; } - break; - } - case 1: - { - if( $i == $menu_id) + switch($i) { - echo "
-"; - } - else - { - echo "
-"; - } - break; - } + case 0: + { + if( $i == $menu_id) + { + echo "
+ "; + } + else + { + echo "
+ "; + } + break; + } - case 2: - { - if( $i == $menu_id) - { - echo "
-"; - } - else - { - echo "
-"; - } - break; - } + case 1: + { + if( $i == $menu_id) + { + echo "
+ "; + } + else + { + echo "
+ "; + } + break; + } - default: - { - break; - } + case 2: + { + if( $i == $menu_id) + { + echo "
+ "; + } + else + { + echo "
+ "; + } + break; + } + + default: + { + break; + } + } + + if( $i < 2) + { + echo " + "; + } } - - if( $i < 2) - { - echo " -"; - } - } } @@ -634,59 +628,60 @@ function lmb_redirect_page( $page) function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, $min_width, $skin_path) { - global $lmb_keywords; - global $lmb_ga_enable; + global $lmb_keywords; + global $lmb_ga_enable; - header('Content-type: text/html; charset=utf-8'); + header('Content-type: text/html; charset=utf-8'); - $keywords = "$lmb_keywords,$keywords"; + $keywords = "$lmb_keywords,$keywords"; - if( $min_width != 0) - { - $mw_tag = "min-width: {$min_width}px;"; - } - else - { - $mw_tag = ""; - } + if( $min_width != 0) + { + $mw_tag = "min-width: {$min_width}px;"; + } + else + { + $mw_tag = ""; + } -// echo ""; -// echo ""; - echo ""; + // echo ""; + // echo ""; + echo ""; -// echo ""; - echo " -"; + // echo ""; + echo " + "; - echo " + echo " + $page_name -"; + "; - if( $lmb_ga_enable == true) - { -/* - echo " -"; -*/ + + "; + */ - echo " + echo " -"; - } + "; + } -echo " -"; + echo " + "; - echo " -"; + echo " + "; - echo " + echo "
-"; + "; - echo " -"; + echo " + "; - echo " + echo " -"; + "; - echo " -"; + echo " + "; - echo " + echo " @@ -742,11 +737,11 @@ echo " -"; + "; - lmb_menu( $page_id, $skin_path); + lmb_menu( $page_id, $skin_path); - echo " + echo " @@ -765,7 +760,7 @@ echo " -"; + "; - echo " + echo "

Langueur Monotone

Langueur Monotone

$page_title

$page_title

-"; + "; } @@ -776,24 +771,24 @@ echo " function lmb_footer( $skin_path) { - global $lmb_url_pre; - global $lmb_url_post; - global $lmb_myname; - global $lmb_myver; - global $lmb_body_footer; - global $lmb_page_footer; - global $time_start; + global $lmb_url_pre; + global $lmb_url_post; + global $lmb_myname; + global $lmb_myver; + global $lmb_body_footer; + global $lmb_page_footer; + global $time_start; - echo " + echo "
@@ -828,11 +823,11 @@ function lmb_footer( $skin_path) -"; + "; - if( lmb_admin_is()) - { - echo " + if( lmb_admin_is()) + { + echo " @@ -858,11 +853,11 @@ function lmb_footer( $skin_path) -"; - } - else - { - echo " -"; - } + "; + } - $time_stop = microtime_float(); - $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; + $time_stop = microtime_float(); + $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " + echo "
   
+ "; + } + else + { + echo "
@@ -870,21 +865,21 @@ function lmb_footer( $skin_path)
Page generated in $time_elaps seconds by V {$lmb_myver} -"; + "; - echo " + echo " @@ -899,7 +894,7 @@ function lmb_footer( $skin_path) -"; + "; } @@ -910,27 +905,26 @@ function lmb_footer( $skin_path) function lmb_welcome_tab( $skin_path) { - $welcome_file = "welcome.txt"; - $welcome_string = file_get_contents( "{$welcome_file}"); + $welcome_file = "welcome.txt"; + $welcome_string = file_get_contents( "{$welcome_file}"); - ob_start(); + ob_start(); - echo " + echo " - ".lmb_html_text_format( "{$welcome_string}")." + ".lmb_html_text_format( "{$welcome_string}")." -"; - - $data = ob_get_contents(); - ob_end_clean(); + "; + + $data = ob_get_contents(); + ob_end_clean(); - lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm-logo1-border-220.png", $data, $skin_path); -// lmb_make_tab( "welcome", "welcome", "l", "sprite-lm-logo1-border-220", $data, $skin_path); + lmb_make_tab( "welcome", "welcome", "l", "{$skin_path}/images/lm-logo1-border-220.png", $data, $skin_path); } @@ -941,55 +935,55 @@ function lmb_welcome_tab( $skin_path) function lmb_news_tab_get( ) { - global $lmb_url_pre; - global $lmb_url_post; + global $lmb_url_pre; + global $lmb_url_post; - $news_file = "news.txt"; + $news_file = "news.txt"; - $line = array(); - $cmd = "sed -e 's/\t*\t/\t/g' ${news_file}"; + $line = array(); + $cmd = "sed -e 's/\t*\t/\t/g' ${news_file}"; - exec( $cmd, $line); + exec( $cmd, $line); - for( $i = 0; $i < count($line); $i++) - { - $tab = explode( "\t", $line[$i]); - $css_row = ( $i + 1) % 2 + 1; - - if( count($tab) > 3) + for( $i = 0; $i < count($line); $i++) { - $play_name = $tab[3]; - $play_type = $tab[4]; - $play_id = $tab[5]; - $play_priority = $tab[6]; + $tab = explode( "\t", $line[$i]); + $css_row = ( $i + 1) % 2 + 1; - $news_tab[$i]["name"] = "{$play_name}"; - $news_tab[$i]["rlink"] = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; - $news_tab[$i]["alink"] = "http://{$lmb_url_pre}{$news_tab[$i]["rlink"]}"; - $news_tab[$i]["rimg"] = "{$lmb_url_post}" . lmb_play_path_get( $play_type, $play_id, $play_priority) . "/covers/{$play_id}-cover-1-icon.png"; - $news_tab[$i]["aimg"] = "http://{$lmb_url_pre}{$news_tab[$i]["rimg"]}"; - } - else - { - $news_tab[$i]["name"] = ""; + if( count($tab) > 3) + { + $play_name = $tab[3]; + $play_type = $tab[4]; + $play_id = $tab[5]; + $play_priority = $tab[6]; + + $news_tab[$i]["name"] = "{$play_name}"; + $news_tab[$i]["rlink"] = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; + $news_tab[$i]["alink"] = "http://{$lmb_url_pre}{$news_tab[$i]["rlink"]}"; + $news_tab[$i]["rimg"] = "{$lmb_url_post}" . lmb_play_path_get( $play_type, $play_id, $play_priority) . "/covers/{$play_id}-cover-1-icon.png"; + $news_tab[$i]["aimg"] = "http://{$lmb_url_pre}{$news_tab[$i]["rimg"]}"; + } + else + { + $news_tab[$i]["name"] = ""; + } + + $news_tab[$i]["date"] = $tab[0]; + $news_tab[$i]["title"] = $tab[1]; + + if( $tab[2] != ".") + { + $news_tab[$i]["news"] = $tab[2]; + } + else + { + $news_tab[$i]["news"] = ""; + } } - $news_tab[$i]["date"] = $tab[0]; - $news_tab[$i]["title"] = $tab[1]; - - if( $tab[2] != ".") - { - $news_tab[$i]["news"] = $tab[2]; - } - else - { - $news_tab[$i]["news"] = ""; - } - } - - return( $news_tab); + return( $news_tab); } @@ -1000,41 +994,41 @@ function lmb_news_tab_get( ) function lmb_news_json_ld( $news_tab) { - global $lmb_url_post; + global $lmb_url_post; - for( $i=0; $i < count($news_tab); $i++) - { + for( $i=0; $i < count($news_tab); $i++) + { - echo " -"; + "; - } + } } @@ -1044,116 +1038,59 @@ function lmb_news_json_ld( $news_tab) function lmb_news_tab( $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - $news_tab = lmb_news_tab_get(); + $news_tab = lmb_news_tab_get(); - lmb_news_json_ld( $news_tab); + lmb_news_json_ld( $news_tab); - ob_start(); + ob_start(); - for( $i=0; $i < count($news_tab); $i++) - { - $css_row = ( $i + 1) % 2 + 1; - - if( "{$news_tab[$i]["name"]}" != "") + for( $i=0; $i < count($news_tab); $i++) { - $height = 110; - $link1_tag = " + $css_row = ( $i + 1) % 2 + 1; + + if( "{$news_tab[$i]["name"]}" != "") + { + $height = 110; + $link1_tag = " {$link2_tag}{$img_tag}"; - $colspan_tag = ""; - } - else - { - $play_tag = ""; - $cover_tag = ""; - $colspan_tag = "colspan=\"3\""; - } + $colspan_tag = ""; + } + else + { + $play_tag = ""; + $cover_tag = ""; + $colspan_tag = "colspan=\"3\""; + } - if( $news_tab[$i]["news"] != "") - { - $news = "
{$news_tab[$i]["title"]}

{$news_tab[$i]["news"]}

"; - } - else - { - $news = "
{$news_tab[$i]["title"]}

"; - } + if( $news_tab[$i]["news"] != "") + { + $news = "
{$news_tab[$i]["title"]}

{$news_tab[$i]["news"]}

"; + } + else + { + $news = "
{$news_tab[$i]["title"]}

"; + } - echo " + echo " {$news_tab[$i]["date"]} ".lmb_html_text_format( "{$news}")." {$play_tag} -"; - } + "; + } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "news", "news", "r", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); - lmb_make_tab( "news", "news", "r", "sprite-lm-logo2-border-220", $data, $skin_path); -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Twitter Tab */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_twitter_tab( $skin_path) -{ - global $lmb_url_post; - - - ob_start(); - - - - echo " - - - - - -   - - - Tweets by langueurmon - - - -   - - - - - - -"; - -/* - - - - - echo " - - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - - -"; - */ - - $data = ob_get_contents(); - ob_end_clean(); - -// lmb_make_tab( "twitter", "twitter", "l", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); - lmb_make_tab( "twitter", "twitter", "l", "sprite-lm-logo1-border-220", $data, $skin_path); + // lmb_make_tab( "news", "news", "r", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); + lmb_make_tab( "news", "news", "r", "sprite-lm-logo2-border-220", $data, $skin_path); } @@ -1164,15 +1101,11 @@ function lmb_twitter_tab( $skin_path) function lmb_main_body( $skin_path) { - lmb_welcome_tab( $skin_path); + lmb_welcome_tab( $skin_path); - lmb_spacer(4); + lmb_spacer(4); - lmb_news_tab( $skin_path); - - lmb_spacer(4); - - lmb_twitter_tab( $skin_path); + lmb_news_tab( $skin_path); } @@ -1183,13 +1116,13 @@ function lmb_main_body( $skin_path) function lmb_main_page() { - global $lmb_tab; + global $lmb_tab; - $skin_path = "/skin"; + $skin_path = "/skin"; - lmb_header( 0, "Langueur Monotone - Home Page", "Home Page", "Langueur Monotone home page, entry point to information, news and links", "home page", 0, "{$skin_path}"); - lmb_main_body( $skin_path); - lmb_footer( $skin_path); + lmb_header( 0, "Langueur Monotone - Home Page", "Home Page", "Langueur Monotone home page, entry point to information, news and links", "home page", 0, "{$skin_path}"); + lmb_main_body( $skin_path); + lmb_footer( $skin_path); } @@ -1200,33 +1133,33 @@ function lmb_main_page() function lmb_sitemap_item( $item_type, $page_url, $img_tab) { - global $lmb_url_pre; - global $lmb_url_post; + global $lmb_url_pre; + global $lmb_url_post; - echo " -"; + echo " + "; - echo " http://{$lmb_url_pre}{$lmb_url_post}${page_url} + echo " http://{$lmb_url_pre}{$lmb_url_post}${page_url} 2013-08-20 weekly 0.5 -"; + "; - if( isset( $img_tab)) - { - foreach( $img_tab as $img) + if( isset( $img_tab)) { - echo " + foreach( $img_tab as $img) + { + echo " http://{$lmb_url_pre}/{$img["url"]} {$img["title"]} -"; + "; + } } - } - echo " -"; + echo " + "; } @@ -1237,12 +1170,12 @@ function lmb_sitemap_item( $item_type, $page_url, $img_tab) function lmb_sitemap_track( $play_type, $play_id, $play_priority, $track_id) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $url = "?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; - $img_tab = array(); - $size = 1024; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $url = "?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; + $img_tab = array(); + $size = 1024; - lmb_sitemap_item( "track", "{$url}", $img_tab); + lmb_sitemap_item( "track", "{$url}", $img_tab); } @@ -1253,67 +1186,67 @@ function lmb_sitemap_track( $play_type, $play_id, $play_priority, $track_id) function lmb_sitemap_play( $play_type, $play_id, $play_priority) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers"; - $extra_path = "{$play_path}/extras"; - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - $url = "?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; - $img_tab = array(); - $img_idx = 0; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers"; + $extra_path = "{$play_path}/extras"; + $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); + $url = "?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; + $img_tab = array(); + $img_idx = 0; - $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority); + $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority); - $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-1-128.png"; - $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 1"; - $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-2-128.png"; - $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 2"; + $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-1-128.png"; + $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 1"; + $img_tab[$img_idx ]["url"] = "{$play_path}/logos/{$play_id}-logo-2-128.png"; + $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Logo 2"; - /* Cover Dump */ + /* Cover Dump */ - $cmd = "ls {$cover_path}/{$play_id}-cover-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort "; - exec( $cmd, $cover_tab); + $cmd = "ls {$cover_path}/{$play_id}-cover-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort "; + exec( $cmd, $cover_tab); - for( $i = 0, $j = 1; $i < count($cover_tab); $i++, $j++) - { - $cover_info_tab = explode( "-", $cover_tab[$i]); - $nb = $cover_info_tab[1]; - $size = str_replace( ".png", "", $cover_info_tab[2]); - - $img_tab[$img_idx ]["url"] = "{$cover_path}/{$play_id}-{$cover_tab[$i]}"; - $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Cover {$nb} ({$size})"; - } - - - /* Extra Dump */ - - if( ! file_exists( "{$extra_path}/.hide" )) - { - $cmd = "ls {$extra_path}/{$play_id}-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort "; - exec($cmd, $extra_tab); - - for( $i = 0, $j = 1; $i < count($extra_tab); $i++, $j++) + for( $i = 0, $j = 1; $i < count($cover_tab); $i++, $j++) { - $extra_info_tab = explode( "-", $extra_tab[$i]); - $type = ucfirst( $extra_info_tab[0]); - $nb = $extra_info_tab[1]; - $format = str_replace( "_", "/", $extra_info_tab[2]); - $size = str_replace( ".png", "", $extra_info_tab[3]); + $cover_info_tab = explode( "-", $cover_tab[$i]); + $nb = $cover_info_tab[1]; + $size = str_replace( ".png", "", $cover_info_tab[2]); - $img_tab[$img_idx ]["url"] = "{$extra_path}/{$play_id}-{$extra_tab[$i]}"; - $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Extra - {$type} {$nb} ({$format}-{$size})"; + $img_tab[$img_idx ]["url"] = "{$cover_path}/{$play_id}-{$cover_tab[$i]}"; + $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Cover {$nb} ({$size})"; + } + + + /* Extra Dump */ + + if( ! file_exists( "{$extra_path}/.hide" )) + { + $cmd = "ls {$extra_path}/{$play_id}-*.png | sed -e 's/.*{$play_id}-//' | grep -v icon.png | sort "; + exec($cmd, $extra_tab); + + for( $i = 0, $j = 1; $i < count($extra_tab); $i++, $j++) + { + $extra_info_tab = explode( "-", $extra_tab[$i]); + $type = ucfirst( $extra_info_tab[0]); + $nb = $extra_info_tab[1]; + $format = str_replace( "_", "/", $extra_info_tab[2]); + $size = str_replace( ".png", "", $extra_info_tab[3]); + + $img_tab[$img_idx ]["url"] = "{$extra_path}/{$play_id}-{$extra_tab[$i]}"; + $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Extra - {$type} {$nb} ({$format}-{$size})"; + } } - } - lmb_sitemap_item( "play", "{$url}", $img_tab); + lmb_sitemap_item( "play", "{$url}", $img_tab); - $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); - foreach( $track_list_info as $track_info) - { - lmb_sitemap_track( $play_type, $play_id, $play_priority, str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT)); - } + foreach( $track_list_info as $track_info) + { + lmb_sitemap_track( $play_type, $play_id, $play_priority, str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT)); + } } @@ -1324,23 +1257,23 @@ function lmb_sitemap_play( $play_type, $play_id, $play_priority) function lmb_sitemap_play_type( $play_type) { - $path = lmb_playtype_path_get( $play_type); - $line = array(); - $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'"; + $path = lmb_playtype_path_get( $play_type); + $line = array(); + $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'"; - exec($cmd, $line); + exec($cmd, $line); - for( $i = 0; $i < count($line); $i++) - { - $play_tab = explode( "-", $line[$i]); - $play_priority = $play_tab[0]; - $play_id = $play_tab[1]; - - if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" )) + for( $i = 0; $i < count($line); $i++) { - lmb_sitemap_play( $play_type, $play_id, $play_priority); - } - } + $play_tab = explode( "-", $line[$i]); + $play_priority = $play_tab[0]; + $play_id = $play_tab[1]; + + if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" )) + { + lmb_sitemap_play( $play_type, $play_id, $play_priority); + } + } } @@ -1351,47 +1284,47 @@ function lmb_sitemap_play_type( $play_type) function lmb_sitemap_page() { - global $lmb_myname; - global $lmb_myver; - global $time_start; + global $lmb_myname; + global $lmb_myver; + global $time_start; - header( 'Content-Type: application/xml'); + header( 'Content-Type: application/xml'); - echo " + echo " -"; + "; - $img_tab = array(); - $size = 220; - $img_tab[0]["url"] = "{$play_path}/images/lm_logo1-border-{$size}.png"; - $img_tab[0]["title"] = "Langueur Monotone - Logo 1 ({$size})"; + $img_tab = array(); + $size = 220; + $img_tab[0]["url"] = "{$play_path}/images/lm_logo1-border-{$size}.png"; + $img_tab[0]["title"] = "Langueur Monotone - Logo 1 ({$size})"; - lmb_sitemap_item( "top", "", $img_tab); + lmb_sitemap_item( "top", "", $img_tab); -// $img_tab = array(); -// lmb_sitemap_item( "page", "?page=rss", $img_tab); + // $img_tab = array(); + // lmb_sitemap_item( "page", "?page=rss", $img_tab); - $img_tab = array(); - $size = 220; - $img_tab[0]["url"] = "{$play_path}/images/lm_logo2-border-{$size}.png"; - $img_tab[0]["title"] = "Langueur Monotone - Logo 2 ({$size})"; + $img_tab = array(); + $size = 220; + $img_tab[0]["url"] = "{$play_path}/images/lm_logo2-border-{$size}.png"; + $img_tab[0]["title"] = "Langueur Monotone - Logo 2 ({$size})"; - lmb_sitemap_item( "page", "?page=about", $img_tab); + lmb_sitemap_item( "page", "?page=about", $img_tab); - $img_tab = array(); - lmb_sitemap_item( "page", "?page=discography", $img_tab); - - lmb_sitemap_play_type( "ep", $img_tab); - lmb_sitemap_play_type( "lp", $img_tab); - lmb_sitemap_play_type( "oldies", $img_tab); + $img_tab = array(); + lmb_sitemap_item( "page", "?page=discography", $img_tab); + + lmb_sitemap_play_type( "ep", $img_tab); + lmb_sitemap_play_type( "lp", $img_tab); + lmb_sitemap_play_type( "oldies", $img_tab); - $time_stop = microtime_float(); - $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; + $time_stop = microtime_float(); + $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " + echo " "; } @@ -1404,15 +1337,15 @@ function lmb_sitemap_page() function lmb_rss_page() { - global $lmb_url_pre; - global $lmb_myname; - global $lmb_myver; - global $time_start; + global $lmb_url_pre; + global $lmb_myname; + global $lmb_myver; + global $time_start; - header( 'Content-Type: application/rss+xml'); + header( 'Content-Type: application/rss+xml'); - echo " + echo " @@ -1425,65 +1358,65 @@ function lmb_rss_page() Langueur Monotone News Page http://{$lmb_url_pre}/ -"; + "; $news_tab = lmb_news_tab_get(); for( $i=0; $i < count($news_tab); $i++) { - $news = lmb_xml_text_format( $news_tab[$i]["news"]); - $pubdate = date("r", strtotime($news_tab[$i]["date"])); + $news = lmb_xml_text_format( $news_tab[$i]["news"]); + $pubdate = date("r", strtotime($news_tab[$i]["date"])); - echo " -"; + echo " + "; - if( "{$news_tab[$i]["name"]}" != "") - { - echo " {$news_tab[$i]["title"]}: {$news_tab[$i]["name"]} -"; - } - else - { - echo " {$news_tab[$i]["title"]} -"; - } + if( "{$news_tab[$i]["name"]}" != "") + { + echo " {$news_tab[$i]["title"]}: {$news_tab[$i]["name"]} + "; + } + else + { + echo " {$news_tab[$i]["title"]} + "; + } - echo " {$pubdate} + echo " {$pubdate} Langueur Monotone http://{$lmb_url_pre}/#$i -"; + "; - if( "{$news_tab[$i]["name"]}" != "") - { - echo " + if( "{$news_tab[$i]["name"]}" != "") + { + echo " {$news_tab[$i]["alink"]}"; - $data = "
{$news_tab[$i]["date"]}: {$news_tab[$i]["title"]}{$news_tab[$i]["name"]}
"; - } - else - { - $data = "
{$news}
"; - } + $data = "
{$news_tab[$i]["date"]}: {$news_tab[$i]["title"]}{$news_tab[$i]["name"]}
"; + } + else + { + $data = "
{$news}
"; + } - echo ' + echo '


'; - echo "{$data}"; - echo '


]]>
-'; - echo "
-"; - } + echo "{$data}"; + echo '


]]> + '; + echo "
+ "; + } echo "
-"; + "; - $time_stop = microtime_float(); - $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; + $time_stop = microtime_float(); + $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " -"; + echo " + "; } @@ -1494,27 +1427,27 @@ function lmb_rss_page() function lmb_about_tab( $skin_path) { - $about_file = "about.txt"; - $about_string = file_get_contents( "{$about_file}"); + $about_file = "about.txt"; + $about_string = file_get_contents( "{$about_file}"); - ob_start(); + ob_start(); - echo " + echo " "; -// echo str_replace( "\n", "
\n ", "{$about_string}"); - echo " ".lmb_html_text_format( "{$about_string}")." + // echo str_replace( "\n", "
\n ", "{$about_string}"); + echo " ".lmb_html_text_format( "{$about_string}")." -"; + "; - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "about", "about", "l", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); - lmb_make_tab( "about", "about", "l", "sprite-lm-logo2-border-220", $data, $skin_path); + // lmb_make_tab( "about", "about", "l", "{$skin_path}/images/lm_logo2-border-220.png", $data, $skin_path); + lmb_make_tab( "about", "about", "l", "sprite-lm-logo2-border-220", $data, $skin_path); } @@ -1525,43 +1458,43 @@ function lmb_about_tab( $skin_path) function lmb_history_tab( $skin_path) { - $history_file = "history.txt"; - $history_string = file_get_contents( "{$history_file}"); - $history_tab = explode( "\n\n", "{$history_string}"); + $history_file = "history.txt"; + $history_string = file_get_contents( "{$history_file}"); + $history_tab = explode( "\n\n", "{$history_string}"); - ob_start(); + ob_start(); - for( $i = 0; $i < count($history_tab); $i++) - { - $history_line = explode( "\n", "{$history_tab[$i]}"); - $css_row = ( $i + 1) % 2 + 1; + for( $i = 0; $i < count($history_tab); $i++) + { + $history_line = explode( "\n", "{$history_tab[$i]}"); + $css_row = ( $i + 1) % 2 + 1; - echo " + echo " {$history_line[0]} {$history_line[1]}
-"; + "; - for( $j = 2; $j < count($history_line); $j++) - { - echo " ".lmb_html_text_format( "{$history_line[$j]}")."
-"; - } + for( $j = 2; $j < count($history_line); $j++) + { + echo " ".lmb_html_text_format( "{$history_line[$j]}")."
+ "; + } - echo "
+ echo "
-"; - } + "; + } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "history", "history", "r", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); - lmb_make_tab( "history", "history", "r", "sprite-lm-logo1-border-220", $data, $skin_path); + // lmb_make_tab( "history", "history", "r", "{$skin_path}/images/lm_logo1-border-220.png", $data, $skin_path); + lmb_make_tab( "history", "history", "r", "sprite-lm-logo1-border-220", $data, $skin_path); } @@ -1572,11 +1505,11 @@ function lmb_history_tab( $skin_path) function lmb_about_body( $lmb_tab, $skin_path) { - lmb_about_tab( $skin_path); + lmb_about_tab( $skin_path); - lmb_spacer(4); + lmb_spacer(4); - lmb_history_tab( $skin_path); + lmb_history_tab( $skin_path); } @@ -1587,14 +1520,14 @@ function lmb_about_body( $lmb_tab, $skin_path) function lmb_about_page() { - global $lmb_tab; + global $lmb_tab; - $skin_path = "/skin"; + $skin_path = "/skin"; - lmb_header( 1, "Langueur Monotone - About Page", "About", "Langueur Monotone about page, describing the project, the members and its history", "about", 0, "{$skin_path}"); - lmb_about_body( $lmb_tab, $skin_path); - lmb_footer( $skin_path); + lmb_header( 1, "Langueur Monotone - About Page", "About", "Langueur Monotone about page, describing the project, the members and its history", "about", 0, "{$skin_path}"); + lmb_about_body( $lmb_tab, $skin_path); + lmb_footer( $skin_path); } @@ -1605,22 +1538,22 @@ function lmb_about_page() function lmb_play_info_get( $play_type, $play_id, $play_priority) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cmd = "sed -e 's/\t*\t/\t/g' {$play_path}/.list"; - $line = array(); - $play_info = array(); + $cmd = "sed -e 's/\t*\t/\t/g' {$play_path}/.list"; + $line = array(); + $play_info = array(); - exec( $cmd, $line); + exec( $cmd, $line); - $tab = explode( "\t", $line[0]); + $tab = explode( "\t", $line[0]); - $play_info["name"] = $tab[0]; - $play_info["month"] = $tab[1]; - $play_info["year"] = $tab[2]; - $play_info["comment"] = $tab[3]; + $play_info["name"] = $tab[0]; + $play_info["month"] = $tab[1]; + $play_info["year"] = $tab[2]; + $play_info["comment"] = $tab[3]; - return($play_info); + return($play_info); } @@ -1631,37 +1564,37 @@ function lmb_play_info_get( $play_type, $play_id, $play_priority) function lmb_playlist_cur( $play_type, $path, $row, $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - $line = array(); - $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'"; + $line = array(); + $cmd = "ls -d {$path}/??-* | sed -e 's/.*\///'"; - exec( $cmd, $line); + exec( $cmd, $line); - for( $i = 0; $i < count($line); $i++, $row++) - { - $play_tab = explode( "-", $line[$i]); - $play_priority = $play_tab[0]; - $play_id = $play_tab[1]; - - if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ) || lmb_admin_is()) + for( $i = 0; $i < count($line); $i++, $row++) { - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - $css_row = ($row+1)%2+1; + $play_tab = explode( "-", $line[$i]); + $play_priority = $play_tab[0]; + $play_id = $play_tab[1]; - $url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; + if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ) || lmb_admin_is()) + { + $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); + $css_row = ($row+1)%2+1; - echo " \"\"/ {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]}  -"; + $url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; + + echo " \"\"/ {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]}  + "; + } + else + { + $row--; + } } - else - { - $row--; - } - } - return( $row); + return( $row); } @@ -1672,38 +1605,38 @@ function lmb_playlist_cur( $play_type, $path, $row, $skin_path) function lmb_playlist_next( $play_type, $path, $row, $skin_path) { - $line = array(); - $cmd = "sed -e 's/\t*\t/\t/g' ${path}/.list"; + $line = array(); + $cmd = "sed -e 's/\t*\t/\t/g' ${path}/.list"; - exec( $cmd, $line); + exec( $cmd, $line); - for( $i = 0; $i < count($line); $i++, $row++) - { - $tab = explode( "\t", $line[$i]); - - if( ( count($tab) > 4 ) && ( "{$tab[4]}" != "")) + for( $i = 0; $i < count($line); $i++, $row++) { - $icon_tag = "\"\"/"; - } - else - { - $icon_tag = "
"; - } + $tab = explode( "\t", $line[$i]); - $css_row = ($row + 1) % 2 + 1; + if( ( count($tab) > 4 ) && ( "{$tab[4]}" != "")) + { + $icon_tag = "\"\"/"; + } + else + { + $icon_tag = "
"; + } - if( count($tab) > 3) - { - $comment = $tab[3]; - } - else - { - $comment = ""; - } + $css_row = ($row + 1) % 2 + 1; - echo " {$icon_tag}{$tab[0]} {$tab[1]} {$tab[2]} {$comment}  -"; - } + if( count($tab) > 3) + { + $comment = $tab[3]; + } + else + { + $comment = ""; + } + + echo " {$icon_tag}{$tab[0]} {$tab[1]} {$tab[2]} {$comment}  + "; + } } @@ -1714,18 +1647,18 @@ function lmb_playlist_next( $play_type, $path, $row, $skin_path) function lmb_playlist( $play_type, $side, $skin_path) { - $row = 1; + $row = 1; - ob_start(); + ob_start(); - $row = lmb_playlist_cur( $play_type, lmb_playtype_path_get( $play_type), $row, $skin_path); - $row = lmb_playlist_next( $play_type, lmb_playtype_path_get( $play_type), $row, $skin_path); + $row = lmb_playlist_cur( $play_type, lmb_playtype_path_get( $play_type), $row, $skin_path); + $row = lmb_playlist_next( $play_type, lmb_playtype_path_get( $play_type), $row, $skin_path); - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "{$play_type}", "play", $side, "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); - lmb_make_tab( "{$play_type}", "play", $side, "sprite-lm-logo1-96", $data, $skin_path); + // lmb_make_tab( "{$play_type}", "play", $side, "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "{$play_type}", "play", $side, "sprite-lm-logo1-96", $data, $skin_path); } @@ -1737,23 +1670,23 @@ function lmb_playlist( $play_type, $side, $skin_path) function lmb_discography_body( $skin_path) { - /* --- EP --- */ + /* --- EP --- */ lmb_playlist( "ep", "l", $skin_path); - lmb_spacer( 5); + lmb_spacer( 5); - /* --- LP --- */ - lmb_playlist( "lp", "r", $skin_path); + /* --- LP --- */ + lmb_playlist( "lp", "r", $skin_path); - lmb_spacer( 5); + lmb_spacer( 5); - /* --- Oldies --- */ - lmb_playlist( "oldies", "l", $skin_path); + /* --- Oldies --- */ + lmb_playlist( "oldies", "l", $skin_path); - lmb_spacer( 5); + lmb_spacer( 5); - /* --- TrackList --- */ - lmb_tracklist_body( $skin_path); + /* --- TrackList --- */ + lmb_tracklist_body( $skin_path); } @@ -1764,14 +1697,14 @@ function lmb_discography_body( $skin_path) function lmb_discography_page() { - global $lmb_tab; + global $lmb_tab; - $skin_path = "/skin"; + $skin_path = "/skin"; - lmb_header( 2, "Langueur Monotone - Discography Page", "Discography", "Langueur Monotone discography page, listing the released and the futures ep, lp and oldies", "discography", 0, "{$skin_path}"); - lmb_discography_body( $skin_path); - lmb_footer( $skin_path); + lmb_header( 2, "Langueur Monotone - Discography Page", "Discography", "Langueur Monotone discography page, listing the released and the futures ep, lp and oldies", "discography", 0, "{$skin_path}"); + lmb_discography_body( $skin_path); + lmb_footer( $skin_path); } @@ -1782,11 +1715,11 @@ function lmb_discography_page() function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; - echo " + echo " @@ -1809,16 +1742,16 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) @@ -1852,15 +1785,15 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) @@ -1874,7 +1807,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path)

-"; + "; - $intro_file = "{$play_path}/.intro"; - $intro_string = file_get_contents( "{$intro_file}"); + $intro_file = "{$play_path}/.intro"; + $intro_string = file_get_contents( "{$intro_file}"); - echo " ".lmb_html_text_format( "{$intro_string}")."
-"; + echo " ".lmb_html_text_format( "{$intro_string}")."
+ "; - echo "
+ echo "

-"; + "; - $hardware_file = "{$play_path}/.hardware"; - $hardware_string = file_get_contents( "{$hardware_file}"); + $hardware_file = "{$play_path}/.hardware"; + $hardware_string = file_get_contents( "{$hardware_file}"); - echo " ".lmb_html_text_format( "{$hardware_string}")."
-"; + echo " ".lmb_html_text_format( "{$hardware_string}")."
+ "; - echo "
+ echo "
-"; + "; } @@ -1885,11 +1818,11 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) function lmb_track_validate( $play_type, $play_id, $play_priority, $track_id) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; - $track_array = glob("{$track_path}/flac/{$track_id}-*.flac"); + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; + $track_array = glob("{$track_path}/flac/{$track_id}-*.flac"); - return( isset($track_array[0]) && file_exists($track_array[0])); + return( isset($track_array[0]) && file_exists($track_array[0])); } @@ -1900,74 +1833,74 @@ function lmb_track_validate( $play_type, $play_id, $play_priority, $track_id) function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; - $track_array = glob("{$track_path}/flac/{$track_id}-*.flac"); - $track_file = $track_array[0]; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; + $track_array = glob("{$track_path}/flac/{$track_id}-*.flac"); + $track_file = $track_array[0]; - $line = array(); - $track_info = array(); + $line = array(); + $track_info = array(); - $track_info["play_type"] = $play_type; - $track_info["play_priority"] = $play_priority; - $track_info["play_id"] = $play_id; + $track_info["play_type"] = $play_type; + $track_info["play_priority"] = $play_priority; + $track_info["play_id"] = $play_id; - if( count($track_array) == 0) - { - $track_info["status"] = 0; - } - else - { - $track_info["status"] = 1; - - - $cmd="eval \$( metaflac --export-tags-to=- \"${track_file}\" | grep -v -e \".* .*=\" -e \".*-.*=\" | sed -e 's/=/=\\\"/' -e 's/$/\"/') - echo -e \"\${TRACKNUMBER}\t\$(basename ${track_file} .flac)\t\${ARTIST}\t\${ALBUM}\t\$(echo \${TITLE} | sed 's/ (.*//')\t\$(echo \${TITLE} | sed -e 's/.* (//' -e 's/)$//')\t\${COMPOSER}\t\${COMMENT}\t\$(metaflac --show-sample-rate \"${track_file}\")\t\$(metaflac --show-total-samples \"${track_file}\")\t\${SAFECREATIVE}\""; - - exec($cmd, $line); - - $tab = explode( "\t", $line[0]); - - $track_info["id"] = $tab[0]; - $track_info["file"] = $tab[1]; - $track_info["artist"] = $tab[2]; - $track_info["album"] = $tab[3]; - $track_info["title"] = $tab[4]; - $track_info["mix"] = $tab[5]; - $track_info["composer"] = $tab[6]; - $track_info["comment"] = $tab[7]; - $track_info["sample_rate"] = $tab[8]; - $track_info["sample_nb"] = $tab[9]; - - if( "{$track_info["title"]}" == "{$track_info["mix"]}") + if( count($track_array) == 0) { - $track_info["mix"]=""; - } - - $total = intval( $track_info["sample_nb"] / $track_info["sample_rate"]); - $min = intval( $total / 60); - $sec = $total - $min * 60; - - $track_info["length"] = sprintf( '%02d\' %02d"', $min, $sec); - $track_info["duration"] = "PT{$min}M{$sec}S"; - $track_info["safe_creative"] = $tab[10]; - - $search_tab = array( "/flac/", ".flac"); - $replace_tab = array( "/mp3-192/", ".mp3"); - - $track_info["url"] = "/".str_replace( $search_tab, $replace_tab, "${track_file}"); - - if( file_exists( "{$play_path}/.hide" )) - { - $track_info["hide"] = "y"; + $track_info["status"] = 0; } else { - $track_info["hide"] = "n"; - } - } + $track_info["status"] = 1; - return( $track_info); + + $cmd="eval \$( metaflac --export-tags-to=- \"${track_file}\" | grep -v -e \".* .*=\" -e \".*-.*=\" | sed -e 's/=/=\\\"/' -e 's/$/\"/') + echo -e \"\${TRACKNUMBER}\t\$(basename ${track_file} .flac)\t\${ARTIST}\t\${ALBUM}\t\$(echo \${TITLE} | sed 's/ (.*//')\t\$(echo \${TITLE} | sed -e 's/.* (//' -e 's/)$//')\t\${COMPOSER}\t\${COMMENT}\t\$(metaflac --show-sample-rate \"${track_file}\")\t\$(metaflac --show-total-samples \"${track_file}\")\t\${SAFECREATIVE}\""; + + exec($cmd, $line); + + $tab = explode( "\t", $line[0]); + + $track_info["id"] = $tab[0]; + $track_info["file"] = $tab[1]; + $track_info["artist"] = $tab[2]; + $track_info["album"] = $tab[3]; + $track_info["title"] = $tab[4]; + $track_info["mix"] = $tab[5]; + $track_info["composer"] = $tab[6]; + $track_info["comment"] = $tab[7]; + $track_info["sample_rate"] = $tab[8]; + $track_info["sample_nb"] = $tab[9]; + + if( "{$track_info["title"]}" == "{$track_info["mix"]}") + { + $track_info["mix"]=""; + } + + $total = intval( $track_info["sample_nb"] / $track_info["sample_rate"]); + $min = intval( $total / 60); + $sec = $total - $min * 60; + + $track_info["length"] = sprintf( '%02d\' %02d"', $min, $sec); + $track_info["duration"] = "PT{$min}M{$sec}S"; + $track_info["safe_creative"] = $tab[10]; + + $search_tab = array( "/flac/", ".flac"); + $replace_tab = array( "/mp3-192/", ".mp3"); + + $track_info["url"] = "/".str_replace( $search_tab, $replace_tab, "${track_file}"); + + if( file_exists( "{$play_path}/.hide" )) + { + $track_info["hide"] = "y"; + } + else + { + $track_info["hide"] = "n"; + } + } + + return( $track_info); } @@ -1978,75 +1911,75 @@ function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id) function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; - $file_type_pat = "{$track_path}/{flac,ogg,mp3,med}*"; - $file_dir_tab = glob( "{$file_type_pat}", GLOB_BRACE); - $file_tag = ""; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; + $file_type_pat = "{$track_path}/{flac,ogg,mp3,med}*"; + $file_dir_tab = glob( "{$file_type_pat}", GLOB_BRACE); + $file_tag = ""; - - foreach( $file_dir_tab as $file_dir) - { - $dir = basename( $file_dir); - $tab = explode( "-", $dir); - $file_type = $tab[0]; - - if( count( $tab) > 1) + + foreach( $file_dir_tab as $file_dir) { - $file_subtype = $tab[1]; + $dir = basename( $file_dir); + $tab = explode( "-", $dir); + $file_type = $tab[0]; + + if( count( $tab) > 1) + { + $file_subtype = $tab[1]; + } + else + { + $file_subtype = ""; + } + + if( "{$track_id}" == "00") + { + $file_pat = "{$track_path}/{$dir}/01-*.{$file_type}"; + } + else + { + $file_pat = "{$track_path}/{$dir}/{$track_id}-*.{$file_type}"; + } + + $file_tab = glob( "{$file_pat}"); + + if( count( $file_tab) > 0) + { + $file_url = $file_tab[0]; + } + else + { + $file_url = ""; + } + + + $file_tag = "{$file_tag}"; + + if( count( glob( "{$file_url}"))) + { + if( "{$track_id}" == "00") + { + $download_url = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=track&ftype={$dir}"; + + $file_size = lmb_download_tracks( $play_type, $play_id, $play_priority, $dir, "SIZE"); + $size_tab = lmb_size_convert( $file_size); + } + else + { + $download_url = "{$file_url}"; + $size_tab = lmb_size_convert( filesize( "{$file_url}")); + } + + $file_tag = "{$file_tag}
(${size_tab["size"]} {$size_tab["unit"]})
"; + } + + $file_tag = "{$file_tag} + "; } - else - { - $file_subtype = ""; - } - - if( "{$track_id}" == "00") - { - $file_pat = "{$track_path}/{$dir}/01-*.{$file_type}"; - } - else - { - $file_pat = "{$track_path}/{$dir}/{$track_id}-*.{$file_type}"; - } - - $file_tab = glob( "{$file_pat}"); - - if( count( $file_tab) > 0) - { - $file_url = $file_tab[0]; - } - else - { - $file_url = ""; - } - - - $file_tag = "{$file_tag}"; - - if( count( glob( "{$file_url}"))) - { - if( "{$track_id}" == "00") - { - $download_url = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=track&ftype={$dir}"; - - $file_size = lmb_download_tracks( $play_type, $play_id, $play_priority, $dir, "SIZE"); - $size_tab = lmb_size_convert( $file_size); - } - else - { - $download_url = "{$file_url}"; - $size_tab = lmb_size_convert( filesize( "{$file_url}")); - } - - $file_tag = "{$file_tag}
(${size_tab["size"]} {$size_tab["unit"]})
"; - } - - $file_tag = "{$file_tag} -"; - } return( "{$file_tag}"); } @@ -2060,26 +1993,26 @@ function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id function lmb_track_loc_get( $track_url) { - $path_tab = explode( "/", $track_url); - $play_tab = explode( "-", $path_tab[2]); - $track_tab = explode( "-", basename( "{$path_tab[5]}", ".flac")); + $path_tab = explode( "/", $track_url); + $play_tab = explode( "-", $path_tab[2]); + $track_tab = explode( "-", basename( "{$path_tab[5]}", ".flac")); - $track_loc["play_type"] = $path_tab[1]; - $track_loc["play_priority"] = $play_tab[0]; - $track_loc["play_id"] = $play_tab[1]; - $track_loc["track_id"] = $track_tab[0]; - $track_loc["track_title"] = $track_tab[1]; + $track_loc["play_type"] = $path_tab[1]; + $track_loc["play_priority"] = $play_tab[0]; + $track_loc["play_id"] = $play_tab[1]; + $track_loc["track_id"] = $track_tab[0]; + $track_loc["track_title"] = $track_tab[1]; - if( isset($track_tab[2])) - { - $track_loc["track_mix"] = $track_tab[2]; - } - else - { - $track_loc["track_mix"] = ""; - } + if( isset($track_tab[2])) + { + $track_loc["track_mix"] = $track_tab[2]; + } + else + { + $track_loc["track_mix"] = ""; + } - return( $track_loc); + return( $track_loc); } @@ -2090,21 +2023,21 @@ function lmb_track_loc_get( $track_url) function lmb_tracklist_info_get( $play_type, $play_id, $play_priority) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; - $track_list = glob( "{$track_path}/flac/*.flac"); + $track_list = glob( "{$track_path}/flac/*.flac"); - $track_list_info = array(); + $track_list_info = array(); - for( $i = 0; $i < count($track_list); $i++) - { - $track_loc = lmb_track_loc_get( "{$track_list[$i]}"); - $track_info_list[$i] = lmb_track_info_get( "{$track_loc["play_type"]}", $track_loc["play_id"], $track_loc["play_priority"], $track_loc["track_id"]); - } + for( $i = 0; $i < count($track_list); $i++) + { + $track_loc = lmb_track_loc_get( "{$track_list[$i]}"); + $track_info_list[$i] = lmb_track_info_get( "{$track_loc["play_type"]}", $track_loc["play_id"], $track_loc["play_priority"], $track_loc["track_id"]); + } - return( $track_info_list); + return( $track_info_list); } @@ -2115,34 +2048,34 @@ function lmb_tracklist_info_get( $play_type, $play_id, $play_priority) function lmb_tracklist_microdata( $play_type, $play_id, $play_priority) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); - $tracks_nb = count($track_list_info); + $tracks_nb = count($track_list_info); - echo "
+ echo "
-"; + "; - for( $i = 0; $i < $tracks_nb; $i++) - { - echo "
+ for( $i = 0; $i < $tracks_nb; $i++) + { + echo "
+ echo "\"/> @@ -2150,11 +2083,11 @@ function lmb_tracklist_microdata( $play_type, $play_id, $play_priority)
-"; - } + "; + } echo "
-"; + "; } @@ -2165,60 +2098,60 @@ function lmb_tracklist_microdata( $play_type, $play_id, $play_priority) function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $track_path = "{$play_path}/tracks"; - $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); - $track_nb = count($track_list_info); + $track_nb = count($track_list_info); - ob_start(); + ob_start(); - $size = $track_nb + 1; - $height = 220/$size; + $size = $track_nb + 1; + $height = 220/$size; - $file_tag = lmb_track_file_tag_get( "{$play_type}", "{$play_id}", "{$play_priority}", "00"); -// $title_tag = " \"\"/"; + $file_tag = lmb_track_file_tag_get( "{$play_type}", "{$play_id}", "{$play_priority}", "00"); + // $title_tag = " \"\"/"; - echo " + echo " -"; + "; - lmb_tracklist_microdata( $play_type, $play_id, $play_priority); + lmb_tracklist_microdata( $play_type, $play_id, $play_priority); - echo "    Full Album including covers  + echo "    Full Album including covers  {$file_tag} -"; + "; - for( $i = 0, $row = 1; $i < $track_nb; $i++, $row++) - { - $track_info = $track_list_info[$i]; + for( $i = 0, $row = 1; $i < $track_nb; $i++, $row++) + { + $track_info = $track_list_info[$i]; - $css_row = ($row+1)%2+1; + $css_row = ($row+1)%2+1; - $track_id = str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT); - $track_url = "{$lmb_url_post}?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; - $file_tag = lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id); + $track_id = str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT); + $track_url = "{$lmb_url_post}?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; + $file_tag = lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id); - echo " "; + echo " "; - echo " {$track_info["id"]}      {$track_info["length"]}  {$track_info["composer"]}  {$track_info["comment"]} {$file_tag} -"; - } + echo " {$track_info["id"]}      {$track_info["length"]}  {$track_info["composer"]}  {$track_info["comment"]} {$file_tag} + "; + } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); - lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo1-96", $data, $skin_path); + // lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo1-96", $data, $skin_path); } @@ -2229,11 +2162,11 @@ function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path) function lmb_file_entry_print( $file_tab, $format_css_id, $size_css_id, $entry_tag, $max_nb) { - echo "{$entry_tag}"; + echo "{$entry_tag}"; - foreach( $file_tab as $file) - { - echo " + foreach( $file_tab as $file) + { + echo " @@ -2241,12 +2174,12 @@ function lmb_file_entry_print( $file_tab, $format_css_id, $size_css_id, $entry_t
-"; - } + "; + } -for( $i = count( $file_tab); $i < $max_nb; $i++) - { - echo " + for( $i = count( $file_tab); $i < $max_nb; $i++) + { + echo " @@ -2254,11 +2187,11 @@ for( $i = count( $file_tab); $i < $max_nb; $i++)
-"; - } + "; + } - echo " -"; + echo " + "; } @@ -2269,48 +2202,48 @@ for( $i = count( $file_tab); $i < $max_nb; $i++) function lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $cover_id, $mode) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers"; - $cmd = "ls {$cover_path}/{$play_id}-cover-1-*.png | sed -e 's/.*-//' -e 's/.png$//' | sort -rn"; - exec( $cmd, $cover_format_tab); + $cmd = "ls {$cover_path}/{$play_id}-cover-1-*.png | sed -e 's/.*-//' -e 's/.png$//' | sort -rn"; + exec( $cmd, $cover_format_tab); - $file_tab = array(); - $file_tag = ""; - - for( $i = 0; $i < count($cover_format_tab); $i++) - { - $cover_format = "{$cover_format_tab[$i]}"; - - if( "{$cover_format}" != "icon") + $file_tab = array(); + $file_tag = ""; + + for( $i = 0; $i < count($cover_format_tab); $i++) { - $file_url = "{$cover_path}/{$play_id}-cover-{$cover_id}-{$cover_format}.png"; - $file_tag = "{$file_tag}"; + $cover_format = "{$cover_format_tab[$i]}"; - if( count( glob( "{$file_url}"))) - { - if( $mode == "MULTI") + if( "{$cover_format}" != "icon") { - $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=cover&cformat={$cover_format}"; + $file_url = "{$cover_path}/{$play_id}-cover-{$cover_id}-{$cover_format}.png"; + $file_tag = "{$file_tag}"; - $file_size = lmb_download_covers( $play_type, $play_id, $play_priority, $cover_format, "SIZE"); - $size_tab = lmb_size_convert( $file_size); - } - else - { - $file_tab[$i]["url"] = "{$file_url}"; - $size_tab = lmb_size_convert( filesize( "{$file_url}")); - } + if( count( glob( "{$file_url}"))) + { + if( $mode == "MULTI") + { + $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=cover&cformat={$cover_format}"; - $file_tab[$i]["format"] = "{$cover_format}"; - $file_tab[$i]["size"] = "{$size_tab["size"]}"; - $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; - } + $file_size = lmb_download_covers( $play_type, $play_id, $play_priority, $cover_format, "SIZE"); + $size_tab = lmb_size_convert( $file_size); + } + else + { + $file_tab[$i]["url"] = "{$file_url}"; + $size_tab = lmb_size_convert( filesize( "{$file_url}")); + } + + $file_tab[$i]["format"] = "{$cover_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } + } } - } return( $file_tab); } @@ -2323,67 +2256,67 @@ function lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $cover_id function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; - ob_start(); + ob_start(); - $cmd="ls {$cover_path}-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*-//'"; - exec($cmd, $sheet_tab); + $cmd="ls {$cover_path}-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*-//'"; + exec($cmd, $sheet_tab); - $size=count($sheet_tab) + 1; -// $height=220/$size; -// $height=110; - $height = max( 110, ( ( 220 - 30) / count($sheet_tab))); + $size=count($sheet_tab) + 1; + // $height=220/$size; + // $height=110; + $height = max( 110, ( ( 220 - 30) / count($sheet_tab))); - $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, "*", "MULTI"); + $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, "*", "MULTI"); - $entry_tag = " + $entry_tag = "   All the Covers  -"; - - lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); - - for( $i = 0; $i < count($sheet_tab); $i++) - { - if( $i == 0) - { - $sheet_name="Front"; - } - else - { - if( $i == 1) - { - $sheet_name="Back"; - } - else - { - $sheet_name=$i-1; - } - } - - /* Cover Entry */ - - $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $i+1, "MONO"); - - $css_row = $i % 2 + 1; - - $entry_tag = " - \"\"/ -  {$sheet_name} "; + "; lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); - } + for( $i = 0; $i < count($sheet_tab); $i++) + { + if( $i == 0) + { + $sheet_name="Front"; + } + else + { + if( $i == 1) + { + $sheet_name="Back"; + } + else + { + $sheet_name=$i-1; + } + } + + /* Cover Entry */ + + $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $i+1, "MONO"); + + $css_row = $i % 2 + 1; + + $entry_tag = " + \"\"/ +  {$sheet_name} "; + + lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); + + } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); - lmb_make_tab( "covers", "covers", "l", "/{$logo_path}-2-128.png", $data, $skin_path); + lmb_make_tab( "covers", "covers", "l", "/{$logo_path}-2-128.png", $data, $skin_path); } @@ -2394,45 +2327,45 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) function lmb_video_file_tab_get( $play_type, $play_id, $play_priority, $video_id, $video_codec, $mode) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $video_path = "{$play_path}/videos"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $video_path = "{$play_path}/videos"; - $cmd = "ls {$video_path}/{$video_id}* | sed -e 's/.*-//' -e 's/\..*$//' | grep -v icon | grep -v poster | sort -rnu"; - exec( $cmd, $video_format_tab); + $cmd = "ls {$video_path}/{$video_id}* | sed -e 's/.*-//' -e 's/\..*$//' | grep -v icon | grep -v poster | sort -rnu"; + exec( $cmd, $video_format_tab); - $file_tab = array(); + $file_tab = array(); - for( $i = 0; $i < count($video_format_tab); $i++) - { - $video_format = "{$video_format_tab[$i]}"; - $file_url = "{$video_path}/{$video_id}-{$video_format}.{$video_codec}"; - - - if( count( glob( "{$file_url}"))) + for( $i = 0; $i < count($video_format_tab); $i++) { - if( $mode == "MULTI") - { - $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=video&vformat={$video_format}.{$video_codec}"; + $video_format = "{$video_format_tab[$i]}"; + $file_url = "{$video_path}/{$video_id}-{$video_format}.{$video_codec}"; - $file_size = lmb_download_videos( $play_type, $play_id, $play_priority, "{$video_format}.{$video_codec}", "SIZE"); - $size_tab = lmb_size_convert( $file_size); - } - else - { - $file_tab[$i]["url"] = "{$file_url}"; - $size_tab = lmb_size_convert( filesize( "{$file_tab[$i]["url"]}")); - } - $file_tab[$i]["format"] = "{$video_format}"; - $file_tab[$i]["size"] = "{$size_tab["size"]}"; - $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + if( count( glob( "{$file_url}"))) + { + if( $mode == "MULTI") + { + $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=video&vformat={$video_format}.{$video_codec}"; + + $file_size = lmb_download_videos( $play_type, $play_id, $play_priority, "{$video_format}.{$video_codec}", "SIZE"); + $size_tab = lmb_size_convert( $file_size); + } + else + { + $file_tab[$i]["url"] = "{$file_url}"; + $size_tab = lmb_size_convert( filesize( "{$file_tab[$i]["url"]}")); + } + + $file_tab[$i]["format"] = "{$video_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } } - } - return( $file_tab); + return( $file_tab); } @@ -2443,45 +2376,45 @@ function lmb_video_file_tab_get( $play_type, $play_id, $play_priority, $video_id function lmb_video_file_tab_get2( $play_type, $play_id, $play_priority, $video_id, $video_codec, $mode) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $video_path = "{$play_path}/videos"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $video_path = "{$play_path}/videos"; - $cmd = "ls {$video_path}/{$video_id}* | sed -e 's/.*-//' | grep -v icon | grep -v poster | sort -rn"; - exec( $cmd, $video_format_tab); + $cmd = "ls {$video_path}/{$video_id}* | sed -e 's/.*-//' | grep -v icon | grep -v poster | sort -rn"; + exec( $cmd, $video_format_tab); - $file_tab = array(); + $file_tab = array(); - for( $i = 0; $i < count($video_format_tab); $i++) - { - $video_format = "{$video_format_tab[$i]}"; - $file_url = "{$video_path}/{$video_id}-{$video_format}"; - - - if( count( glob( "{$file_url}"))) + for( $i = 0; $i < count($video_format_tab); $i++) { - if( $mode == "MULTI") - { - $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=video&vformat={$video_format}"; + $video_format = "{$video_format_tab[$i]}"; + $file_url = "{$video_path}/{$video_id}-{$video_format}"; - $file_size = lmb_download_videos( $play_type, $play_id, $play_priority, $video_format, "SIZE"); - $size_tab = lmb_size_convert( $file_size); - } - else - { - $file_tab[$i]["url"] = "{$file_url}"; - $size_tab = lmb_size_convert( filesize( "{$file_tab[$i]["url"]}")); - } - $file_tab[$i]["format"] = "{$video_format}"; - $file_tab[$i]["size"] = "{$size_tab["size"]}"; - $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + if( count( glob( "{$file_url}"))) + { + if( $mode == "MULTI") + { + $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=video&vformat={$video_format}"; + + $file_size = lmb_download_videos( $play_type, $play_id, $play_priority, $video_format, "SIZE"); + $size_tab = lmb_size_convert( $file_size); + } + else + { + $file_tab[$i]["url"] = "{$file_url}"; + $size_tab = lmb_size_convert( filesize( "{$file_tab[$i]["url"]}")); + } + + $file_tab[$i]["format"] = "{$video_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } } - } - return( $file_tab); + return( $file_tab); } @@ -2492,93 +2425,93 @@ function lmb_video_file_tab_get2( $play_type, $play_id, $play_priority, $video_i function lmb_videolist( $play_type, $play_id, $play_priority, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $video_path = "{$play_path}/videos"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $video_path = "{$play_path}/videos"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; - ob_start(); + ob_start(); - $cmd="ls {$video_path}/* | sed -e 's/.*\.//' | grep -v \"png\" | sort -u"; - exec($cmd, $codec_tab); + $cmd="ls {$video_path}/* | sed -e 's/.*\.//' | grep -v \"png\" | sort -u"; + exec($cmd, $codec_tab); - if( count( $codec_tab) == 0 || ( file_exists( "{$video_path}/.hide" ) && ! lmb_admin_is())) - { - echo "    + if( count( $codec_tab) == 0 || ( file_exists( "{$video_path}/.hide" ) && ! lmb_admin_is())) + { + echo "   
 No video found...     -"; - } - else - { - $codec_nb = count( $codec_tab); - $title_tag = "   All the Videos  -"; - - $file_tab = array(); - $max_file_nb = 0; - - foreach( $codec_tab as $codec) - { - $file_tab[ $codec] = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "*", "{$codec}", "MULTI"); - $max_file_nb = max( $max_file_nb, count( $file_tab[ $codec])); + "; } - - foreach( $codec_tab as $codec) + else { - $entry_tag = " + $codec_nb = count( $codec_tab); + $title_tag = "   All the Videos  + "; + + $file_tab = array(); + $max_file_nb = 0; + + foreach( $codec_tab as $codec) + { + $file_tab[ $codec] = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "*", "{$codec}", "MULTI"); + $max_file_nb = max( $max_file_nb, count( $file_tab[ $codec])); + } + + foreach( $codec_tab as $codec) + { + $entry_tag = " ${title_tag}    {$codec}  -"; + "; - lmb_file_entry_print( $file_tab[ $codec], "videos5", "videos6", "{$entry_tag}", $max_file_nb); + lmb_file_entry_print( $file_tab[ $codec], "videos5", "videos6", "{$entry_tag}", $max_file_nb); - $title_tag = ""; - } + $title_tag = ""; + } - $cmd="ls {$video_path}/* | grep -v -- -icon | grep -v -- -poster | sed -e 's/-[0-9][0-9]*p//' -e 's/.*\///' | sort -u"; - exec($cmd, $video_tab); + $cmd="ls {$video_path}/* | grep -v -- -icon | grep -v -- -poster | sed -e 's/-[0-9][0-9]*p//' -e 's/.*\///' | sort -u"; + exec($cmd, $video_tab); - $height = max( 86, ( ( 220 - 30 * $codec_nb) / count($video_tab))); + $height = max( 86, ( ( 220 - 30 * $codec_nb) / count($video_tab))); - for( $i = 0; $i < count($video_tab); $i++) - { - $tab = explode( ".", "{$video_tab[$i]}"); - $video_id = "{$tab[0]}"; - $video_codec = "{$tab[1]}"; + for( $i = 0; $i < count($video_tab); $i++) + { + $tab = explode( ".", "{$video_tab[$i]}"); + $video_id = "{$tab[0]}"; + $video_codec = "{$tab[1]}"; - $tab = explode( "-", "{$video_id}"); + $tab = explode( "-", "{$video_id}"); - $video_subid = "{$tab[0]}"; - $video_track = "{$tab[1]}"; - $video_mix = "{$tab[2]}"; + $video_subid = "{$tab[0]}"; + $video_track = "{$tab[1]}"; + $video_mix = "{$tab[2]}"; - $video_track_name = ucwords( str_replace( "_", " ", "{$video_track}")); - $video_mix_name = ucwords( str_replace( "_", " ", "{$video_mix}")); + $video_track_name = ucwords( str_replace( "_", " ", "{$video_track}")); + $video_mix_name = ucwords( str_replace( "_", " ", "{$video_mix}")); - /* Video Entry */ + /* Video Entry */ - $file_tab = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "{$video_id}", "{$video_codec}", "MONO"); + $file_tab = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "{$video_id}", "{$video_codec}", "MONO"); - $css_row = $i % 2 + 1; + $css_row = $i % 2 + 1; - $entry_tag = " + $entry_tag = " \"\"/  {$video_subid}   {$video_track_name}   {$video_mix_name}   {$video_codec}  -"; + "; - lmb_file_entry_print( $file_tab, "videos5", "videos6", "{$entry_tag}", $max_file_nb); + lmb_file_entry_print( $file_tab, "videos5", "videos6", "{$entry_tag}", $max_file_nb); + } } - } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); - lmb_make_tab( "videos", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path); + lmb_make_tab( "videos", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path); } @@ -2589,50 +2522,50 @@ ${title_tag} &nbs function lmb_extra_file_tab_get( $play_type, $play_id, $play_priority, $extra_id, $mode) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $extra_path = "{$play_path}/extras"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $extra_path = "{$play_path}/extras"; - $cmd = "ls {$extra_path}/{$play_id}-{$extra_id}-*.png | sed -e 's/.*-//' -e 's/.png$//' | sort -nu"; - exec( $cmd, $extra_format_tab); + $cmd = "ls {$extra_path}/{$play_id}-{$extra_id}-*.png | sed -e 's/.*-//' -e 's/.png$//' | sort -nu"; + exec( $cmd, $extra_format_tab); - $file_tab = array(); - $file_tag = ""; - - for( $i = 0; $i < count($extra_format_tab); $i++) - { - $extra_format = "{$extra_format_tab[$i]}"; - - if( "{$extra_format}" != "icon") + $file_tab = array(); + $file_tag = ""; + + for( $i = 0; $i < count($extra_format_tab); $i++) { - $file_url = "{$extra_path}/{$play_id}-{$extra_id}-{$extra_format}.png"; -// $file_tag = "{$file_tag}"; -// echo ("EI: {$extra_id} FMT: {$extra_format} FU: $file_url\n"); - if( count( glob( "{$file_url}"))) - { - if( $mode == "MULTI") - { - $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=extra&eformat={$extra_id}-{$extra_format}"; + $extra_format = "{$extra_format_tab[$i]}"; - $file_size = lmb_download_extras( $play_type, $play_id, $play_priority, $extra_format, "SIZE"); - $size_tab = lmb_size_convert( $file_size); - } - else + if( "{$extra_format}" != "icon") { - $file_tab[$i]["url"] = "{$file_url}"; - $size_tab = lmb_size_convert( filesize( "{$file_url}")); - } + $file_url = "{$extra_path}/{$play_id}-{$extra_id}-{$extra_format}.png"; + // $file_tag = "{$file_tag}"; + // echo ("EI: {$extra_id} FMT: {$extra_format} FU: $file_url\n"); + if( count( glob( "{$file_url}"))) + { + if( $mode == "MULTI") + { + $file_tab[$i]["url"] = "{$lmb_url_post}?page=download&type={$play_type}&id={$play_id}&priority={$play_priority}&dtype=extra&eformat={$extra_id}-{$extra_format}"; - $file_tab[$i]["format"] = "{$extra_format}"; - $file_tab[$i]["size"] = "{$size_tab["size"]}"; - $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; - } + $file_size = lmb_download_extras( $play_type, $play_id, $play_priority, $extra_format, "SIZE"); + $size_tab = lmb_size_convert( $file_size); + } + else + { + $file_tab[$i]["url"] = "{$file_url}"; + $size_tab = lmb_size_convert( filesize( "{$file_url}")); + } + + $file_tab[$i]["format"] = "{$extra_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } + } } - } - return( $file_tab); + return( $file_tab); } @@ -2643,87 +2576,87 @@ function lmb_extra_file_tab_get( $play_type, $play_id, $play_priority, $extra_id function lmb_extralist( $play_type, $play_id, $play_priority, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $extra_path = "{$play_path}/extras"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $extra_path = "{$play_path}/extras"; - ob_start(); + ob_start(); - $cmd="ls {$extra_path}/{$play_id}-*-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*{$play_id}-.*-//' | sort -u"; - exec($cmd, $format_tab); + $cmd="ls {$extra_path}/{$play_id}-*-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*{$play_id}-.*-//' | sort -u"; + exec($cmd, $format_tab); - if( count($format_tab) == 0 || ( file_exists( "{$extra_path}/.hide" ) && ! lmb_admin_is())) - { - echo "    + if( count($format_tab) == 0 || ( file_exists( "{$extra_path}/.hide" ) && ! lmb_admin_is())) + { + echo "   
 No extra found...     -"; - } - else - { - $format_nb = count($format_tab); - $title_tag = "   All the Extras  -"; - - $file_tab = array(); - $max_file_nb = 0; - - foreach( $format_tab as $format) - { - $file_tab[ $format] = lmb_extra_file_tab_get( $play_type, $play_id, $play_priority, "*-{$format}", "MULTI"); - $max_file_nb = max( $max_file_nb, count( $file_tab[ $format])); + "; } - - foreach( $format_tab as $format) + else { - $extra_format = str_replace( "_", "/", "{$format}"); + $format_nb = count($format_tab); + $title_tag = "   All the Extras  + "; - $entry_tag = " + $file_tab = array(); + $max_file_nb = 0; + + foreach( $format_tab as $format) + { + $file_tab[ $format] = lmb_extra_file_tab_get( $play_type, $play_id, $play_priority, "*-{$format}", "MULTI"); + $max_file_nb = max( $max_file_nb, count( $file_tab[ $format])); + } + + foreach( $format_tab as $format) + { + $extra_format = str_replace( "_", "/", "{$format}"); + + $entry_tag = " ${title_tag}  {$extra_format}  -"; + "; - lmb_file_entry_print( $file_tab[ $format], "extras5", "extras6", "{$entry_tag}", $max_file_nb); + lmb_file_entry_print( $file_tab[ $format], "extras5", "extras6", "{$entry_tag}", $max_file_nb); - $title_tag = ""; - } + $title_tag = ""; + } - $cmd="ls {$extra_path}/{$play_id}-*-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*{$play_id}-//' | sort "; - exec($cmd, $extra_tab); + $cmd="ls {$extra_path}/{$play_id}-*-*-icon.png | sed -e 's/-icon.png$//' -e 's/.*{$play_id}-//' | sort "; + exec($cmd, $extra_tab); - $height = max( 86, ( ( 220 - 30 * $format_nb) / count($extra_tab))); + $height = max( 86, ( ( 220 - 30 * $format_nb) / count($extra_tab))); - for( $i = 0; $i < count($extra_tab); $i++) - { - $tab = explode( "-", $extra_tab[$i]); - $extra_type = ucwords( $tab[0]); - $extra_subid = $tab[1]; - $extra_format = str_replace( "_", "/", $tab[2]); - $extra_id = "{$tab[0]}-{$tab[1]}-{$tab[2]}"; - $extra_prefix = "{$extra_path}/{$play_id}-{$extra_id}"; - - /* Extra Entry */ + for( $i = 0; $i < count($extra_tab); $i++) + { + $tab = explode( "-", $extra_tab[$i]); + $extra_type = ucwords( $tab[0]); + $extra_subid = $tab[1]; + $extra_format = str_replace( "_", "/", $tab[2]); + $extra_id = "{$tab[0]}-{$tab[1]}-{$tab[2]}"; + $extra_prefix = "{$extra_path}/{$play_id}-{$extra_id}"; + + /* Extra Entry */ - $file_tab = lmb_extra_file_tab_get( "{$play_type}", "{$play_id}", "{$play_priority}", "{$extra_id}", "MONO"); + $file_tab = lmb_extra_file_tab_get( "{$play_type}", "{$play_id}", "{$play_priority}", "{$extra_id}", "MONO"); - $css_row = $i % 2 + 1; + $css_row = $i % 2 + 1; - $entry_tag = " + $entry_tag = " \"\"/  {$extra_type}   {$extra_subid}   {$extra_format}  -"; + "; - lmb_file_entry_print( $file_tab, "extras5", "extras6", "{$entry_tag}", $max_file_nb); + lmb_file_entry_print( $file_tab, "extras5", "extras6", "{$entry_tag}", $max_file_nb); + } } - } - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); -// lmb_make_tab( "extras", "extras", "l", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); - lmb_make_tab( "extras", "extras", "l", "sprite-lm-logo1-96", $data, $skin_path); + // lmb_make_tab( "extras", "extras", "l", "{$skin_path}/images/lm_logo1-96.png", $data, $skin_path); + lmb_make_tab( "extras", "extras", "l", "sprite-lm-logo1-96", $data, $skin_path); } @@ -2734,58 +2667,58 @@ ${title_tag} &nbs function lmb_links_tab( $play_type, $play_id, $play_priority) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $global_links_file = ".links"; - $local_links_file = "{$play_path}/.links"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $global_links_file = ".links"; + $local_links_file = "{$play_path}/.links"; - $line = array(); - $cmd = "cat ${local_links_file} ${global_links_file} | sed -e 's/\t*\t/\t/g'"; + $line = array(); + $cmd = "cat ${local_links_file} ${global_links_file} | sed -e 's/\t*\t/\t/g'"; - exec( $cmd, $line); + exec( $cmd, $line); - echo " + echo "
-"; + "; - for( $i = 0; $i < count($line); $i++) - { - $tab = explode( "\t", $line[$i]); - $css_row = ( $i + 1) % 2 + 1; - - $text = lmb_html_text_format( "{$tab[0]}"); - $link = htmlentities( "{$tab[1]}"); - $image = "{$tab[2]}"; - - if( count( $tab) > 3) + for( $i = 0; $i < count($line); $i++) { - $flag = "{$tab[3]}"; - } - else - { - $flag = ""; - } + $tab = explode( "\t", $line[$i]); + $css_row = ( $i + 1) % 2 + 1; - if( $flag == "nf") - { - $attr = "rel=\"nofollow\" "; - } - else - { - $attr = ""; - } + $text = lmb_html_text_format( "{$tab[0]}"); + $link = htmlentities( "{$tab[1]}"); + $image = "{$tab[2]}"; - if( $image[0] == "/") - { - $image_tag = "\"\"/"; - } - else - { - $image_tag = "
"; - } + if( count( $tab) > 3) + { + $flag = "{$tab[3]}"; + } + else + { + $flag = ""; + } + + if( $flag == "nf") + { + $attr = "rel=\"nofollow\" "; + } + else + { + $attr = ""; + } + + if( $image[0] == "/") + { + $image_tag = "\"\"/"; + } + else + { + $image_tag = "
"; + } - echo " + echo " @@ -2793,15 +2726,15 @@ function lmb_links_tab( $play_type, $play_id, $play_priority) -"; - } + "; + } - echo " + echo "
Links
-"; + "; } @@ -2812,10 +2745,10 @@ function lmb_links_tab( $play_type, $play_id, $play_priority) function lmb_play_last( $play_type, $play_id, $play_priority, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - echo " + echo " @@ -2828,33 +2761,33 @@ function lmb_play_last( $play_type, $play_id, $play_priority, $skin_path) + echo "
-"; + "; - $thanks_file = "{$play_path}/.thanks"; - $thanks_string = file_get_contents( "{$thanks_file}"); + $thanks_file = "{$play_path}/.thanks"; + $thanks_string = file_get_contents( "{$thanks_file}"); - echo " ".lmb_html_text_format( "{$thanks_string}")."
-"; + echo " ".lmb_html_text_format( "{$thanks_string}")."
+ "; - echo "
-"; + "; - lmb_links_tab( $play_type, $play_id, $play_priority); + lmb_links_tab( $play_type, $play_id, $play_priority); - echo " + echo " -"; + "; } @@ -2866,34 +2799,34 @@ function lmb_play_last( $play_type, $play_id, $play_priority, $skin_path) function lmb_play_body( $play_type, $play_id, $play_priority, $skin_path) { - /* --- Introduction --- */ + /* --- Introduction --- */ lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path); - lmb_spacer(4); + lmb_spacer(4); - /* --- Tracks --- */ - lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path); -// lmb_tracklist_microdata( $play_type, $play_id, $play_priority); + /* --- Tracks --- */ + lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path); + // lmb_tracklist_microdata( $play_type, $play_id, $play_priority); - lmb_spacer(5); + lmb_spacer(5); - /* --- Covers --- */ - lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path); + /* --- Covers --- */ + lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path); - lmb_spacer(5); + lmb_spacer(5); - /* --- Videos --- */ - lmb_videolist( $play_type, $play_id, $play_priority, $skin_path); + /* --- Videos --- */ + lmb_videolist( $play_type, $play_id, $play_priority, $skin_path); - lmb_spacer(5); + lmb_spacer(5); - /* --- Etras --- */ - lmb_extralist( $play_type, $play_id, $play_priority, $skin_path); + /* --- Etras --- */ + lmb_extralist( $play_type, $play_id, $play_priority, $skin_path); - lmb_spacer(4); + lmb_spacer(4); - /* --- Last --- */ - lmb_play_last( $play_type, $play_id, $play_priority, $skin_path); + /* --- Last --- */ + lmb_play_last( $play_type, $play_id, $play_priority, $skin_path); } @@ -2904,23 +2837,23 @@ function lmb_play_body( $play_type, $play_id, $play_priority, $skin_path) function lmb_play_type_name_get( $play_type_id) { - switch( "{$play_type_id}") - { - case "ep": + switch( "{$play_type_id}") { - return( "EP"); - } + case "ep": + { + return( "EP"); + } - case "lp": - { - return( "LP"); - } + case "lp": + { + return( "LP"); + } - case "oldies": - { - return( "Oldies"); + case "oldies": + { + return( "Oldies"); + } } - } } @@ -2931,9 +2864,9 @@ function lmb_play_type_name_get( $play_type_id) function lmb_play_name_get( $play_type, $play_id, $play_priority) { - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); + $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - return( "{$play_info["name"]}"); + return( "{$play_info["name"]}"); } @@ -2944,10 +2877,10 @@ function lmb_play_name_get( $play_type, $play_id, $play_priority) function lmb_play_title_get( $play_type, $play_id, $play_priority) { - $play_name = lmb_play_name_get( $play_type, $play_id, $play_priority); - $play_type_name = lmb_play_type_name_get( $play_type); + $play_name = lmb_play_name_get( $play_type, $play_id, $play_priority); + $play_type_name = lmb_play_type_name_get( $play_type); - return( "{$play_name} - {$play_type_name}"); + return( "{$play_name} - {$play_type_name}"); } @@ -2958,29 +2891,29 @@ function lmb_play_title_get( $play_type, $play_id, $play_priority) function lmb_play_page( $play_type, $play_id, $play_priority) { - global $lmb_tab; + global $lmb_tab; - $play_path = lmb_play_path_get( $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)) + { - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority); - $play_image = "{$play_type}"; - $play_name = lmb_play_type_name_get( $play_type); - $skin_path = "{$play_path}/skin"; + $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); + $play_title = lmb_play_title_get( $play_type, $play_id, $play_priority); + $play_image = "{$play_type}"; + $play_name = lmb_play_type_name_get( $play_type); + $skin_path = "{$play_path}/skin"; - lmb_header( 3, "Langueur Monotone - {$play_title} Page", "{$play_title}", "Langueur Monotone play page, giving all the information about {$play_info["name"]} {$play_name}", "{$play_type},{$play_info["name"]}", 0, "{$skin_path}"); - lmb_play_body( $play_type, $play_id, $play_priority, $skin_path); - lmb_footer( $skin_path); - } - else - { - lmb_redirect_page( ""); - } + lmb_header( 3, "Langueur Monotone - {$play_title} Page", "{$play_title}", "Langueur Monotone play page, giving all the information about {$play_info["name"]} {$play_name}", "{$play_type},{$play_info["name"]}", 0, "{$skin_path}"); + lmb_play_body( $play_type, $play_id, $play_priority, $skin_path); + lmb_footer( $skin_path); + } + else + { + lmb_redirect_page( ""); + } } @@ -2991,69 +2924,69 @@ function lmb_play_page( $play_type, $play_id, $play_priority) function lmb_tracklist_body( $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - $play_type = "*"; - $play_id = "*"; - $play_priority = "*"; + $play_type = "*"; + $play_id = "*"; + $play_priority = "*"; - $track_info_list = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + $track_info_list = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); - usort( $track_info_list, lmb_make_comparer( 'title', 'mix')); + usort( $track_info_list, lmb_make_comparer( 'title', 'mix')); - $track_nb = count($track_info_list); + $track_nb = count($track_info_list); - ob_start(); + ob_start(); - $size = $track_nb + 1; - $height = 220/$size; + $size = $track_nb + 1; + $height = 220/$size; - for( $i = 0, $row = 1; $i < $track_nb; $i++) - { - $css_row = ($row+1)%2+1; - - $play_type = "{$track_info_list[$i]["play_type"]}"; - $play_type_name = lmb_play_type_name_get( $play_type); - $play_id = "{$track_info_list[$i]["play_id"]}"; - $play_priority = "{$track_info_list[$i]["play_priority"]}"; - $track_id = str_pad( "{$track_info_list[$i]["id"]}", 2, '0', STR_PAD_LEFT); - $track_title = "{$track_info_list[$i]["title"]}"; - $track_mix = "{$track_info_list[$i]["mix"]}"; - $track_length = "{$track_info_list[$i]["length"]}"; - $track_album = "{$track_info_list[$i]["album"]}"; - $track_hide = "{$track_info_list[$i]["hide"]}"; - - $play_url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; - $track_url = "{$lmb_url_post}?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; - - $path = lmb_playtype_path_get( $play_type); - - if( "{$track_hide}" == "y") + for( $i = 0, $row = 1; $i < $track_nb; $i++) { - $hide_flag="*"; - } - else - { - $hide_flag=""; + $css_row = ($row+1)%2+1; + + $play_type = "{$track_info_list[$i]["play_type"]}"; + $play_type_name = lmb_play_type_name_get( $play_type); + $play_id = "{$track_info_list[$i]["play_id"]}"; + $play_priority = "{$track_info_list[$i]["play_priority"]}"; + $track_id = str_pad( "{$track_info_list[$i]["id"]}", 2, '0', STR_PAD_LEFT); + $track_title = "{$track_info_list[$i]["title"]}"; + $track_mix = "{$track_info_list[$i]["mix"]}"; + $track_length = "{$track_info_list[$i]["length"]}"; + $track_album = "{$track_info_list[$i]["album"]}"; + $track_hide = "{$track_info_list[$i]["hide"]}"; + + $play_url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_id}&priority={$play_priority}"; + $track_url = "{$lmb_url_post}?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; + + $path = lmb_playtype_path_get( $play_type); + + if( "{$track_hide}" == "y") + { + $hide_flag="*"; + } + else + { + $hide_flag=""; + } + + if( ( "{$track_hide}" == "n") || lmb_admin_is()) + { + + echo " "; + + echo " {$row}      {$track_length}  {$play_type_name}    + "; + $row++; + } } - if( ( "{$track_hide}" == "n") || lmb_admin_is()) - { + $data = ob_get_contents(); + ob_end_clean(); - echo " "; - - echo " {$row}      {$track_length}  {$play_type_name}    -"; - $row++; - } - } - - $data = ob_get_contents(); - ob_end_clean(); - -// lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo2-96.png", $data, $skin_path); - lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo2-96", $data, $skin_path); + // lmb_make_tab( "tracks", "tracks", "r", "{$skin_path}/images/lm_logo2-96.png", $data, $skin_path); + lmb_make_tab( "tracks", "tracks", "r", "sprite-lm-logo2-96", $data, $skin_path); } @@ -3064,11 +2997,11 @@ function lmb_tracklist_body( $skin_path) function lmb_tracklist_page() { - $skin_path = "/skin"; + $skin_path = "/skin"; - lmb_header( 3, "/", "Langueur Monotone - Track List Page", "Track List", "Langueur Monotone track list page, listing all the released tracks", "track list", 0, "{$skin_path}"); - lmb_tracklist_body( $skin_path); - lmb_footer( $skin_path); + lmb_header( 3, "/", "Langueur Monotone - Track List Page", "Track List", "Langueur Monotone track list page, listing all the released tracks", "track list", 0, "{$skin_path}"); + lmb_tracklist_body( $skin_path); + lmb_footer( $skin_path); } @@ -3079,36 +3012,36 @@ function lmb_tracklist_page() function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) { - global $lmb_url_post; + global $lmb_url_post; - $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); - $height=220/8; + $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); + $height=220/8; - if ($track_info["safe_creative"] != "") - { - $rowspan = 9; - } - else - { - $rowspan = 8; - } + if ($track_info["safe_creative"] != "") + { + $rowspan = 9; + } + else + { + $rowspan = 8; + } -/* - echo "
- -
- - - - - -
-
-"; -*/ + /* + echo "
+ +
+ + + + + +
+
+ "; + */ - echo " + echo "
-"; + "; - if ($track_info["safe_creative"] != "") - { - echo " + if ($track_info["safe_creative"] != "") + { + echo " -"; - } + "; + } - echo " + echo "
@@ -3146,24 +3079,24 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) Length
{$track_info["length"]}
Safe Creative
-"; + "; } @@ -3174,38 +3107,38 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; - $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $track_path = "{$play_path}/tracks"; + $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; - echo " + echo "

- "; + "; - if( file_exists( "{$lyrics_file}")) - { - $lyrics_string = file_get_contents( "{$lyrics_file}"); - } - else - { - $lyrics_string = "No lyrics found...\n"; - } + if( file_exists( "{$lyrics_file}")) + { + $lyrics_string = file_get_contents( "{$lyrics_file}"); + } + else + { + $lyrics_string = "No lyrics found...\n"; + } - echo str_replace( "\n", "
\n ", "{$lyrics_string}"); + echo str_replace( "\n", "
\n ", "{$lyrics_string}"); - echo "
+ echo "
-"; + "; } @@ -3217,10 +3150,10 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra function lmb_title_get( $play_type, $play_id, $play_priority, $track_id) { - $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); + $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); - return( "{$track_info["title"]}"); + return( "{$track_info["title"]}"); } @@ -3231,16 +3164,16 @@ function lmb_title_get( $play_type, $play_id, $play_priority, $track_id) function lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id) { - $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); + $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); - if( "{$track_info["mix"]}" == "") - { - return( "{$track_info["title"]}"); - } - else - { - return( "{$track_info["title"]} ({$track_info["mix"]})"); - } + if( "{$track_info["mix"]}" == "") + { + return( "{$track_info["title"]}"); + } + else + { + return( "{$track_info["title"]} ({$track_info["mix"]})"); + } } @@ -3251,63 +3184,63 @@ function lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id) function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) { - global $lmb_cookie_tab; - global $lmb_url_pre; - global $lmb_url_post; - global $lmb_jpi_enable; + global $lmb_cookie_tab; + global $lmb_url_pre; + global $lmb_url_post; + global $lmb_jpi_enable; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; - if( "{$track_mix}" == "") - { - $track_file_base = "{$track_id}-{$track_name}"; - } - else - { - $track_file_base = "{$track_id}-{$track_name}-{$track_mix}"; - } + if( "{$track_mix}" == "") + { + $track_file_base = "{$track_id}-{$track_name}"; + } + else + { + $track_file_base = "{$track_id}-{$track_name}-{$track_mix}"; + } - $track_file_ogg = "{$track_path}/ogg-256/{$track_file_base}.ogg"; - $track_file_mp3 = "{$track_path}/mp3-192/{$track_file_base}.mp3"; - $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); + $track_file_ogg = "{$track_path}/ogg-256/{$track_file_base}.ogg"; + $track_file_mp3 = "{$track_path}/mp3-192/{$track_file_base}.mp3"; + $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); - $solution_cookie = "jpsolution"; - $prefix_url = "{$lmb_url_post}?cookie_id={$solution_cookie}&cookie_value="; - $query_string = preg_replace( "/cookie_id={$solution_cookie}&cookie_value=[^&]*&/", "", "{$_SERVER['QUERY_STRING']}"); - $solution_html_url = htmlentities( "{$prefix_url}html, flash&{$query_string}"); - $solution_flash_url = htmlentities( "{$prefix_url}flash, html&{$query_string}"); - $solution_native_url = htmlentities( "{$prefix_url}native&{$query_string}"); + $solution_cookie = "jpsolution"; + $prefix_url = "{$lmb_url_post}?cookie_id={$solution_cookie}&cookie_value="; + $query_string = preg_replace( "/cookie_id={$solution_cookie}&cookie_value=[^&]*&/", "", "{$_SERVER['QUERY_STRING']}"); + $solution_html_url = htmlentities( "{$prefix_url}html, flash&{$query_string}"); + $solution_flash_url = htmlentities( "{$prefix_url}flash, html&{$query_string}"); + $solution_native_url = htmlentities( "{$prefix_url}native&{$query_string}"); - $solution_value = $lmb_cookie_tab[$solution_cookie]; + $solution_value = $lmb_cookie_tab[$solution_cookie]; - if( "{$solution_value}" == "html, flash") - { - $html_class = "link-item-disabled"; - $flash_class = "link-item"; - $native_class = "link-item"; - } - else - { - if( "{$solution_value}" == "flash, html") - { - $html_class = "link-item"; - $flash_class = "link-item-disabled"; - $native_class = "link-item"; - } - else - { - $html_class = "link-item"; - $flash_class = "link-item"; - $native_class = "link-item-disabled"; - } - } + if( "{$solution_value}" == "html, flash") + { + $html_class = "link-item-disabled"; + $flash_class = "link-item"; + $native_class = "link-item"; + } + else + { + if( "{$solution_value}" == "flash, html") + { + $html_class = "link-item"; + $flash_class = "link-item-disabled"; + $native_class = "link-item"; + } + else + { + $html_class = "link-item"; + $flash_class = "link-item"; + $native_class = "link-item-disabled"; + } + } - if( "{$solution_value}" == "native") - { + if( "{$solution_value}" == "native") + { - echo " + echo " @@ -3327,12 +3260,12 @@ Your browser does not support the audio element.
-"; - } - else - { + "; + } + else + { - echo " + echo " @@ -3342,10 +3275,10 @@ Your browser does not support the audio element. -"; + "; - echo " + echo " -"; + "; - echo " + echo "
@@ -3421,19 +3354,19 @@ To play the media you will need to either update your browser to a recent versio
-"; - echo " + "; + echo "
 
-"; + "; - if( $lmb_jpi_enable == true) - { - echo "
"; - } - } + if( $lmb_jpi_enable == true) + { + echo "
"; + } + } } @@ -3446,17 +3379,17 @@ To play the media you will need to either update your browser to a recent versio function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $track_path = "{$play_path}/tracks"; - $cover_size = 400; - $border1_size = $cover_size + 30; - $border2_size = $cover_size + 10; + $cover_size = 400; + $border1_size = $cover_size + 30; + $border2_size = $cover_size + 10; - echo "
+ echo "
@@ -3483,13 +3416,13 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac + echo "
-"; + "; - lmb_track_info( $play_type, $play_id, $play_priority, $track_id); + lmb_track_info( $play_type, $play_id, $play_priority, $track_id); -// echo "
"; + // echo "
"; - echo "
@@ -3501,11 +3434,11 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac -"; + "; - lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); + lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); - echo " + echo " @@ -3525,11 +3458,11 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac -"; + "; - lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); + lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); -echo " + echo " Lyrics @@ -3556,7 +3489,7 @@ echo "




-"; + "; } @@ -3568,93 +3501,93 @@ echo " function lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path) { - global $lmb_cookie_tab; - global $lmb_url_pre; - global $lmb_url_post; + global $lmb_cookie_tab; + global $lmb_url_pre; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; - $video_path = "{$play_path}/videos"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $track_path = "{$play_path}/tracks"; + $video_path = "{$play_path}/videos"; - $video_res_cookie = "video_res"; - $prefix_url = "{$lmb_url_post}?cookie_id={$video_res_cookie}&cookie_value="; - $query_string = preg_replace( "/cookie_id={$video_res_cookie}&cookie_value=[^&]*&/", "", "{$_SERVER['QUERY_STRING']}"); - $video_res_1440p_url = htmlentities( "{$prefix_url}1440p&{$query_string}"); - $video_res_1080p_url = htmlentities( "{$prefix_url}1080p&{$query_string}"); - $video_res_720p_url = htmlentities( "{$prefix_url}720p&{$query_string}"); - $video_res_360p_url = htmlentities( "{$prefix_url}360p&{$query_string}"); + $video_res_cookie = "video_res"; + $prefix_url = "{$lmb_url_post}?cookie_id={$video_res_cookie}&cookie_value="; + $query_string = preg_replace( "/cookie_id={$video_res_cookie}&cookie_value=[^&]*&/", "", "{$_SERVER['QUERY_STRING']}"); + $video_res_1440p_url = htmlentities( "{$prefix_url}1440p&{$query_string}"); + $video_res_1080p_url = htmlentities( "{$prefix_url}1080p&{$query_string}"); + $video_res_720p_url = htmlentities( "{$prefix_url}720p&{$query_string}"); + $video_res_360p_url = htmlentities( "{$prefix_url}360p&{$query_string}"); - $video_res = $lmb_cookie_tab[$video_res_cookie]; + $video_res = $lmb_cookie_tab[$video_res_cookie]; - $video_res_tab = array(); + $video_res_tab = array(); - switch("{$video_res}") - { - case "1440p": + switch("{$video_res}") { - $video_res_1440p_class = "link-item-disabled"; - $video_res_1080p_class = "link-item"; - $video_res_720p_class = "link-item"; - $video_res_360p_class = "link-item"; + case "1440p": + { + $video_res_1440p_class = "link-item-disabled"; + $video_res_1080p_class = "link-item"; + $video_res_720p_class = "link-item"; + $video_res_360p_class = "link-item"; - break; + break; + } + + case "1080p": + { + $video_res_1440p_class = "link-item"; + $video_res_1080p_class = "link-item-disabled"; + $video_res_720p_class = "link-item"; + $video_res_360p_class = "link-item"; + + break; + } + + case "720p": + { + $video_res_1440p_class = "link-item"; + $video_res_1080p_class = "link-item"; + $video_res_720p_class = "link-item-disabled"; + $video_res_360p_class = "link-item"; + + break; + } + + case "360p": + { + $video_res_1440p_class = "link-item"; + $video_res_1080p_class = "link-item"; + $video_res_720p_class = "link-item"; + $video_res_360p_class = "link-item-disabled"; + + break; + } } - case "1080p": + if( "{$track_mix}" == "") { - $video_res_1440p_class = "link-item"; - $video_res_1080p_class = "link-item-disabled"; - $video_res_720p_class = "link-item"; - $video_res_360p_class = "link-item"; - - break; + $video_file_base = "{$track_id}-{$track_name}"; + } + else + { + $video_file_base = "{$track_id}-{$track_name}-{$track_mix}"; } - case "720p": + $video_file_ogv = "{$video_path}/{$video_file_base}-{$video_res}.ogv"; + $video_file_webm = "{$video_path}/{$video_file_base}-{$video_res}.webm"; + $video_file_mp4 = "{$video_path}/{$video_file_base}-{$video_res}.mp4"; + $poster_file = "{$video_path}/{$video_file_base}-poster.png"; + + if( file_exists( "{$video_file_mp4}")) { - $video_res_1440p_class = "link-item"; - $video_res_1080p_class = "link-item"; - $video_res_720p_class = "link-item-disabled"; - $video_res_360p_class = "link-item"; + echo " + "; + ob_start(); - break; - } - - case "360p": - { - $video_res_1440p_class = "link-item"; - $video_res_1080p_class = "link-item"; - $video_res_720p_class = "link-item"; - $video_res_360p_class = "link-item-disabled"; - - break; - } - } - - if( "{$track_mix}" == "") - { - $video_file_base = "{$track_id}-{$track_name}"; - } - else - { - $video_file_base = "{$track_id}-{$track_name}-{$track_mix}"; - } - - $video_file_ogv = "{$video_path}/{$video_file_base}-{$video_res}.ogv"; - $video_file_webm = "{$video_path}/{$video_file_base}-{$video_res}.webm"; - $video_file_mp4 = "{$video_path}/{$video_file_base}-{$video_res}.mp4"; - $poster_file = "{$video_path}/{$video_file_base}-poster.png"; - - if( file_exists( "{$video_file_mp4}")) - { - echo " -"; - ob_start(); - - echo " + echo " @@ -3687,18 +3620,18 @@ Your browser does not support the video tag. -"; + "; - $data = ob_get_contents(); - ob_end_clean(); + $data = ob_get_contents(); + ob_end_clean(); - lmb_make_tab( "video", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path); + lmb_make_tab( "video", "videos", "r", "/{$logo_path}-1-128.png", $data, $skin_path); - echo " + echo "




-"; - } + "; + } } @@ -3709,16 +3642,16 @@ Your browser does not support the video tag. function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path) { - global $lmb_url_post; + global $lmb_url_post; - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $logo_path = "{$play_path}/logos/{$play_id}-logo"; + $track_path = "{$play_path}/tracks"; - $file_tag = lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id); + $file_tag = lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id); - echo "
+ echo "
@@ -3734,98 +3667,98 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t {$file_tag}"; - $file_tab = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "{$track_id}-{$track_name}-{$track_mix}", "mp4", "MONO"); + $file_tab = lmb_video_file_tab_get( $play_type, $play_id, $play_priority, "{$track_id}-{$track_name}-{$track_mix}", "mp4", "MONO"); - if( count( $file_tab) != 0 && ( ! file_exists( "{$video_path}/.hide" ) || lmb_admin_is())) - { - for( $i = 0; $i < count($file_tab); $i++) - { - $file_tab[$i]["format"] = "mp4 {$file_tab[$i]["format"]}"; - } + if( count( $file_tab) != 0 && ( ! file_exists( "{$video_path}/.hide" ) || lmb_admin_is())) + { + for( $i = 0; $i < count($file_tab); $i++) + { + $file_tab[$i]["format"] = "mp4 {$file_tab[$i]["format"]}"; + } - lmb_file_entry_print( $file_tab, "tracks7", "tracks6", "{$entry_tag}", 4); - } + lmb_file_entry_print( $file_tab, "tracks7", "tracks6", "{$entry_tag}", 4); + } - echo " + echo "

-"; + "; - $mix_list = glob( "discography/*/*/tracks/flac/*-{$track_name}*.flac"); + $mix_list = glob( "discography/*/*/tracks/flac/*-{$track_name}*.flac"); - for( $i = 0, $k = 0; $i < count( $mix_list); $i++) - { - $path_tab = explode( "/", $mix_list[$i]); - $play_tab = explode( "-", $path_tab[2]); - $track_tab = explode( "-", $path_tab[5]); - - $play_type = $path_tab[1]; - $play_pri = $play_tab[0]; - $play_id = $play_tab[1]; - - - if( file_exists( "discography/{$play_type}/{$play_pri}-{$play_id}/.hide" )) + for( $i = 0, $k = 0; $i < count( $mix_list); $i++) { - $hide = "y"; + $path_tab = explode( "/", $mix_list[$i]); + $play_tab = explode( "-", $path_tab[2]); + $track_tab = explode( "-", $path_tab[5]); + + $play_type = $path_tab[1]; + $play_pri = $play_tab[0]; + $play_id = $play_tab[1]; + + + if( file_exists( "discography/{$play_type}/{$play_pri}-{$play_id}/.hide" )) + { + $hide = "y"; + } + else + { + $hide = "n"; + } + + if( ( $hide == "n") || lmb_admin_is()) + { + $mix_tab[$k]["hide"] = $hide; + + $mix_tab[$k]["play_type"] = $play_type; + $mix_tab[$k]["play_type_name"] = lmb_play_type_name_get( $path_tab[1]); + $mix_tab[$k]["play_id"] = $play_id; + $mix_tab[$k]["play_pri"] = $play_pri; + $mix_tab[$k]["track_id"] = $track_tab[0]; + + $mix_tab[$k]["play_url"] = "{$lmb_url_post}?page=play&type={$mix_tab[$k]["play_type"]}&id={$mix_tab[$k]["play_id"]}&priority={$mix_tab[$k]["play_pri"]}"; + $mix_tab[$k]["mix_url"] = "{$lmb_url_post}?page=track&type={$mix_tab[$k]["play_type"]}&id={$mix_tab[$k]["play_id"]}&priority={$mix_tab[$k]["play_pri"]}&tid={$mix_tab[$k]["track_id"]}"; + + $track_info = lmb_track_info_get( $mix_tab[$k]["play_type"], $mix_tab[$k]["play_id"], $mix_tab[$k]["play_pri"], $mix_tab[$k]["track_id"]); + + $mix_tab[$k]["track_name"] = $track_info["title"]; + $mix_tab[$k]["mix_name"] = $track_info["mix"]; + $mix_tab[$k]["play_name"] = $track_info["album"]; + + $k++; + } } - else + + + if( isset( $mix_tab)) { - $hide = "n"; - } - - if( ( $hide == "n") || lmb_admin_is()) - { - $mix_tab[$k]["hide"] = $hide; - - $mix_tab[$k]["play_type"] = $play_type; - $mix_tab[$k]["play_type_name"] = lmb_play_type_name_get( $path_tab[1]); - $mix_tab[$k]["play_id"] = $play_id; - $mix_tab[$k]["play_pri"] = $play_pri; - $mix_tab[$k]["track_id"] = $track_tab[0]; - - $mix_tab[$k]["play_url"] = "{$lmb_url_post}?page=play&type={$mix_tab[$k]["play_type"]}&id={$mix_tab[$k]["play_id"]}&priority={$mix_tab[$k]["play_pri"]}"; - $mix_tab[$k]["mix_url"] = "{$lmb_url_post}?page=track&type={$mix_tab[$k]["play_type"]}&id={$mix_tab[$k]["play_id"]}&priority={$mix_tab[$k]["play_pri"]}&tid={$mix_tab[$k]["track_id"]}"; - - $track_info = lmb_track_info_get( $mix_tab[$k]["play_type"], $mix_tab[$k]["play_id"], $mix_tab[$k]["play_pri"], $mix_tab[$k]["track_id"]); - - $mix_tab[$k]["track_name"] = $track_info["title"]; - $mix_tab[$k]["mix_name"] = $track_info["mix"]; - $mix_tab[$k]["play_name"] = $track_info["album"]; - - $k++; - } - } - - - if( isset( $mix_tab)) - { - for( $k = 0; $k < count( $mix_tab); $k++) - { - if( "{$mix_tab[$k]["hide"]}" == "y") - { - $hide_flag="*"; - } - else - { - $hide_flag=""; - } - - $css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3; - - echo " + for( $k = 0; $k < count( $mix_tab); $k++) + { + if( "{$mix_tab[$k]["hide"]}" == "y") + { + $hide_flag="*"; + } + else + { + $hide_flag=""; + } + + $css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3; + + echo " -"; - } - } + "; + } + } - -echo " + + echo " @@ -3836,7 +3769,7 @@ echo "
{$mix_tab[$k]["play_type_name"]}
Mixes 
-"; + "; } @@ -3847,29 +3780,29 @@ echo " function lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_path) { - $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - $track_path = "{$play_path}/tracks"; - $track_file_name = glob( "{$track_path}/flac/$track_id-*.flac"); - $tab = explode( "-", basename( "{$track_file_name[0]}", ".flac")); - $track_name = $tab[1]; + $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); + $track_path = "{$play_path}/tracks"; + $track_file_name = glob( "{$track_path}/flac/$track_id-*.flac"); + $tab = explode( "-", basename( "{$track_file_name[0]}", ".flac")); + $track_name = $tab[1]; - if( isset( $tab[2])) - { - $track_mix = $tab[2]; - } - else - { - $track_mix = ""; - } + if( isset( $tab[2])) + { + $track_mix = $tab[2]; + } + else + { + $track_mix = ""; + } - /* --- Introduction --- */ - lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); + /* --- Introduction --- */ + lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); - /* --- Introduction --- */ - lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); + /* --- Introduction --- */ + lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); - /* --- Download --- */ - lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); + /* --- Download --- */ + lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path); } @@ -3880,17 +3813,17 @@ function lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) { - global $lmb_tab; + global $lmb_tab; - $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); + $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); + 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); } @@ -3901,24 +3834,24 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) function lmb_download_zip( $directory, $file_list, $mode) { - switch($mode) - { - case "SIZE": + switch($mode) { - return( exec( "cd {$directory}; du -cb ${file_list} | tail -1 | cut -f 1")); - } + case "SIZE": + { + return( exec( "cd {$directory}; du -cb ${file_list} | tail -1 | cut -f 1")); + } - case "RSIZE": - { - return( exec( "cd {$directory}; zip -0 -j -p - ${file_list} | wc -c")); - } + case "RSIZE": + { + return( exec( "cd {$directory}; zip -0 -j -p - ${file_list} | wc -c")); + } - case "DUMP": - { - passthru( "cd {$directory}; zip -0 -j -p - ${file_list}"); - break; + case "DUMP": + { + passthru( "cd {$directory}; zip -0 -j -p - ${file_list}"); + break; + } } - } } @@ -3929,21 +3862,21 @@ function lmb_download_zip( $directory, $file_list, $mode) function lmb_download_file( $play_dir, $file_list, $mode, $download_name) { - if( $mode == "SIZE") - { - return( lmb_download_zip( "{$play_dir}", $file_list, "SIZE")); - } - else - { - $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "RSIZE"); + if( $mode == "SIZE") + { + return( lmb_download_zip( "{$play_dir}", $file_list, "SIZE")); + } + else + { + $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "RSIZE"); - header( "Content-Description: Langueur Monotone - {$download_name}"); - header( 'Content-Type: application/zip'); - header( 'Content-Disposition: attachment; filename="'."langueur_monotone-{$download_name}.zip".'"'); - header( 'Content-Length: ' . $zip_size); + header( "Content-Description: Langueur Monotone - {$download_name}"); + header( 'Content-Type: application/zip'); + header( 'Content-Disposition: attachment; filename="'."langueur_monotone-{$download_name}.zip".'"'); + header( 'Content-Length: ' . $zip_size); - $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "DUMP"); - } + $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "DUMP"); + } } @@ -3954,19 +3887,19 @@ function lmb_download_file( $play_dir, $file_list, $mode, $download_name) function lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, $mode) { - $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); - $file_array = glob("{$play_dir}/tracks/{$file_type}/*"); + $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); + $file_array = glob("{$play_dir}/tracks/{$file_type}/*"); - if( isset($file_array[0]) && file_exists( $file_array[0])) - { - $file_list = "tracks/{$file_type}/* covers/{$play_id}-*-800.png"; + if( isset($file_array[0]) && file_exists( $file_array[0])) + { + $file_list = "tracks/{$file_type}/* covers/{$play_id}-*-800.png"; - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$file_type}")); - } - else - { - lmb_redirect_page( ""); - } + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$file_type}")); + } + else + { + lmb_redirect_page( ""); + } } @@ -3977,18 +3910,18 @@ function lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, function lmb_download_covers( $play_type, $play_id, $play_priority, $cover_format, $mode) { - $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); - $file_list = "covers/{$play_id}-cover-*-{$cover_format}.png"; - $file_array = glob("{$play_dir}/{$file_list}"); + $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); + $file_list = "covers/{$play_id}-cover-*-{$cover_format}.png"; + $file_array = glob("{$play_dir}/{$file_list}"); - if( isset($file_array[0]) && file_exists( $file_array[0])) - { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$cover_format}")); - } - else - { - lmb_redirect_page( ""); - } + if( isset($file_array[0]) && file_exists( $file_array[0])) + { + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$cover_format}")); + } + else + { + lmb_redirect_page( ""); + } } @@ -3999,18 +3932,18 @@ function lmb_download_covers( $play_type, $play_id, $play_priority, $cover_forma function lmb_download_videos( $play_type, $play_id, $play_priority, $video_format, $mode) { - $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); - $file_list = "videos/*-{$video_format}"; - $file_array = glob("{$play_dir}/{$file_list}"); + $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); + $file_list = "videos/*-{$video_format}"; + $file_array = glob("{$play_dir}/{$file_list}"); - if( isset($file_array[0]) && file_exists( $file_array[0])) - { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$video_format}")); - } - else - { - lmb_redirect_page( ""); - } + if( isset($file_array[0]) && file_exists( $file_array[0])) + { + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$video_format}")); + } + else + { + lmb_redirect_page( ""); + } } @@ -4021,18 +3954,18 @@ function lmb_download_videos( $play_type, $play_id, $play_priority, $video_forma function lmb_download_extras( $play_type, $play_id, $play_priority, $extra_format, $mode) { - $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); - $file_list = "extras/{$play_id}-*-{$extra_format}.png"; - $file_array = glob("{$play_dir}/{$file_list}"); + $play_dir = lmb_play_path_get( $play_type, $play_id, $play_priority); + $file_list = "extras/{$play_id}-*-{$extra_format}.png"; + $file_array = glob("{$play_dir}/{$file_list}"); - if( isset($file_array[0]) && file_exists( $file_array[0])) - { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$extra_format}")); - } - else - { - lmb_redirect_page( ""); - } + if( isset($file_array[0]) && file_exists( $file_array[0])) + { + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$extra_format}")); + } + else + { + lmb_redirect_page( ""); + } } @@ -4043,70 +3976,70 @@ function lmb_download_extras( $play_type, $play_id, $play_priority, $extra_forma function lmb_body( $id, $name, $curver, $currel) { - global $lmb_download_http_url; - global $lmb_download_ftp_url; + global $lmb_download_http_url; + global $lmb_download_ftp_url; - $description = lmb_tag_get( $id, $curver, $currel, "", "%{DESCRIPTION}"); - $change_log = lmb_tag_get( $id, $curver, $currel, "", "%{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}"); + $description = lmb_tag_get( $id, $curver, $currel, "", "%{DESCRIPTION}"); + $change_log = lmb_tag_get( $id, $curver, $currel, "", "%{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}"); - echo "

+ echo "



-";
+    ";
 
-  lmb_tab_dump( $description, 0);
+    lmb_tab_dump( $description, 0);
 
-  echo "    
+ echo "



-"; - - echo "

+ "; + + echo "



Last Release Notes:
-"; + "; - echo "
-";
+    echo "    
+    ";
 
-  lmb_tab_dump( $change_log, 0);
+    lmb_tab_dump( $change_log, 0);
 
-  echo "    
-"; + echo "
+ "; - $lmb_list = lmb_list_get( $id, $curver, $currel); + $lmb_list = lmb_list_get( $id, $curver, $currel); - if( $lmb_list != "") - { - echo"
+ if( $lmb_list != "") + { + echo"
Sub-Package List:

"; - for( $i = 0; $i < count($lmb_list); $i++) - { - echo "   $lmb_list[$i]"; + for( $i = 0; $i < count($lmb_list); $i++) + { + echo "   $lmb_list[$i]"; + } + + echo "

+ "; } - echo "

-"; - } - - echo"
+ echo"
"; - echo "$name changelog page   "; - echo "$name file list page   "; - echo "$name HTTP download page   "; - echo "$name FTP download page   "; - echo "
"; + echo "$name changelog page   "; + echo "$name file list page   "; + echo "$name HTTP download page   "; + echo "$name FTP download page   "; + echo ""; } @@ -4117,12 +4050,12 @@ function lmb_body( $id, $name, $curver, $currel) function lmb_page( $lmb_id, $lmb_name, $lmb_curver, $lmb_currel) { - $summary = lmb_tag_get( $lmb_id, $lmb_curver, $lmb_currel, "", "%{SUMMARY}"); - $lmb_summary = $summary[0]; + $summary = lmb_tag_get( $lmb_id, $lmb_curver, $lmb_currel, "", "%{SUMMARY}"); + $lmb_summary = $summary[0]; - lmb_header( $lmb_id, $lmb_name, $lmb_summary, $lmb_curver, $lmb_currel); - lmb_body( $lmb_id, $lmb_name, $pkg_curver, $pkg_currel); - pkg_footer(); + lmb_header( $lmb_id, $lmb_name, $lmb_summary, $lmb_curver, $lmb_currel); + lmb_body( $lmb_id, $lmb_name, $pkg_curver, $pkg_currel); + pkg_footer(); } @@ -4133,17 +4066,17 @@ function lmb_page( $lmb_id, $lmb_name, $lmb_curver, $lmb_currel) function lmb_cl_header( $id, $name, $curver, $currel) { - $page_name="Rx3 $name ChangeLog Page"; - $page_title="$page_name"; - global $lmb_url_post; - global $lmb_header; - global $lmb_keywords; - $keywords="$lmb_keywords,$id, rx3 $id changelog"; + $page_name="Rx3 $name ChangeLog Page"; + $page_title="$page_name"; + global $lmb_url_post; + global $lmb_header; + global $lmb_keywords; + $keywords="$lmb_keywords,$id, rx3 $id changelog"; - include "$lmb_header"; + include "$lmb_header"; - echo " + echo " $page_name @@ -4155,7 +4088,7 @@ function lmb_cl_header( $id, $name, $curver, $currel)
-"; + "; } @@ -4181,31 +4114,31 @@ function lmb_get_proceed( $get_array) lmb_sitemap_page( ); break; } - + case "rss": { lmb_rss_page( ); break; } - + case "about": { lmb_about_page( $lmb_tab); break; } - + case "discography": { lmb_discography_page( $lmb_tab); break; } - + case "play": { $play_type = lmb_get_array( $get_array, "type", ""); $play_id = lmb_get_array( $get_array, "id", ""); $play_priority = lmb_get_array( $get_array, "priority", ""); - + if( lmb_play_validate( $play_type, $play_id, $play_priority)) { lmb_play_page( $play_type, $play_id, $play_priority); @@ -4217,20 +4150,20 @@ function lmb_get_proceed( $get_array) break; } - + case "tracklist": { lmb_tracklist_page(); break; } - + case "track": { $play_type = lmb_get_array( $get_array, "type", ""); $play_id = lmb_get_array( $get_array, "id", ""); $play_priority = lmb_get_array( $get_array, "priority", ""); $track_id = lmb_get_array( $get_array, "tid", ""); - + if( lmb_track_validate( $play_type, $play_id, $play_priority, $track_id)) { lmb_track_page( $play_type, $play_id, $play_priority, $track_id); @@ -4239,9 +4172,9 @@ function lmb_get_proceed( $get_array) { lmb_redirect_page( ""); } - break; + break; } - + case "download": { $play_type = lmb_get_array( $get_array, "type", ""); @@ -4251,37 +4184,37 @@ function lmb_get_proceed( $get_array) if( lmb_play_validate( $play_type, $play_id, $play_priority)) { $download_type = lmb_get_array( $get_array, "dtype", ""); - + switch( "{$download_type}") { case "track": { $file_type = lmb_get_array( $get_array, "ftype", ""); - + lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, "DUMP"); break; } - + case "cover": { $cover_format = lmb_get_array( $get_array, "cformat", ""); - + lmb_download_covers( $play_type, $play_id, $play_priority, $cover_format, "DUMP"); break; } - + case "video": { $video_format=lmb_get_array( $get_array, "vformat", ""); - + lmb_download_videos( $play_type, $play_id, $play_priority, $video_format, "DUMP"); break; } - + case "extra": { $extra_format=lmb_get_array( $get_array, "eformat", ""); - + lmb_download_extras( $play_type, $play_id, $play_priority, $extra_format, "DUMP"); break; } @@ -4297,7 +4230,7 @@ function lmb_get_proceed( $get_array) { lmb_redirect_page( ); } - + break; }