Hey hallo PHP-kanjers, ik heb een on-air scriptje. Da's op zich niets bijzonders ... Maar ik zou zo graag een achtergrondafbeelding gebruiken ? Ik zit nu al 3 uur te prutsen maar zonder resultaat. Wie helpt ? Dit is het scriptje :
<?php
//©M.Savelkouls
$IPAdres = "99.999.999.999"; // Het ip adres van de computer waar OtsDJ op staat
$Poort = "5000"; // De poort die de RAC server gebruikt
$ServerTimeOut = 5; // De maximale tijd voor de foutmelding te zien is.
$OfflineMelding = "Deze service is tijdelijk niet beschikbaar."; // Foutmelding als de server offline is
if ($action == "update") {
echo ("<a href=http://www.fantasyfm.nl/index.php?pagina=update&Script=OnAir&Versie=1.01
target=blank>Controleer voor updates</a>");
exit();
}
// Hieronder hoef je niets aan te passen
$controleer = @fsockopen("$IPAdres", $Poort, $errno, $errstr, $ServerTimeOut);
if ($controleer) {
$Adres = "http://$IPAdres:$Poort/x/playing.cgi";
$LeesURL = file($Adres);
$Bal = (implode("", $LeesURL));
$Bal = strip_tags($Bal, '');
$Bal = str_replace("Title:", " - ", $Bal);
$Bal = str_replace("Artist:", "", $Bal);
$Bal = str_replace(" ", "", $Bal);
$Bal = str_replace("OtsDJ Remote Access Control - Now Playing!", "", $Bal);
$Bal = str_replace("PlaylistShowing next", "", $Bal);
$Bal = str_replace("© 1996-2003 Ots Corporation Pty Ltd</b> - <i>Page generated internally by OtsDJ", "",
$Bal);
$Bal = explode(" - ", $Bal);
echo ("<html><head><title>OK fm</title><META HTTP-EQUIV=Refresh
CONTENT=10;URL=$PHP_Self></head><body leftmargin=42><body topmargin=2><body bgcolor=#c6eaff><font><font color=black><font size=2:font
face=arial>Nu bij OK fm : $Bal[0] - $Bal[1]</font></body></html>");
}
else {
echo "<html><head><title>OK fm</title><META HTTP-EQUIV=Refresh
CONTENT=10;URL=$PHP_Self></head><body leftmargin=42><body topmargin=2><body
bgcolor=#c6eaff><font><font color=black><font size=2:font face=arial>$OfflineMelding</font></body></html>";
}
?>
1.029 views