- Fix minor undifined variable bugs,

- Add utf-8 support.
This commit is contained in:
agibert 2015-12-04 10:40:41 +00:00
parent 632df6012d
commit 25b1aad8ab

View File

@ -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,6 +3450,8 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t
} }
if( isset( $mix_tab))
{
for( $k = 0; $k < count( $mix_tab); $k++) for( $k = 0; $k < count( $mix_tab); $k++)
{ {
if( "{$mix_tab[$k]["hide"]}" == "y") if( "{$mix_tab[$k]["hide"]}" == "y")
@ -3471,6 +3473,8 @@ function lmb_track_download( $play_type, $play_id, $play_priority, $track_id, $t
</tr> </tr>
"; ";
} }
}
echo " <tr class=\"row0\"> echo " <tr class=\"row0\">
<td class=\"title_r\" colspan=\"4\">Mixes&nbsp;</td> <td class=\"title_r\" colspan=\"4\">Mixes&nbsp;</td>
@ -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];
if( isset( $tab[2]))
{
$track_mix = $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);