<?php
## hitXL Titelanzeige ##
$refresh = "15";
$server = "85.214.46.236"; //hier deinen server eintragen z.b. musik.de oder 213.61.885.8
$port = 8460; //hier den port eintragen (ist standard (autom. korrigiert) 8000)
$fp = @fsockopen($server, $port, $errno, $errstr, 30);
if ($fp) {
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($fp))
$page .= fgets($fp, 1000);
fclose($fp);
$page = ereg_replace(".*<body>", "", $page);
$page = ereg_replace("</body>.*", ",", $page);
$numbers = explode(",", $page);
$shoutcast_currentlisteners = $numbers[0]; //variable ueber die aktuelle anzahl der zuhoerer
$connected = $numbers[1]; //variable zum anzeigen ob ein sender verbunden sind
if($connected == 1) {
$radio_status = 1; //variable zum anzeigen ob radio an ist oder nicht
$wordconnected = "yes"; //zusaetzliche variable die ich brauchte
}
else
$wordconnected = "no"; //zusaetzliche variable die ich brauchte
$shoutcast_peaklisteners = $numbers[2]; //variable die die anzahl der peaks angiebt
$shoutcast_maxlisteners = $numbers[3]; //variable ueber die maximal moegliche anzahl der zuhoerer
$shoutcast_reportedlisteners = $numbers[4]; //
$shoutcast_bitrate = $numbers[5]; //bitrate
$shoutcast_cursong = $numbers[6]; //aktueller song
$shoutcast_curbwidth = $shoutcast_bitrate * $shoutcast_currentlisteners; //gesamtbandbreite
$shoutcast_peakbwidth = $shoutcast_bitrate * $shoutcast_peaklisteners; //gesamtpeakbandbreite
}
## output on ##
echo '<html><title>hitXL Titelanzeige</title><body>';
if ($radio_status == 1) {
echo '<b><font color="#00FF00" <font face="arial" font size="1">on-AIR</font><font color="#6699FF" font face="arial" font size="1">: <marquee scrolldelay="10" width="250" scrollamount="2"><font color="#6699FF" font face="arial">' . $shoutcast_cursong . '</font></b><br/></marquee></span>';
}
else {
echo '<marquee scrolldelay="10" width="290" scrollamount="2"><b><font color="#6699FF" font face="arial" font size="1">Wegen Serverarbeiten ist hitXL zur Zeit <font color="red" font face="arial">off-AIR</font>! Wir sind bald wieder für Euch da!</b></marquee></span>';
}
echo '</body></html>';
## output off ##
## hitXL Titelanzeige ##
?><body bgcolor="#1D4382" style="margin-top: 4">
<meta http-equiv="refresh" content="15; URL=http://www.hitxl.de/iframe.php">
## output on ##
echo '<html><title>hitXL Titelanzeige</title>';
echo '<head><meta http-equiv="refresh" content="15;URL=http://www.hitxl.de/iframe.php"></head>';
echo '<body bgcolor="#1D4382" style="margin-top: 4">';
if ($radio_status == 1) {
echo '<b><font color="#00FF00" <font face="arial" font size="1">on-AIR</font><font color="#6699FF" font face="arial" font size="1">: <marquee scrolldelay="10" width="250" scrollamount="2"><font color="#6699FF" font face="arial">' . $shoutcast_cursong . '</font></b><br/></marquee></span>';
}
else {
echo '<marquee scrolldelay="10" width="290" scrollamount="2"><b><font color="#6699FF" font face="arial" font size="1">Wegen Serverarbeiten ist hitXL zur Zeit <font color="red" font face="arial">off-AIR</font>! Wir sind bald wieder für Euch da!</b></marquee></span>';
}
echo '</body></html>';
## output off ##
## hitXL Titelanzeige ##
?>## output on ##
echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">';
echo '<html><title>hitXL Titelanzeige</title>';
echo '<head><meta http-equiv="refresh" content="15;URL=http://www.hitxl.de/iframe.php"></head>';
echo '<body bgcolor="#1D4382" style="margin-top: 4">';
if ($radio_status == 1) {
echo '<b> <marquee scrolldelay="10" width="250" scrollamount="2">';
echo '<font color="#00FF00" font face="arial" font size="1">on-AIR: ';
echo '<font color="#6699FF">' . $shoutcast_cursong . '</font></font></marquee></b>';
echo '
}
else {
echo '<b><marquee scrolldelay="10" width="290" scrollamount="2">';
echo '<font color="#6699FF" font face="arial" font size="1">Wegen Serverarbeiten ist hitXL zur Zeit ';
echo '<font color="red">off-AIR!</font> Wir sind bald wieder für Euch da!</marquee></b>';
}
echo '</body></html>';
## output off ##echo '
if ($radio_status == 1) {
echo <table cellspacing="0" cellpadding="0"><tr> <td><b'';
echo '<font color="#00FF00" font face="arial" font size="1">on-AIR:</font></b></td>';
echo '<td><b> <marquee scrolldelay="10" width="250" scrollamount="2">';
echo '<font color="#6699FF" font face="arial" font size="1">' . $shoutcast_cursong . '</font>';
echo '</marquee></b> </td></tr></table>';
}
Wie kann ich meinen Creative ZEN im Arbeitsplatz anzeigen lassen???
Vini 02.10.2007 - 155 Hits - 4 Antworten
Hilfe, nur eine vorgegebene Seite im Internetexplorer anzeigen lassen!
Hilfesuchender 03.04.2008 - 13 Hits - 1 Antwort
picaso@google größere Bilder anzeigen lassen
marco1977 27.06.2008 - 52 Hits -