Compare commits
2 Commits
lmbrowse-1
...
lmbrowse-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a58dfaa33b | ||
|
|
25b1aad8ab |
@@ -1,8 +1,8 @@
|
|||||||
<?
|
<?
|
||||||
// $RCSfile: lmbrowse.php,v $
|
// $RCSfile: lmbrowse.php,v $
|
||||||
// $Revision: 1.15 $
|
// $Revision: 1.17 $
|
||||||
// $Name: $
|
// $Name: $
|
||||||
// $Date: 2015/09/07 19:23:56 $
|
// $Date: 2015/12/04 16:07:30 $
|
||||||
// $Author: agibert $
|
// $Author: agibert $
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -643,7 +643,7 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
|||||||
global $lmb_ga_enable;
|
global $lmb_ga_enable;
|
||||||
|
|
||||||
|
|
||||||
header('Content-type: text/html; charset=iso-8859-1');
|
header('Content-type: text/html; charset=utf-8');
|
||||||
|
|
||||||
$keywords = "$lmb_keywords,$keywords";
|
$keywords = "$lmb_keywords,$keywords";
|
||||||
|
|
||||||
@@ -666,7 +666,7 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
|||||||
";
|
";
|
||||||
|
|
||||||
echo " <head>
|
echo " <head>
|
||||||
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>
|
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
|
||||||
<meta name=\"Description\" content=\"$description\"/>
|
<meta name=\"Description\" content=\"$description\"/>
|
||||||
<meta name=\"keywords\" content=\"$keywords\"/>
|
<meta name=\"keywords\" content=\"$keywords\"/>
|
||||||
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$skin_path}/images/favicon.ico\"/>
|
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"{$skin_path}/images/favicon.ico\"/>
|
||||||
@@ -1346,7 +1346,7 @@ function lmb_rss_page()
|
|||||||
|
|
||||||
header( 'Content-Type: application/rss+xml');
|
header( 'Content-Type: application/rss+xml');
|
||||||
|
|
||||||
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
|
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
|
||||||
<rss version=\"2.0\"
|
<rss version=\"2.0\"
|
||||||
xmlns:atom=\"http://www.w3.org/2005/Atom\"
|
xmlns:atom=\"http://www.w3.org/2005/Atom\"
|
||||||
xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
|
xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
|
||||||
@@ -3450,28 +3450,32 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for( $k = 0; $k < count( $mix_tab); $k++)
|
if( isset( $mix_tab))
|
||||||
{
|
{
|
||||||
if( "{$mix_tab[$k]["hide"]}" == "y")
|
for( $k = 0; $k < count( $mix_tab); $k++)
|
||||||
{
|
{
|
||||||
$hide_flag="*";
|
if( "{$mix_tab[$k]["hide"]}" == "y")
|
||||||
}
|
{
|
||||||
else
|
$hide_flag="*";
|
||||||
{
|
}
|
||||||
$hide_flag="";
|
else
|
||||||
}
|
{
|
||||||
|
$hide_flag="";
|
||||||
$css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3;
|
}
|
||||||
|
|
||||||
echo " <tr class=\"row${css_row}\">
|
$css_row = ( $k + 1 + count( $mix_tab)) % 2 + 3;
|
||||||
|
|
||||||
|
echo " <tr class=\"row${css_row}\">
|
||||||
<td class=\"tracks2\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["track_name"]}{$hide_flag}</a></div></td>
|
<td class=\"tracks2\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["track_name"]}{$hide_flag}</a></div></td>
|
||||||
<td class=\"tracks3\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["mix_name"]}</a></div></td>
|
<td class=\"tracks3\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["mix_url"]}\">{$mix_tab[$k]["mix_name"]}</a></div></td>
|
||||||
<td class=\"tracks2\">{$mix_tab[$k]["play_type_name"]}</td>
|
<td class=\"tracks2\">{$mix_tab[$k]["play_type_name"]}</td>
|
||||||
<td class=\"tracks3\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["play_url"]}\">{$mix_tab[$k]["play_name"]}</a></div></td>
|
<td class=\"tracks3\"><div class=\"link-item\"><a href=\"{$mix_tab[$k]["play_url"]}\">{$mix_tab[$k]["play_name"]}</a></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo " <tr class=\"row0\">
|
echo " <tr class=\"row0\">
|
||||||
<td class=\"title_r\" colspan=\"4\">Mixes </td>
|
<td class=\"title_r\" colspan=\"4\">Mixes </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -3499,7 +3503,15 @@ function lmb_track_body( $play_type, $play_id, $play_priority, $track_id, $skin_
|
|||||||
$track_file_name = glob( "{$track_path}/flac/$track_id-*.flac");
|
$track_file_name = glob( "{$track_path}/flac/$track_id-*.flac");
|
||||||
$tab = explode( "-", basename( "{$track_file_name[0]}", ".flac"));
|
$tab = explode( "-", basename( "{$track_file_name[0]}", ".flac"));
|
||||||
$track_name = $tab[1];
|
$track_name = $tab[1];
|
||||||
$track_mix = $tab[2];
|
|
||||||
|
if( isset( $tab[2]))
|
||||||
|
{
|
||||||
|
$track_mix = $tab[2];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$track_mix = "";
|
||||||
|
}
|
||||||
|
|
||||||
/* --- Introduction --- */
|
/* --- Introduction --- */
|
||||||
lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path);
|
lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix, $skin_path);
|
||||||
|
|||||||
Reference in New Issue
Block a user