- Fix minor undifined variable bugs,
- Add utf-8 support.
This commit is contained in:
parent
632df6012d
commit
25b1aad8ab
@ -1,8 +1,8 @@
|
|||||||
<?
|
<?
|
||||||
// $RCSfile: lmbrowse.php,v $
|
// $RCSfile: lmbrowse.php,v $
|
||||||
// $Revision: 1.15 $
|
// $Revision: 1.16 $
|
||||||
// $Name: $
|
// $Name: $
|
||||||
// $Date: 2015/09/07 19:23:56 $
|
// $Date: 2015/12/04 10:40:41 $
|
||||||
// $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";
|
||||||
|
|
||||||
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user