From 71a14c1f26cb94e6a99add0551e1669457b99186 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Sun, 19 Jul 2026 17:55:55 +0200 Subject: [PATCH] - Fix stat URLs. --- ReadMe.txt | 13 +- ReleaseNotes.txt | 2 +- src/html/lmbrowse.php | 3180 ++++++++++++++++++++--------------------- 3 files changed, 1592 insertions(+), 1603 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index 47da78c..80410a8 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -1,14 +1,4 @@ -# $RCSfile: ReadMe.txt,v $ -# $Revision: 1.1 $ -# $Name: $ -# $Date: 2012/12/01 16:27:04 $ -# $Author: agibert $ - - - - - -LMBrowse - Langueur Monotone Browser +Welcome to LMBrowse: Langueur Monotone Browser @@ -41,4 +31,3 @@ Configuration + $lmb_url: URL where lmbrowse is accessible, - The second section defines the HTML page keywords. - diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index c3ed280..cd5b97b 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------------------------------------------------------------ -LMBrowse V 1.9.1 - A. GIBERT - 2026/07/18 +LMBrowse V 1.9.1 - A. GIBERT - 2026/07/19 ------------------------------------------------------------------------------------------------------------------------------------ - Add docker support, diff --git a/src/html/lmbrowse.php b/src/html/lmbrowse.php index a6202ab..cc70cc6 100644 --- a/src/html/lmbrowse.php +++ b/src/html/lmbrowse.php @@ -58,7 +58,7 @@ function lmb_make_comparer() { foreach ($criteria as $index => $criterion) { $criteria[$index] = is_array($criterion) ? array_pad($criterion, 3, null) - : array($criterion, SORT_ASC, null); + : array($criterion, SORT_ASC, null); } return function($first, $second) use (&$criteria) { @@ -97,17 +97,17 @@ function lmb_sort_multi_array( $array, $key) $keys = array(); for ($i=1;$i 1024; $i++) { - $size = intval( $size / 1024); + $size = intval( $size / 1024); } $size_tab["size"] = $size; @@ -306,45 +306,45 @@ function lmb_size_convert( $size) function lmb_html_text_format( $input_text) { $search_tab = array( - "#", - "&", - "\n", - "< >", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "#", + "&", + "\n", + "< >", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ); $replace_tab = array( - "", - "&", - "
\n ", - " ", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "
", - "
", - "
", - "
", + "", + "&", + "
\n ", + " ", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "
", + "
", + "
", + "
", ); return( str_replace( $search_tab, $replace_tab, $input_text)); @@ -359,47 +359,47 @@ function lmb_html_text_format( $input_text) function lmb_xml_text_format( $input_text) { $search_tab = array( - "&", - "\"", - "\n", - "< >", - "
", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "&", + "\"", + "\n", + "< >", + "
", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ); $replace_tab = array( - "&", - """, - "\n ", - "", - "\n", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" + "&", + """, + "\n ", + "", + "\n", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" ); return( str_replace( $search_tab, $replace_tab, $input_text)); @@ -450,67 +450,67 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $img_path, $data if( "$tab_side" == "l") { - $logo_side="r"; + $logo_side="r"; } else { - $logo_side="l"; + $logo_side="l"; } $tab_tag = "
"; if( $logo_path[0] == "/") { - if( $img_path != "") - { - $logo_tag = "\"\""; - } - else - { - $logo_tag = "\"\"/"; - } + if( $img_path != "") + { + $logo_tag = "\"\""; + } + else + { + $logo_tag = "\"\"/"; + } } else { - $logo_tag = "
"; + $logo_tag = "
"; } if( "$tab_side" == "l") { - $l_tag = "{$tab_tag}"; - $r_tag = "{$logo_tag}"; + $l_tag = "{$tab_tag}"; + $r_tag = "{$logo_tag}"; } else { - $l_tag = "$logo_tag"; - $r_tag = "$tab_tag"; + $l_tag = "$logo_tag"; + $r_tag = "$tab_tag"; } - echo " - - - - - {$l_tag} + echo " + - - "; + {$r_tag} + + +
+ + + + {$l_tag} - - {$r_tag} - - -
  - - - "; + + echo " +
+ + "; + echo ""; echo $data; - echo " -
-
+
 
-
+ + "; + echo ""; } @@ -522,15 +522,15 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $img_path, $data function lmb_spacer( $size) { - echo " "; + echo " "; for( $i = 0; $i < $size; $i++) { - echo "
"; + echo "
"; } - echo " - "; + echo ""; + echo ""; } @@ -546,73 +546,73 @@ function lmb_menu( $menu_id, $skin_path) for( $i = 0; $i < 3; $i++) { - if( $i == $menu_id) - { - $mode="off"; - } - else - { - $mode="on"; - } + if( $i == $menu_id) + { + $mode="off"; + } + else + { + $mode="on"; + } - switch($i) - { - case 0: - { - if( $i == $menu_id) - { - echo "
- "; - } - else - { - echo "
- "; - } - break; - } + switch($i) + { + case 0: + { + if( $i == $menu_id) + { + echo "
"; + echo ""; + } + else + { + echo "
"; + echo ""; + } + break; + } - case 1: - { - if( $i == $menu_id) - { - echo "
- "; - } - else - { - echo "
- "; - } - break; - } + case 1: + { + if( $i == $menu_id) + { + echo "
"; + echo ""; + } + else + { + echo "
"; + echo ""; + } + break; + } - case 2: - { - if( $i == $menu_id) - { - echo "
- "; - } - else - { - echo "
- "; - } - break; - } + case 2: + { + if( $i == $menu_id) + { + echo "
"; + echo ""; + } + else + { + echo "
"; + echo ""; + } + break; + } - default: - { - break; - } - } + default: + { + break; + } + } - if( $i < 2) - { - echo " - "; - } + if( $i < 2) + { + echo " "; + echo ""; + } } } @@ -647,11 +647,11 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, if( $min_width != 0) { - $mw_tag = "min-width: {$min_width}px;"; + $mw_tag = "min-width: {$min_width}px;"; } else { - $mw_tag = ""; + $mw_tag = ""; } // echo ""; @@ -659,8 +659,8 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, echo ""; // echo ""; - echo " - "; + echo ""; + echo ""; echo " @@ -669,26 +669,26 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords, - $page_name - "; + $page_name"; + echo ""; if( $lmb_ga_enable == true) { - /* - echo " - "; - */ + + "; + */ - echo " + echo " - "; + "; + echo ""; } - echo " - "; + echo " "; + echo ""; - echo " - "; + echo " "; + echo ""; /* Modal Window */ echo " - "; + "; + echo ""; echo "
\"\"
-
- "; + "; + echo ""; echo " - - - - - "; + + + + "; + echo ""; - echo " - "; + echo " "; + echo ""; - echo " - - - - - - "; + echo " + + + + + "; + echo ""; - echo " - "; + echo " "; + echo ""; - echo " - - - - - - - - + + + - + - - + + - + + "; + echo ""; echo "

Langueur Monotone

Langueur Monotone

$page_title

$page_title

- - - - + echo " + + + + + + + + - - - - - - - - - + echo " +
+ + + + - - "; + "; + echo ""; lmb_menu( $page_id, $skin_path); - echo " - - - -
-
- - - - - + + + + + + + + "; + echo ""; - echo " -
- - - "; + echo " + + + +
+
+ + + + + - - - "; + echo " +
+ + "; + echo ""; } @@ -822,120 +822,119 @@ function lmb_footer( $skin_path) - echo " -
-
+
-
+
- - - - + - - "; - + echo " + +
+ + + + - + + + + + + + +
- + - - - - - - - - -
   
   
-
+
   
   
+
- - - "; + + "; + echo ""; if( lmb_admin_is()) { - echo " - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - "; + + "; + echo ""; } else { - echo " - "; + "; + echo ""; } $time_stop = microtime_float(); $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " - -
   
   
   
   
   
   
   
    + echo "
   
   
   
   
   
   
   
   
-
+ echo "
-
-
Page generated in $time_elaps seconds by V {$lmb_myver}
+
Page generated in $time_elaps seconds by V {$lmb_myver}
-
- - - -
- - +
+ + + +
+ + - - "; +"; + echo ""; } @@ -953,14 +952,14 @@ function lmb_welcome_tab( $skin_path) ob_start(); echo " - + ".lmb_html_text_format( "{$welcome_string}")." - + - - "; + "; + echo ""; $data = ob_get_contents(); ob_end_clean(); @@ -990,40 +989,40 @@ function lmb_news_tab_get( ) for( $i = 0; $i < count($line); $i++) { - $tab = explode( "\t", $line[$i]); - $css_row = ( $i + 1) % 2 + 1; + $tab = explode( "\t", $line[$i]); + $css_row = ( $i + 1) % 2 + 1; - if( count($tab) > 3) - { - $play_name = $tab[3]; - $play_type = $tab[4]; - $play_id = $tab[5]; - $play_priority = $tab[6]; + 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]["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]; + $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"] = ""; - } + if( $tab[2] != ".") + { + $news_tab[$i]["news"] = $tab[2]; + } + else + { + $news_tab[$i]["news"] = ""; + } } - + return( $news_tab); } @@ -1041,33 +1040,33 @@ function lmb_news_json_ld( $news_tab) for( $i=0; $i < count($news_tab); $i++) { - echo " - "; +}"; + echo ""; } } @@ -1090,41 +1089,41 @@ function lmb_news_tab( $skin_path) for( $i=0; $i < count($news_tab); $i++) { - $css_row = ( $i + 1) % 2 + 1; + $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\""; - } + if( "{$news_tab[$i]["name"]}" != "") + { + $height = 110; + $link1_tag = " + {$link2_tag}{$img_tag}"; + $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}")." + {$news_tab[$i]["date"]} + ".lmb_html_text_format( "{$news}")." {$play_tag} - - "; + "; + echo ""; } $data = ob_get_contents(); @@ -1178,29 +1177,29 @@ function lmb_sitemap_item( $item_type, $page_url, $img_tab) global $lmb_url_post; - echo " - "; + echo " "; + echo ""; echo " http://{$lmb_url_pre}{$lmb_url_post}${page_url} 2013-08-20 weekly - 0.5 - "; + 0.5"; + echo ""; if( isset( $img_tab)) { - foreach( $img_tab as $img) - { - echo " + foreach( $img_tab as $img) + { + echo " http://{$lmb_url_pre}/{$img["url"]} {$img["title"]} - - "; - } + "; + echo ""; + } } - echo " - "; + echo " "; + echo ""; } @@ -1249,12 +1248,12 @@ function lmb_sitemap_play( $play_type, $play_id, $play_priority) 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]); + $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})"; + $img_tab[$img_idx ]["url"] = "{$cover_path}/{$play_id}-{$cover_tab[$i]}"; + $img_tab[$img_idx++]["title"] = "Langueur Monotone - {$play_title} - Cover {$nb} ({$size})"; } @@ -1262,20 +1261,20 @@ function lmb_sitemap_play( $play_type, $play_id, $play_priority) 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); + $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]); + 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})"; - } + $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})"; + } } @@ -1286,7 +1285,7 @@ function lmb_sitemap_play( $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)); + lmb_sitemap_track( $play_type, $play_id, $play_priority, str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT)); } } @@ -1306,14 +1305,14 @@ function lmb_sitemap_play_type( $play_type) for( $i = 0; $i < count($line); $i++) { - $play_tab = explode( "-", $line[$i]); - $play_priority = $play_tab[0]; - $play_id = $play_tab[1]; + $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); - } + if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" )) + { + lmb_sitemap_play( $play_type, $play_id, $play_priority); + } } } @@ -1334,9 +1333,9 @@ function lmb_sitemap_page() echo " - - - "; +"; + echo ""; + echo ""; $img_tab = array(); $size = 220; @@ -1366,8 +1365,8 @@ function lmb_sitemap_page() $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; echo " - -"; +"; + echo ""; } @@ -1398,66 +1397,66 @@ function lmb_rss_page() http://{$lmb_url_pre}/skin/images/lm-logo2-border-rss.png Langueur Monotone News Page http://{$lmb_url_pre}/ - - "; + "; + echo ""; $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 " "; + 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"]}"; + echo ""; + } + else + { + echo " {$news_tab[$i]["title"]}"; + echo ""; + } - echo " {$pubdate} + echo " {$pubdate} Langueur Monotone - http://{$lmb_url_pre}/#$i - "; + http://{$lmb_url_pre}/#$i"; + echo ""; - 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 "
"; + echo ""; } echo " - - "; +"; + echo ""; $time_stop = microtime_float(); $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " - "; + echo ""; + echo ""; } @@ -1473,16 +1472,16 @@ function lmb_about_tab( $skin_path) 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}")." + + + "; + echo ""; $data = ob_get_contents(); ob_end_clean(); @@ -1507,28 +1506,28 @@ function lmb_history_tab( $skin_path) for( $i = 0; $i < count($history_tab); $i++) { - $history_line = explode( "\n", "{$history_tab[$i]}"); - $css_row = ( $i + 1) % 2 + 1; + $history_line = explode( "\n", "{$history_tab[$i]}"); + $css_row = ( $i + 1) % 2 + 1; - echo " - - {$history_line[0]} - {$history_line[1]} - -
- "; + echo " + + {$history_line[0]} + {$history_line[1]} + +
"; + echo ""; - 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 "
- - - - "; + echo "
+ + + "; + echo ""; } $data = ob_get_contents(); @@ -1615,24 +1614,24 @@ function lmb_playlist_cur( $play_type, $path, $row, $skin_path) for( $i = 0; $i < count($line); $i++, $row++) { - $play_tab = explode( "-", $line[$i]); - $play_priority = $play_tab[0]; - $play_id = $play_tab[1]; + $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()) - { - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - $css_row = ($row+1)%2+1; + 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; - $url = "{$lmb_url_post}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; + $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--; - } + echo " \"\"/ {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]} "; + echo ""; + } + else + { + $row--; + } } return( $row); @@ -1653,30 +1652,30 @@ function lmb_playlist_next( $play_type, $path, $row, $skin_path) for( $i = 0; $i < count($line); $i++, $row++) { - $tab = explode( "\t", $line[$i]); + $tab = explode( "\t", $line[$i]); - if( ( count($tab) > 4 ) && ( "{$tab[4]}" != "")) - { - $icon_tag = "\"\"/"; - } - else - { - $icon_tag = "
"; - } + if( ( count($tab) > 4 ) && ( "{$tab[4]}" != "")) + { + $icon_tag = "\"\"/"; + } + else + { + $icon_tag = "
"; + } - $css_row = ($row + 1) % 2 + 1; + $css_row = ($row + 1) % 2 + 1; - if( count($tab) > 3) - { - $comment = $tab[3]; - } - else - { - $comment = ""; - } + if( count($tab) > 3) + { + $comment = $tab[3]; + } + else + { + $comment = ""; + } - echo " {$icon_tag}{$tab[0]} {$tab[1]} {$tab[2]} {$comment}  - "; + echo " {$icon_tag}{$tab[0]} {$tab[1]} {$tab[2]} {$comment} "; + echo ""; } } @@ -1760,95 +1759,95 @@ function lmb_play_intro( $play_type, $play_id, $play_priority, $skin_path) $cover_path = "{$play_path}/covers/{$play_id}-cover"; $logo_path = "{$play_path}/logos/{$play_id}-logo"; - echo " - - - - - - - - "; + + +
- - - - - - -
\"\"
-
- - - - - - - + - - - + + - - - - - - -
Introduction
-
- "; + echo "
+ + + + + + + +
+ + + + + + +
\"\"
+
+ + + + + + + - - -
Introduction
+
"; + echo ""; $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 "
-
+ echo "
+
- - - - - - -
\"\"
+
+ + + + + + +
\"\"
- - - - - - -
\"\"
-
- - - - + + + + + + + + +
-
- "; +
+ + + + + + +
\"\"
+
+ + + + - - - - - -
+
"; + echo ""; $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 "
-
Hardware & Software
+ echo "
+
Hardware & Software
-
+ + "; + echo ""; } @@ -1888,57 +1887,57 @@ function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id) if( count($track_array) == 0) { - $track_info["status"] = 0; + $track_info["status"] = 0; } else { - $track_info["status"] = 1; + $track_info["status"] = 1; - $cmd="eval \$( metaflac --export-tags-to=- \"${track_file}\" | grep -v -e \".* .*=\" -e \".*-.*=\" | sed -e 's/=/=\\\"/' -e 's/$/\"/') + $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); + 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]; + $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"]=""; - } + 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; + $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]; + $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"); + $search_tab = array( "/flac/", ".flac"); + $replace_tab = array( "/mp3-192/", ".mp3"); - $track_info["url"] = "/".str_replace( $search_tab, $replace_tab, "${track_file}"); + $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"; - } + if( file_exists( "{$play_path}/.hide" )) + { + $track_info["hide"] = "y"; + } + else + { + $track_info["hide"] = "n"; + } } return( $track_info); @@ -1964,62 +1963,62 @@ function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id foreach( $file_dir_tab as $file_dir) { - $dir = basename( $file_dir); - $tab = explode( "-", $dir); - $file_type = $tab[0]; + $dir = basename( $file_dir); + $tab = explode( "-", $dir); + $file_type = $tab[0]; - if( count( $tab) > 1) - { - $file_subtype = $tab[1]; - } - else - { - $file_subtype = ""; - } + 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}"; - } + 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}"); + $file_tab = glob( "{$file_pat}"); - if( count( $file_tab) > 0) - { - $file_url = $file_tab[0]; - } - else - { - $file_url = ""; - } + if( count( $file_tab) > 0) + { + $file_url = $file_tab[0]; + } + else + { + $file_url = ""; + } - $file_tag = "{$file_tag}"; + $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}"; + 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_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}
(${size_tab["size"]} {$size_tab["unit"]})
"; + } - $file_tag = "{$file_tag} - "; + $file_tag = "{$file_tag} + "; } return( "{$file_tag}"); @@ -2046,11 +2045,11 @@ function lmb_track_loc_get( $track_url) if( isset($track_tab[2])) { - $track_loc["track_mix"] = $track_tab[2]; + $track_loc["track_mix"] = $track_tab[2]; } else { - $track_loc["track_mix"] = ""; + $track_loc["track_mix"] = ""; } return( $track_loc); @@ -2074,8 +2073,8 @@ function lmb_tracklist_info_get( $play_type, $play_id, $play_priority) 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"]); + $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); @@ -2097,38 +2096,38 @@ function lmb_tracklist_microdata( $play_type, $play_id, $play_priority) $tracks_nb = count($track_list_info); - echo "
+ echo "
-
+
-
- "; +
"; + echo ""; for( $i = 0; $i < $tracks_nb; $i++) { - echo "
+ echo "
+ echo "\"/> -
- "; +
"; + echo ""; } - echo "
- "; + echo "
"; + echo ""; } @@ -2160,32 +2159,32 @@ function lmb_tracklist( $play_type, $play_id, $play_priority, $skin_path) // $title_tag = " \"\"/"; - echo " - - "; + echo " + "; + echo ""; lmb_tracklist_microdata( $play_type, $play_id, $play_priority); - echo "    Full Album including covers  + echo "    Full Album including covers  {$file_tag} - - "; + "; + echo ""; for( $i = 0, $row = 1; $i < $track_nb; $i++, $row++) { - $track_info = $track_list_info[$i]; + $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}"; + echo ""; } $data = ob_get_contents(); @@ -2207,32 +2206,32 @@ function lmb_file_entry_print( $file_tab, $format_css_id, $size_css_id, $entry_t foreach( $file_tab as $file) { - echo " - - - - - -
(${file["size"]} {$file["unit"]})
- - "; + echo " + + + + + +
(${file["size"]} {$file["unit"]})
+ "; + echo ""; } for( $i = count( $file_tab); $i < $max_nb; $i++) { - echo " - - - - - -
- - "; + echo " + + + + + +
+ "; + echo ""; } - echo " - "; + echo " "; + echo ""; } @@ -2257,33 +2256,33 @@ function lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $cover_id for( $i = 0; $i < count($cover_format_tab); $i++) { - $cover_format = "{$cover_format_tab[$i]}"; + $cover_format = "{$cover_format_tab[$i]}"; - if( "{$cover_format}" != "icon") - { - $file_url = "{$cover_path}/{$play_id}-cover-{$cover_id}-{$cover_format}.png"; - $file_tag = "{$file_tag}"; + if( "{$cover_format}" != "icon") + { + $file_url = "{$cover_path}/{$play_id}-cover-{$cover_id}-{$cover_format}.png"; + $file_tag = "{$file_tag}"; - 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}"; + 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_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_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"]}"; - } - } + $file_tab[$i]["format"] = "{$cover_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } + } } return( $file_tab); @@ -2315,7 +2314,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, "*", "MULTI"); - $entry_tag = " + $entry_tag = "   All the Covers  "; @@ -2323,33 +2322,33 @@ function lmb_coverlist( $play_type, $play_id, $play_priority, $skin_path) 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; - } - } + if( $i == 0) + { + $sheet_name="Front"; + } + else + { + if( $i == 1) + { + $sheet_name="Back"; + } + else + { + $sheet_name=$i-1; + } + } - /* Cover Entry */ + /* Cover Entry */ - $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $i+1, "MONO"); + $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, $i+1, "MONO"); - $css_row = $i % 2 + 1; + $css_row = $i % 2 + 1; - $entry_tag = " - \"\" -  {$sheet_name} "; + $entry_tag = " + \"\" +  {$sheet_name} "; - lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); + lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}", count( $file_tab)); } @@ -2381,29 +2380,29 @@ function lmb_video_file_tab_get( $play_type, $play_id, $play_priority, $video_id 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}"; + $video_format = "{$video_format_tab[$i]}"; + $file_url = "{$video_path}/{$video_id}-{$video_format}.{$video_codec}"; - 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}"; + 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_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"]}"; - } + $file_tab[$i]["format"] = "{$video_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } } return( $file_tab); @@ -2430,29 +2429,29 @@ function lmb_video_file_tab_get2( $play_type, $play_id, $play_priority, $video_i for( $i = 0; $i < count($video_format_tab); $i++) { - $video_format = "{$video_format_tab[$i]}"; - $file_url = "{$video_path}/{$video_id}-{$video_format}"; + $video_format = "{$video_format_tab[$i]}"; + $file_url = "{$video_path}/{$video_id}-{$video_format}"; - 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}"; + 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_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"]}"; - } + $file_tab[$i]["format"] = "{$video_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } } return( $file_tab); @@ -2477,75 +2476,75 @@ function lmb_videolist( $play_type, $play_id, $play_priority, $skin_path) if( count( $codec_tab) == 0 || ( file_exists( "{$video_path}/.hide" ) && ! lmb_admin_is())) { - echo "    -
 No video found...  -    - "; + echo "    +
 No video found...  +   "; + echo ""; } else { - $codec_nb = count( $codec_tab); - $title_tag = "   All the Videos  - "; + $codec_nb = count( $codec_tab); + $title_tag = "   All the Videos  + "; - $file_tab = array(); - $max_file_nb = 0; + $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) + { + $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 = " + 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 = " - \"\"/ -  {$video_subid}  -  {$video_track_name}  -  {$video_mix_name}  -  {$video_codec}  - "; + $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); + } } @@ -2577,33 +2576,33 @@ function lmb_extra_file_tab_get( $play_type, $play_id, $play_priority, $extra_id for( $i = 0; $i < count($extra_format_tab); $i++) { - $extra_format = "{$extra_format_tab[$i]}"; + $extra_format = "{$extra_format_tab[$i]}"; - if( "{$extra_format}" != "icon") - { - $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}"; + if( "{$extra_format}" != "icon") + { + $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_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_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"]}"; - } - } + $file_tab[$i]["format"] = "{$extra_format}"; + $file_tab[$i]["size"] = "{$size_tab["size"]}"; + $file_tab[$i]["unit"] = "{$size_tab["unit"]}"; + } + } } return( $file_tab); @@ -2628,69 +2627,69 @@ function lmb_extralist( $play_type, $play_id, $play_priority, $skin_path) if( count($format_tab) == 0 || ( file_exists( "{$extra_path}/.hide" ) && ! lmb_admin_is())) { - echo "    -
 No extra found...  -    - "; + echo "    +
 No extra found...  +   "; + echo ""; } else { - $format_nb = count($format_tab); - $title_tag = "   All the Extras  - "; + $format_nb = count($format_tab); + $title_tag = "   All the Extras  + "; - $file_tab = array(); - $max_file_nb = 0; + $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) + { + $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}"); + foreach( $format_tab as $format) + { + $extra_format = str_replace( "_", "/", "{$format}"); - $entry_tag = " + $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(); @@ -2718,64 +2717,64 @@ function lmb_links_tab( $play_type, $play_id, $play_priority) exec( $cmd, $line); - echo " - - "; + echo "
+ "; + echo ""; for( $i = 0; $i < count($line); $i++) { - $tab = explode( "\t", $line[$i]); - $css_row = ( $i + 1) % 2 + 1; + $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]}"; + $text = lmb_html_text_format( "{$tab[0]}"); + $link = htmlentities( "{$tab[1]}"); + $image = "{$tab[2]}"; - if( count( $tab) > 3) - { - $flag = "{$tab[3]}"; - } - else - { - $flag = ""; - } + if( count( $tab) > 3) + { + $flag = "{$tab[3]}"; + } + else + { + $flag = ""; + } - if( $flag == "nf") - { - $attr = "rel=\"nofollow\" "; - } - else - { - $attr = ""; - } + if( $flag == "nf") + { + $attr = "rel=\"nofollow\" "; + } + else + { + $attr = ""; + } - if( $image[0] == "/") - { - $image_tag = "\"\"/"; - } - else - { - $image_tag = "
"; - } + if( $image[0] == "/") + { + $image_tag = "\"\"/"; + } + else + { + $image_tag = "
"; + } - echo " - - - - "; + echo " + + + "; + echo ""; } - echo " - - - -
- - -
+ + +
Links
- "; + echo " + Links + + + "; + echo ""; } @@ -2789,46 +2788,46 @@ function lmb_play_last( $play_type, $play_id, $play_priority, $skin_path) $play_path = lmb_play_path_get( $play_type, $play_id, $play_priority); - echo " - - - - - - - "; + + +
- - - - - - - + + - - -
Thanks
+ echo "
+ + + + - + + +
+ + + + + + + - - -
Thanks
"; $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 ""; - echo "
-
- "; + echo "
+
"; + echo ""; lmb_links_tab( $play_type, $play_id, $play_priority); echo "
-
+ + "; + echo ""; } @@ -2880,20 +2879,20 @@ function lmb_play_type_name_get( $play_type_id) { switch( "{$play_type_id}") { - case "ep": - { - return( "EP"); - } + case "ep": + { + return( "EP"); + } - case "lp": - { - return( "LP"); - } + case "lp": + { + return( "LP"); + } - case "oldies": - { - return( "Oldies"); - } + case "oldies": + { + return( "Oldies"); + } } } @@ -2940,21 +2939,21 @@ function lmb_play_page( $play_type, $play_id, $play_priority) if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is())) { - $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); - $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_cache_test( $play_path); - 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); + 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_redirect_page( ""); } } @@ -2986,42 +2985,42 @@ function lmb_tracklist_body( $skin_path) for( $i = 0, $row = 1; $i < $track_nb; $i++) { - $css_row = ($row+1)%2+1; + $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_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}"; + $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); + $path = lmb_playtype_path_get( $play_type); - if( "{$track_hide}" == "y") - { - $hide_flag="*"; - } - else - { - $hide_flag=""; - } + if( "{$track_hide}" == "y") + { + $hide_flag="*"; + } + else + { + $hide_flag=""; + } - if( ( "{$track_hide}" == "n") || lmb_admin_is()) - { + if( ( "{$track_hide}" == "n") || lmb_admin_is()) + { - echo " "; + echo " "; - echo " {$row}      {$track_length}  {$play_type_name}    - "; - $row++; - } + echo " {$row}      {$track_length}  {$play_type_name}   "; + echo ""; + $row++; + } } $data = ob_get_contents(); @@ -3062,11 +3061,11 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) if ($track_info["safe_creative"] != "") { - $rowspan = 9; + $rowspan = 9; } else { - $rowspan = 8; + $rowspan = 8; } /* @@ -3083,62 +3082,62 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) "; */ - echo " - + echo "
+ +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "; +
Group Name
Album
Track Number
{$track_info["id"]}
Track Name
{$track_info["title"]}
Mix Name
{$track_info["mix"]}
Composer
{$track_info["composer"]}
Comment
{$track_info["comment"]}
Length
{$track_info["length"]}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "; + echo ""; if ($track_info["safe_creative"] != "") { - echo " - - - - "; + echo " + + + "; + echo ""; } - echo " -
Group Name
Album
Track Number
{$track_info["id"]}
Track Name
{$track_info["title"]}
Mix Name
{$track_info["mix"]}
Composer
{$track_info["composer"]}
Comment
{$track_info["comment"]}
Length
{$track_info["length"]}
Safe Creative
Safe Creative
+ echo "
- - - "; + + "; + echo ""; } @@ -3156,31 +3155,31 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; - echo " - - - + + +
-
- "; + echo " + + + - - -
+
"; + echo ""; if( file_exists( "{$lyrics_file}")) { - $lyrics_string = file_get_contents( "{$lyrics_file}"); + $lyrics_string = file_get_contents( "{$lyrics_file}"); } else { - $lyrics_string = "No lyrics found...\n"; + $lyrics_string = "No lyrics found...\n"; } - echo str_replace( "\n", "
\n ", "{$lyrics_string}"); + echo str_replace( "\n", "
\n ", "{$lyrics_string}"); echo "
-
- "; +
"; + echo ""; } @@ -3210,11 +3209,11 @@ function lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id) if( "{$track_info["mix"]}" == "") { - return( "{$track_info["title"]}"); + return( "{$track_info["title"]}"); } else { - return( "{$track_info["title"]} ({$track_info["mix"]})"); + return( "{$track_info["title"]} ({$track_info["mix"]})"); } } @@ -3237,11 +3236,11 @@ function lmb_player_insert( $play_type, $play_id, $play_priority, $track_id, $tr if( "{$track_mix}" == "") { - $track_file_base = "{$track_id}-{$track_name}"; + $track_file_base = "{$track_id}-{$track_name}"; } else { - $track_file_base = "{$track_id}-{$track_name}-{$track_mix}"; + $track_file_base = "{$track_id}-{$track_name}-{$track_mix}"; } $track_file_ogg = "{$track_path}/ogg-256/{$track_file_base}.ogg"; @@ -3249,9 +3248,9 @@ function lmb_player_insert( $play_type, $play_id, $play_priority, $track_id, $tr $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); echo " - - - +
+ + - - -
- "; + + + "; + echo ""; } @@ -3284,34 +3283,34 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac $border2_size = $cover_size + 10; - echo "
- - - - - - + + "; + echo ""; } @@ -3421,54 +3420,54 @@ function lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $trac switch("{$video_res}") { - 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"; + 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"; + 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; - } + 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"; + 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; - } + 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"; + 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; - } + break; + } } if( "{$track_mix}" == "") { - $video_file_base = "{$track_id}-{$track_name}"; + $video_file_base = "{$track_id}-{$track_name}"; } else { - $video_file_base = "{$track_id}-{$track_name}-{$track_mix}"; + $video_file_base = "{$track_id}-{$track_name}-{$track_mix}"; } $video_file_ogv = "{$video_path}/{$video_file_base}-{$video_res}.ogv"; @@ -3478,18 +3477,19 @@ function lmb_track_video( $play_type, $play_id, $play_priority, $track_id, $trac if( file_exists( "{$video_file_mp4}")) { - echo " - "; - ob_start(); + echo " "; + echo ""; + + ob_start(); - echo " - - - - - - - + + + + + + + - + - - + + - + - + - - - - - - "; + + + + + "; + echo ""; - $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", "/{$logo_path}-1-1024.png", $data, $skin_path); + lmb_make_tab( "video", "videos", "r", "/{$logo_path}-1-128.png", "/{$logo_path}-1-1024.png", $data, $skin_path); - echo " - - "; + echo " + "; + echo ""; } } @@ -3546,125 +3546,125 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t $file_tag = lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id); - echo " - - + + +
- - - - - + + +
- - - - - - -
\"\"
-
- - - - - + echo " + + - - - - - - "; + + + +
Information

+ + + + + +
+ + + + + - - -
+ + - + + +
- "; + \"\"
+
+ + + + + + + + + +
Information
"; + echo ""; lmb_track_info( $play_type, $play_id, $play_priority, $track_id); @@ -3328,63 +3327,63 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac - - - -
- "; + "; + echo ""; lmb_player_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); - echo "
+ echo "
+
- - - - - - -
- - + + + - - - -
+ + + + + + + + + +
+ + - - - - - - -
- "; + "; + echo ""; lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); - echo "
Lyrics
+ echo "
Lyrics
- - - - - - -
\"\"
-
-
-





+ + + + + + +
\"\"
+
+
+





+ echo "
- +











- - - - - - - "; + echo " + + + +
- - - - - - {$file_tag} - "; + echo " + + - - -
Download 

+ + + + + +
+ + + + + + {$file_tag} + "; $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"]}"; - } + 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 " -
Download 
+ echo "

- - - "; +
+ "; + echo ""; $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]); + $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]; + $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( 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; + 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_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"]}"; + $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"]); + $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"]; + $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++; - } + $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 " - - - -
{$mix_tab[$k]["play_type_name"]}
{$mix_tab[$k]["play_type_name"]}
Mixes 
-
-
Mixes 
+
+ + "; + echo ""; } @@ -3683,11 +3683,11 @@ function lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_ if( isset( $tab[2])) { - $track_mix = $tab[2]; + $track_mix = $tab[2]; } else { - $track_mix = ""; + $track_mix = ""; } /* --- Introduction --- */ @@ -3715,19 +3715,19 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) if( file_exists( $play_path) && ( ! file_exists( "{$play_path}/.hide" ) || lmb_admin_is())) { - $skin_path = "{$play_path}/skin"; - $track_title = lmb_title_get( $play_type, $play_id, $play_priority, $track_id); - $track_fulltitle = lmb_fulltitle_get( $play_type, $play_id, $play_priority, $track_id); + $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_cache_test( $play_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); + lmb_header( 4, "Langueur Monotone - {$track_fulltitle} - Track Page", "{$track_fulltitle} - Track", "Langueur Monotone track page, giving all the information about {$track_fulltitle} track", "track, {$track_title}, {$track_fulltitle}", 962, "{$skin_path}"); + lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_path); + lmb_footer( $skin_path); } else { - lmb_redirect_page( ""); + lmb_redirect_page( ""); } } @@ -3804,20 +3804,20 @@ function lmb_download_file( $play_dir, $file_list, $mode, $download_name) { if( $mode == "SIZE") { - return( lmb_download_zip( "{$play_dir}", $file_list, "SIZE")); + return( lmb_download_zip( "{$play_dir}", $file_list, "SIZE")); } else { - $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "SIZE"); + $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "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-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); flush(); - $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "DUMP"); + $zip_size = lmb_download_zip( "{$play_dir}", $file_list, "DUMP"); } } @@ -3834,13 +3834,13 @@ function lmb_download_tracks( $play_type, $play_id, $play_priority, $file_type, if( isset($file_array[0]) && file_exists( $file_array[0])) { - $file_list = "tracks/{$file_type}/* covers/{$play_id}-*-800.png"; + $file_list = "tracks/{$file_type}/* covers/{$play_id}-*-800.png"; - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$file_type}")); + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$file_type}")); } else { - lmb_redirect_page( ""); + lmb_redirect_page( ""); } } @@ -3858,11 +3858,11 @@ function lmb_download_covers( $play_type, $play_id, $play_priority, $cover_forma if( isset($file_array[0]) && file_exists( $file_array[0])) { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$cover_format}")); + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$cover_format}")); } else { - lmb_redirect_page( ""); + lmb_redirect_page( ""); } } @@ -3880,11 +3880,11 @@ function lmb_download_videos( $play_type, $play_id, $play_priority, $video_forma if( isset($file_array[0]) && file_exists( $file_array[0])) { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$video_format}")); + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$video_format}")); } else { - lmb_redirect_page( ""); + lmb_redirect_page( ""); } } @@ -3902,11 +3902,11 @@ function lmb_download_extras( $play_type, $play_id, $play_priority, $extra_forma if( isset($file_array[0]) && file_exists( $file_array[0])) { - return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$extra_format}")); + return( lmb_download_file( $play_dir, $file_list, $mode, "{$play_id}-{$extra_format}")); } else { - lmb_redirect_page( ""); + lmb_redirect_page( ""); } } @@ -3930,8 +3930,8 @@ function lmb_body( $id, $name, $curver, $currel)

-
-    ";
+    
";
+    echo "";
 
     lmb_tab_dump( $description, 0);
 
@@ -3939,39 +3939,39 @@ function lmb_body( $id, $name, $curver, $currel)
     



-

- "; +

"; + echo ""; echo "



-
Last Release Notes:
- "; +
Last Release Notes:
"; + echo ""; - echo "
-    ";
+    echo "    
";
+    echo "";
 
     lmb_tab_dump( $change_log, 0);
 
-    echo "    
- "; + echo "
"; + echo ""; $lmb_list = lmb_list_get( $id, $curver, $currel); if( $lmb_list != "") { - echo"
+ 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"
@@ -4029,8 +4029,8 @@ function lmb_cl_header( $id, $name, $curver, $currel)
Rx3.Org Main Page  /  Rx3 Free Software Packaging Main Page  /  Rx3 $name Home Page

- - "; +"; + echo ""; } @@ -4051,148 +4051,148 @@ function lmb_get_proceed( $get_array) switch ($page_id) { - case "sitemap": - { - 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); - } - else - { - lmb_redirect_page( ""); - } + case "sitemap": + { + 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); + } + else + { + lmb_redirect_page( ""); + } - 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); - } - else - { - lmb_redirect_page( ""); - } - break; - } - - case "download": - { - $play_type = lmb_get_array( $get_array, "type", ""); - $play_id = lmb_get_array( $get_array, "id", ""); - $play_priority = lmb_get_array( $get_array, "priority", ""); + 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); + } + else + { + lmb_redirect_page( ""); + } + break; + } + + case "download": + { + $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)) - { - $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; - } + 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; + } - default: - { - lmb_redirect_page( ); - break; - } - } - } - else - { - lmb_redirect_page( ); - } - - break; - } + default: + { + lmb_redirect_page( ); + break; + } + } + } + else + { + lmb_redirect_page( ); + } + + break; + } - case "login": - { - lmb_login_page( $lmb_tab); - break; - } + case "login": + { + lmb_login_page( $lmb_tab); + break; + } - case "main": - { - lmb_main_page( ); - break; - } + case "main": + { + lmb_main_page( ); + break; + } - default: - { - lmb_redirect_page( ); - break; - } + default: + { + lmb_redirect_page( ); + break; + } } }