<? include(“resize.php”); ?><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Radio Gamma</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<META HTTP-EQUIV=”Refresh” CONTENT=”30″; url=”http://www.radioamma.dj/onair.php”>
<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
<link rel=”stylesheet” type=”text/css” href=”styleonair.css”>

</head>
<body background=”immagini/sf_int.jpg” text=”#FFFFFF” bgcolor=”#000000″>
<table cellspacing=”20″><tr>

<td align=”center” bordercolor=”#0000ff” >
<p align=”justify”>
<?
$file=file(“Playlist.txt”);

foreach($file as $value) {

$dato = explode(“|”, $value);

if ($dato[0] == ‘IN ONDA’){
########################

list($width, $height) = getimagesize(“OnAir.jpg”);

$with_height=$width/$height;

if ($width > 200) {

if ($height > 200) {
$height_normal=200;
$width_normal=$with_height*$height_normal;
}else {
$width_normal=200;
$height_normal=$width_normal/$with_height;
}
}else {
if ($height > 200) {
$height_normal=200;
$width_normal=$with_height*$height_normal;
}else {
$width_normal=$width;
$height_normal=$width_normal/$with_height;
}
}

makeimage(“OnAir.jpg”,”,”,$width_normal,$height_normal);
########################?>
<img src=”OnAir.jpg” align=”absmiddle” border=0> <br>
<br>
<? }
}?>
</p>
</td>
<td valign=”top” bordercolor=”#0000ff” bgcolor=””><p> <strong>
ON AIR: </strong>
<? $file1=file(“OnAir.txt”);
echo $file1[0].”<br>”;
?>
<br>
<strong>PLAY LIST</strong> <br>
<?
$file=file(“Playlist.txt”);

foreach($file as $value) {

$dato = explode(“|”, $value);

if ($dato[0] != ‘IN ONDA’){
echo $dato[0].”: “.$dato[1].”<br>”;
}
}?>
</p></td>
</tr>
</table>
</body>
</html>