\n"; } else { echo "
\n"; } $enc_artist=urlencode($org_artist); $enc_title=urlencode($org_title); $search_details="\"?\""; if( $now_playing == $name ) { echo "\t
$name $search_details
\n"; $active_artist=$artist; $active_title=$title; $active_url=$url; } else { echo "\t
$name $search_details
\n"; } if( true === $big ) { echo "\t
\n"; } if( ( "" != $artist ) && ( "unknown" != $artist ) && ( "An Error Occured" != $artist ) ) { echo "\t
$artist
\n"; } else { echo "\t
\n"; } if( ( "" != $title ) && ( "unknown" != $title ) && ( "An Error Occured" != $title ) ) { echo "\t
$title
\n"; } else { echo "\t
\n"; } echo "\t
\n"; echo "
\n"; } echo "\n"; $file_contents_playlist=file_get_contents( "tags.xml" ); $xml = simplexml_load_string($file_contents_playlist); $json = json_encode($xml); $array = json_decode($json,TRUE); $CPTMAX=0; if( is_array($array) ){ foreach ( $array as $channel_list ) { $cpt=0; foreach ( $channel_list as $channel ) { if( 0 == ($cpt%4)) { echo "\n\n\n"; } }/* else { print_radio_details("error", "error", "error", "", true); }*/ $cpt++; } } }else{ echo "Erreur"; } echo "
\n"; } if(isset($channel['track_url']) ) { $url_image=$channel['track_url']; if( true === is_array($url_image) ) { $url_image="resource/".$channel['shortname'].".jpg"; } else { $ext=substr($url_image,strlen($url_image)-3); if( ("jpg" != $ext) && ( "png" != $ext ) ) { $url_image="resource/".$channel['shortname'].".jpg"; } } print_radio_details($channel['title'], $channel['track_artist'], $channel['track_title'], $url_image, true ); echo "\n"; if( 3 == ($cpt%4)) { echo "
\n"; ?>