From ab96fd9f6358c93691b3c12031b9cb6967993ec5 Mon Sep 17 00:00:00 2001 From: agibert Date: Thu, 17 Jan 2013 23:05:06 +0000 Subject: [PATCH] - Add google+ and facebook buttons support, - Add welcome tab on home page, - Add google analytic support, - Add microdata support in tracklist page. - Replace title and sub title images by dynamic text with custom font, - Move W3C buttons on admin page. --- html/default.css | 132 +++++++- html/lmbrowse.php | 782 +++++++++++++++++++++++++++++++++------------- 2 files changed, 694 insertions(+), 220 deletions(-) diff --git a/html/default.css b/html/default.css index b48b19e..c49ae88 100644 --- a/html/default.css +++ b/html/default.css @@ -60,7 +60,6 @@ tr.row0 color: #FFFFFF; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 24px; - font-weight: bold; } tr.row1 @@ -89,6 +88,31 @@ tr.row4 +tr.welcome0, +tr.welcome1, +tr.welcome2 +{ + font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; +} + +tr.welcome0 +{ + height: 10px; + background-color: #222222; + color: #FFFFFF; + font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; + font-size: 24px; + font-weight: bold; +} + +tr.welcome1 +{ + height: 220px; + background-color: #333333; +} + + + tr.news0, tr.news1, tr.news2 @@ -139,7 +163,7 @@ tr.about0 tr.about1 { - height: 50px; + height: 220px; background-color: #333333; } @@ -520,6 +544,41 @@ td.col5 +td.welcome0, +td.welcome00, +td.welcome01, +td.welcome1 +{ + vertical-align: middle; + text-align: center; + font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; + font-size: 14px; +} + +td.welcome0 +{ + width: 96px; + background-color: #222222; +} + +td.welcome00 +{ + width: 10px; + background-color: #000000; +} + +td.welcome01 +{ + width: 20px; +} + +td.welcome1 +{ + text-align: left; + font-size: 16px; +} + + td.news0, td.news00, td.news01, @@ -757,6 +816,7 @@ td.title_l td.title_r { + font-family: CustomFont; vertical-align: middle; text-align: right; } @@ -809,11 +869,11 @@ td.intro2 td.intro0 { + font-family: CustomFont; text-align: right; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -859,11 +919,11 @@ td.hardware2 td.hardware0 { + font-family: CustomFont; text-align: left; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -1181,11 +1241,11 @@ td.links2 td.links0 { + font-family: CustomFont; text-align: right; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -1231,11 +1291,11 @@ td.thanks2 td.thanks0 { + font-family: CustomFont; text-align: left; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -1278,11 +1338,11 @@ td.info2 td.info0 { + font-family: CustomFont; text-align: right; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -1352,11 +1412,11 @@ td.lyrics1 td.lyrics0 { + font-family: CustomFont; text-align: left; width: 96px; background-color: #222222; font-size: 24px; - font-weight: bold; padding-right: 10px; padding-left: 10px; } @@ -1687,3 +1747,59 @@ input.logout:hover { background-image: url("/images/button-logout-hi.png"); } + + + +td.title +{ + background-image: url(/images/title-4.png); +} + +td.subtitle +{ +} + + +/* +@font-face +{ + font-family: CustomFont; + src: url('Moltorv2.ttf'); +} +*/ + +@font-face +{ + font-family: CustomFont; + src: url('/fonts/moltorv2.eot'); +} + +@font-face +{ + font-family: CustomFont; + src: url('/fonts/moltorv2.ttf'); +} + +h1.lm, +h1.lm2, +h2.lm +{ + font-family: CustomFont; + vertical-align: sub; + + margin:0; + border:0; + + text-shadow: 5px 5px 5px #666666; +} + +h1.lm +{ + font-size: 40px; +} + +h2.lm, +td.subtitle +{ + font-size: 30px; +} diff --git a/html/lmbrowse.php b/html/lmbrowse.php index 2330ff8..3679f1a 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -1,8 +1,8 @@ ", "", "", "", "", + "", + "", "", - "" + "", + "", + "", + "", + "", + "", + "" ); $replace_tab = array( - " ", "&", - "
\n ", + "
\n ", + " ", "", "", "", "", + "", + "", "", - "" + "", + "", + "", + " + +
", + " +
 
+", + " +
+
+", + " +
+ + +
+" ); return( str_replace( $search_tab, $replace_tab, $input_text)); } +/* +G+1 Synchronius + +
+ +G+1 Asynchronius + +
 
+ + + + +
 
+ + + + + + + + + + + + + + + + + + + + + + +*/ + /*--------------------------------------------------------------------------------------------------------------------*/ /* Make Tab */ @@ -175,8 +420,8 @@ function lmb_make_tab( $tab_id, $css_id, $tab_side, $logo_path, $data) $logo_side="l"; } - $tab_tag = "\"\""; - $logo_tag = "\"\""; + $tab_tag = "\"\"/"; + $logo_tag = "\"\"/"; if( "$tab_side" == "l") { @@ -229,7 +474,7 @@ function lmb_spacer( $size) for( $i = 0; $i < $size; $i++) { - echo "
"; + echo "
"; } echo " @@ -264,7 +509,7 @@ function lmb_menu( $menu_id) { if( $i == $menu_id) { - echo " \"Home + echo " \"Home "; } else @@ -280,7 +525,7 @@ function lmb_menu( $menu_id) { if( $i == $menu_id) { - echo " \"About\" + echo " \"About\"/ "; } else @@ -295,7 +540,7 @@ function lmb_menu( $menu_id) { if( $i == $menu_id) { - echo " \"Discography\" + echo " \"Discography\"/ "; } else @@ -314,7 +559,7 @@ function lmb_menu( $menu_id) if( $i < 2) { - echo " \"\" + echo " \"\"/ "; } } @@ -326,11 +571,13 @@ function lmb_menu( $menu_id) /* Header */ /*--------------------------------------------------------------------------------------------------------------------*/ -function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_width) +function lmb_header( $page_id, $page_name, $img_path, $img_alt, $description, $keywords, $min_width) { global $lmb_keywords; + header('Content-type: text/html; charset=iso-8859-1'); + $page_title = "$page_name"; $keywords = "$lmb_keywords,$keywords"; @@ -344,59 +591,91 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_ $mw_tag = ""; } - echo " - - - - - - - - $page_name +// echo ""; +// echo ""; + echo ""; + +// echo ""; + echo " "; - echo " - - + echo " + + + + + + + $page_name + +"; + + echo " +"; + + echo " +"; + + echo "
- + - - - + +"; +/* + echo " +"; +*/ + + echo " +"; + + echo " - + - - +"; +/* + echo " +"; +*/ + echo " "; - echo " -"; - - - echo " - - + echo " - + - + - + - + - + - - + - + @@ -544,6 +827,36 @@ function lmb_footer() +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Welcome Tab */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_welcome_tab( ) +{ + $welcome_file = "welcome.txt"; + $welcome_string = file_get_contents( "{$welcome_file}"); + + + ob_start(); + + echo " + + + + + +"; + + $data = ob_get_contents(); + ob_end_clean(); + + lmb_make_tab( "welcome", "welcome", "l", "/images/lm-logo3-n-220.png", $data); +} + + + /*--------------------------------------------------------------------------------------------------------------------*/ /* News Tab */ /*--------------------------------------------------------------------------------------------------------------------*/ @@ -576,7 +889,7 @@ function lmb_news_tab( ) $play_priority = $tab[5]; $link_tag = ""; - $img_tag = "\"\""; + $img_tag = "\"\"/"; $height = 110; $play_tag=" "; @@ -601,7 +914,7 @@ function lmb_news_tab( ) $data = ob_get_contents(); ob_end_clean(); - lmb_make_tab( "news", "news", "l", "/images/lm-logo3-n-220.png", $data); + lmb_make_tab( "news", "news", "r", "/images/lm-logo3-n-220.png", $data); } @@ -612,6 +925,9 @@ function lmb_news_tab( ) function lmb_main_body() { + lmb_welcome_tab(); + + lmb_spacer(4); lmb_news_tab(); } @@ -627,7 +943,7 @@ function lmb_main_page() global $lmb_tab; - lmb_header( 0, "Langueur Monotone - Home Page", "/images/title-home_page.png", "Home Page", "home page", 0); + lmb_header( 0, "Langueur Monotone - Home Page", "/images/title-home_page.png", "Home Page", "Langueur Monotone home page, entry point to information, news and links", "home page", 0); lmb_main_body(); lmb_footer(); } @@ -647,12 +963,12 @@ function lmb_about_tab( ) echo " - - + "; @@ -686,16 +1002,16 @@ function lmb_history_tab() @@ -734,7 +1050,7 @@ function lmb_about_page() global $lmb_tab; - lmb_header( 1, "Langueur Monotone - About Page", "/images/title-about.png", "About", "about", 0); + lmb_header( 1, "Langueur Monotone - About Page", "/images/title-about.png", "About", "Langueur Monotone about page, describing the project, the members and its history", "about", 0); lmb_about_body( $lmb_tab); lmb_footer(); } @@ -794,12 +1110,12 @@ function lmb_playlist_cur( $play_type, $path, $row) $url = "{$lmb_url}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; - echo " + echo " "; } } - return ($row); + return( $row); } @@ -830,7 +1146,7 @@ function lmb_playlist_next( $play_type, $path, $row) $css_row=($row+1)%2+1; - echo " + echo " "; } } @@ -890,7 +1206,7 @@ function lmb_discography_page() global $lmb_tab; - lmb_header( 2, "Langueur Monotone - Discography Page", "/images/title-discography.png", "Discography", "discography", 0); + lmb_header( 2, "Langueur Monotone - Discography Page", "/images/title-discography.png", "Discography", "Langueur Monotone discography page, listing the released and the futures ep, lp and oldies", "discography", 0); lmb_discography_body(); lmb_footer(); } @@ -916,7 +1232,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority)
\"\"\"\"/ \"\"\"Langueur\"\"\"\"/\"Langueur

Langueur Monotone

\"\"/ \"\"\"\"/
\"$img_alt\"/

$img_alt

\"$img_alt\"
\"\"\"\"/ \"\"\"\"/
- + "; @@ -404,7 +683,7 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_ lmb_menu($page_id); echo " - +
\"\"\"\"/ \"\"\"\"/
@@ -449,14 +728,14 @@ function lmb_footer()
\"\" \"\"/ \"\" \"\"/
\"\"\"\"/ @@ -466,19 +745,15 @@ function lmb_footer() - + - - - - - +
         
+ @@ -487,13 +762,21 @@ function lmb_footer() if( lmb_admin_is()) { echo " - + + + + + + + + + @@ -503,10 +786,10 @@ function lmb_footer() else { echo " @@ -528,11 +811,11 @@ function lmb_footer()
                 -
+
- - + +
-
+
- - + +
\"\"\"\"/
\"\"\"\"/
+ ".lmb_html_text_format( "{$welcome_string}")." +
{$link_tag}{$play_name} {$link_tag}{$img_tag}
"; + "; -// 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}")."
{$history_line[0]} {$history_line[1]} -
+
"; for( $j = 2; $j < count($history_line); $j++) { - echo " ".lmb_html_text_format( "{$history_line[$j]}")."
+ echo " ".lmb_html_text_format( "{$history_line[$j]}")."
"; } - echo "
+ echo "
\"\"{$play_info["name"]} {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]} 
\"\"/{$play_info["name"]} {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]} 
\"\"{$tab[0]} {$tab[1]} {$tab[2]} {$tab[3]} 
\"\"/{$tab[0]} {$tab[1]} {$tab[2]} {$tab[3]} 
- +
\"\"\"\"/
@@ -929,16 +1245,17 @@ function lmb_play_intro( $play_type, $play_id, $play_priority) +
"; $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 "
@@ -950,7 +1267,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority) - +
\"\"
\"\"/
@@ -959,7 +1276,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority) - +
\"\"\"\"/
@@ -971,16 +1288,17 @@ function lmb_play_intro( $play_type, $play_id, $play_priority) -
+
"; $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 @@ -991,6 +1309,7 @@ function lmb_play_intro( $play_type, $play_id, $play_priority) + "; } @@ -1034,8 +1353,14 @@ function lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id) $sec = $total - $min * 60; $track_info["length"] = "{$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}"); + return( $track_info); } @@ -1069,7 +1394,7 @@ function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id $file_tag = "{$file_tag}"; -// echo "TI: $track_id | FD: $tab[0] | FP: $file_pat | file_url: {$file_url}
"; +// echo "TI: $track_id | FD: $tab[0] | FP: $file_pat | file_url: {$file_url}
"; if( count( glob( "{$file_url}"))) { @@ -1098,6 +1423,74 @@ function lmb_track_file_tag_get( $play_type, $play_id, $play_priority, $track_id +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Track List Info Get */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_tracklist_info_get( $play_type, $play_id, $play_priority) +{ + $play_path = "discography/{$play_type}/{$play_priority}-{$play_id}"; + $track_path = "{$play_path}/tracks"; + + + $track_list = glob( "{$track_path}/flac/*.flac"); + + $track_list_info = array(); + + for( $i = 0; $i < count($track_list); $i++) + { + $track_id = preg_replace( "/-.*/", "", basename( "{$track_list[$i]}", ".flac")); + $track_list_info[$i] = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); + } + + return( $track_list_info); +} + + + +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Track List Microdata */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_tracklist_microdata( $play_type, $play_id, $play_priority) +{ + $play_path = "discography/{$play_type}/{$play_priority}-{$play_id}"; + $cover_path = "{$play_path}/covers/{$play_id}-cover"; + + + $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + + $tracks_nb = count($track_list_info); + + echo "
+ + + +
+ +
+"; + + for( $i = 0; $i < $tracks_nb; $i++) + { + echo "
+ + + + + + + +
+"; + } + + echo "
+"; +} + + + /*--------------------------------------------------------------------------------------------------------------------*/ /* Track List */ /*--------------------------------------------------------------------------------------------------------------------*/ @@ -1106,34 +1499,44 @@ function lmb_tracklist( $play_type, $play_id, $play_priority) { global $lmb_url; - $play_path = "discography/{$play_type}/{$play_priority}-{$play_id}"; $cover_path = "{$play_path}/covers/{$play_id}-cover"; $logo_path = "{$play_path}/logos/{$play_id}-logo"; $track_path = "{$play_path}/tracks"; - $file_type_tab = array( "flac", "ogg", "mp3", "med"); + $track_list_info = lmb_tracklist_info_get( $play_type, $play_id, $play_priority); + + $track_nb = count($track_list_info); + ob_start(); - $track_list = glob( "{$track_path}/flac/*.flac"); - - $size=count($track_list) + 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 = " \"\""; + $title_tag = " \"\"/"; - echo "    Full Album including covers {$file_tag} + + echo " + "; - for( $i = 0, $row = 1; $i < count($track_list); $i++, $row++) + + lmb_tracklist_microdata( $play_type, $play_id, $play_priority); + + echo "    Full Album including covers  +{$file_tag} + +"; + + for( $i = 0, $row = 1; $i < $track_nb; $i++, $row++) { - $track_id = preg_replace( "/-.*/", "", basename( "{$track_list[$i]}", ".flac")); - $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); + $track_info = $track_list_info[$i]; $css_row = ($row+1)%2+1; - $track_url = "{$lmb_url}?page=track&type={$play_type}&id={$play_id}&priority={$play_priority}&tid={$track_id}"; + $track_id = str_pad( "{$track_info["id"]}", 2, '0', STR_PAD_LEFT); + $track_url = "{$lmb_url}?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); @@ -1148,7 +1551,7 @@ function lmb_tracklist( $play_type, $play_id, $play_priority) lmb_make_tab( "tracks", "tracks", "r", "/images/lm-logo3-n-96.png", $data); - return ($row); + return( $row); } @@ -1258,7 +1661,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority) $file_tab = lmb_cover_file_tab_get( $play_type, $play_id, $play_priority, "*", "MULTI"); $entry_tag = " -  All the Covers  +  All the Covers  "; lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}"); @@ -1288,7 +1691,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority) $css_row = $i % 2 + 1; $entry_tag = " -
\"\" + \"\"/  {$sheet_name} "; lmb_file_entry_print( $file_tab, "covers3", "covers4", "{$entry_tag}"); @@ -1301,7 +1704,7 @@ function lmb_coverlist( $play_type, $play_id, $play_priority) lmb_make_tab( "covers", "covers", "l", "{$logo_path}-2-128.png", $data); - return ($row); + return( $row); } @@ -1374,7 +1777,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority) if( count($video_tab) == 0 || ( file_exists( "{$video_path}/.hide" ) && ! lmb_admin_is())) { echo "    - \"\" No video found...  + \"\"/ No video found...     "; } @@ -1386,7 +1789,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority) $entry_tag = " -   All the Videos  +   All the Videos  "; lmb_file_entry_print( $file_tab, "videos5", "videos6", $entry_tag); @@ -1411,7 +1814,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority) $css_row = $i % 2 + 1; $entry_tag = " - \"\" + \"\"/  {$video_id}   {$video_track_name}   {$video_mix_name}  @@ -1427,7 +1830,7 @@ function lmb_videolist( $play_type, $play_id, $play_priority) lmb_make_tab( "videos", "videos", "r", "{$logo_path}-1-128.png", $data); - return ($row); + return( $row); } @@ -1503,14 +1906,14 @@ function lmb_extralist( $play_type, $play_id, $play_priority) if( count($format_tab) == 0 || ( file_exists( "{$extra_path}/.hide" ) && ! lmb_admin_is())) { echo "    - \"\" No extra found...  + \"\"/ No extra found...     "; } else { $format_nb = count($format_tab); - $title_tag = "   All the Extras  + $title_tag = "   All the Extras  "; foreach( $format_tab as $format) @@ -1549,7 +1952,7 @@ ${title_tag} &nbs $css_row = $i % 2 + 1; $entry_tag = " - \"\" + \"\"/  {$extra_type}   {$extra_subid}   {$extra_format}  @@ -1591,16 +1994,26 @@ function lmb_links_tab( $play_type, $play_id, $play_priority) $tab = explode( "\t", $line[$i]); $css_row = ( $i + 1) % 2 + 1; - $text = "{$tab[0]}"; + $text = lmb_html_text_format( "{$tab[0]}"); $link = htmlentities( "{$tab[1]}"); $image = "{$tab[2]}"; + $flag = "{$tab[3]}"; + + if( $flag == "nf") + { + $attr = "rel=\"nofollow\" "; + } + else + { + $attr = ""; + } echo " - {$text} + {$text} - \"\" + \"\"/ "; @@ -1643,7 +2056,7 @@ function lmb_play_last( $play_type, $play_id, $play_priority) $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}")."
"; @@ -1657,12 +2070,12 @@ function lmb_play_last( $play_type, $play_id, $play_priority) "; lmb_links_tab( $play_type, $play_id, $play_priority); -// include "{$play_path}/.links"; echo " + "; } @@ -1683,6 +2096,7 @@ function lmb_play_body( $play_type, $play_id, $play_priority) /* --- Tracks --- */ lmb_tracklist( $play_type, $play_id, $play_priority); +// lmb_tracklist_microdata( $play_type, $play_id, $play_priority); lmb_spacer(5); @@ -1774,10 +2188,11 @@ function lmb_play_page( $play_type, $play_id, $play_priority) $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); $play_name = lmb_play_type_name_get( $play_type); - $play_title = "{$play_name} - {$play_info["name"]}"; + $play_title = "{$play_info["name"]} - {$play_name}"; $play_image = "{$play_type}"; - lmb_header( 3, "Langueur Monotone - {$play_title} Page", "/images/title-{$play_image}.png", "{$play_name}", "{$play_type},{$play_info["name"]}", 0); +// lmb_header( 3, "Langueur Monotone - {$play_title} Page", "/images/title-{$play_image}.png", "{$play_name}", "Langueur Monotone play page, giving all the information about {$play_info["name"]} {$play_name}", "{$play_type},{$play_info["name"]}", 0); + lmb_header( 3, "Langueur Monotone - {$play_title} Page", "/images/title-{$play_image}.png", "{$play_title}", "Langueur Monotone play page, giving all the information about {$play_info["name"]} {$play_name}", "{$play_type},{$play_info["name"]}", 0); lmb_play_body( $play_type, $play_id, $play_priority); lmb_footer(); } @@ -1805,6 +2220,20 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) $rowspan = 8; } +/* + echo "
+ +
+ + + + + +
+
+"; +*/ + echo " @@ -1849,7 +2278,7 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) { echo " - + "; } @@ -1882,7 +2311,7 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra @@ -2009,9 +2438,9 @@ function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $t
Update Required - To play the media you will need to either update your browser to a recent version or update your Flash plugin. + To play the media you will need to either update your browser to a recent version or update your Flash plugin.
- + "; @@ -2054,7 +2483,7 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac $border2_size= $cover_size + 10; - echo " + echo " @@ -2139,7 +2568,7 @@ echo "
Safe CreativeLinkLink
-
+
"; @@ -1895,9 +2324,9 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra $lyrics_string = "No lyrics found...\n"; } - echo str_replace( "\n", "
\n ", "{$lyrics_string}"); + echo str_replace( "\n", "
\n ", "{$lyrics_string}"); - echo "
+ echo "


@@ -2068,7 +2497,7 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac
- +
\"\"\"\"/
@@ -2085,7 +2514,7 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac lmb_track_info( $play_type, $play_id, $play_priority, $track_id); -// echo "
"; +// echo "
"; echo "
- +
\"\"\"\"/
@@ -2151,8 +2580,9 @@ echo " + -




+




"; } @@ -2175,13 +2605,13 @@ 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 "
- +
\"\"\"\"/ @@ -2191,7 +2621,7 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t {$file_tag}
-
+
"; @@ -2281,11 +2711,11 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); - $track_title = "Track - {$track_info["title"]} ({$track_info["mix"]})"; + $track_title = "{$track_info["title"]} ({$track_info["mix"]}) - Track"; // lmb_header( 4, "Langueur Monotone - Track Page", "/images/title-track.png", "Track", 962); // lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 1234); - lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 962); + lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "{$track_title}", "Langueur Monotone track page, giving all the information about {$track_info["title"]} ({$track_info["mix"]}) track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 962); lmb_track_body( $play_type, $play_id, $play_priority, $track_id); lmb_footer(); } @@ -2450,8 +2880,8 @@ function lmb_body( $id, $name, $curver, $currel) $change_log = lmb_tag_get( $id, $curver, $currel, "", "%{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}"); echo "

-
-
+
+

@@ -2461,13 +2891,13 @@ function lmb_body( $id, $name, $curver, $currel)
 
   echo "    

-
-
+
+

"; echo "

-
+


@@ -2679,78 +3109,6 @@ function lmb_fl_page( $lmb_id, $lmb_name, $lmb_curver, $lmb_currel) -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Cookies Set */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_cookie_set( $cookie_id, $cookie_value, $cookie_time) -{ - global $lmb_cookie_tab; - - - setcookie( $cookie_id, $cookie_value, time() + $cookie_time); - $lmb_cookie_tab["$cookie_id"] = $cookie_value; -// echo "set ($cookie_value) into ($cookie_id)"; -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Cookie Load */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_cookie_load( $cookie_id, $cookie_defvalue) -{ - global $lmb_cookie_tab; - - - $cookie_value = $_COOKIE[ $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)"; - } - - $lmb_cookie_tab[ $cookie_id] = $cookie_value; -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Cookies Load */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_cookies_load() -{ - global $lmb_cookie_tab; - - - lmb_cookie_load( "jpsolution", "html, flash"); - lmb_cookie_load( "admin", ""); -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Cookie Update */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_cookie_update( $get_array) -{ - $cookie_id=$get_array["cookie_id"]; - - if( $cookie_id != "") - { - $cookie_value = $get_array["cookie_value"]; - - lmb_cookie_set( $cookie_id, $cookie_value, 360000); - } -} - - - /*--------------------------------------------------------------------------------------------------------------------*/ /* Get Proceed */ /*--------------------------------------------------------------------------------------------------------------------*/