<?php
session_start();
include_once 'class/load.php';
$lcs_lastfm = new lcs_lastFm();
$lcs_lastfm->info = $_SESSION['info'];
$meta = $lcs_lastfm->getMeta();
if ( !isset($meta['station']) ) {
$station = 'Unknown Station';
echo '<meta http-equiv="Refresh" content="1;" />';
}
else {
if ( isset($meta['station_url']) ) {
$station = '<a href="'.$meta['station_url'].'" target="_blank">'.$meta['station'].'</a>';
}
else {
$station = $meta['station'];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Online Last.FM Player - Login</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body style="background: #D20039;">
<div id="stationBackground">
<div id="stationInfo"><?php echo $station; ?></div>
</div>
</body>
</html>