n";
} else {
$out = "GET /onoff.php?radio_id=1168853 HTTP/1.1rn";
$out .= "Host: 184.107.47.34rn";
$out .= "Connection: Closernrn";
fwrite($fp, $out);
$data='';
while (!feof($fp)) {
$data=fgets($fp, 128);
if ($data[1]=='o'&& $data[2]=='f' && $data[3]=='f') {echo "off";footer();die();}
if ($data[1]=='o' && $data[2]=='n' && $data[3]==' ') {echo "on";footer();die();}
}
echo $data;
fclose($fp);
}
?>
|