Witam.
Na mojej stronie wkleiłem Taki kod:
<table width="470" height="150" align="center" cellspacing="0" cellpadding="0" background="tlo.png">
<div style="margin-left: 250px; margin-top: -50px; position: absolute;"> <a href="http://s1.superhost24.pl/9000.pls"><img border="0" src="images/win.png" class="przezroczystosc" width="28" height="28"></a><br> <a href="http://s1.superhost24.pl/9000.pls"><img border="0" src="images/aimp.png" class="przezroczystosc" width="28" height="28"></a><br> <a href="http://s1.superhost24.pl/9000.asx"><img border="0" src="images/wmp.png" class="przezroczystosc" width="28" height="28"></a><br> <a href="hhttp://s1.superhost24.pl/9000.ram"><img border="0" src="images/real.png" class="przezroczystosc" width="28" height="28"></a><br>
<div style="font-family: Arial; color: #000; font-size: 14px; margin-left: 320px; margin-top: -50px; position: absolute;"> <marquee behavior="alternate" scrollamount="1" scrolldelay="2" width="138" direction="left"><b><? echo $sc[table1]; ?> </b></marquee>
<div style="font-family: Arial; color: #000; font-size: 14px; margin-left: 312px; margin-top: 3px; position: absolute;"> <marquee scrollamount="2" scrolldelay="1" width="151" direction="left"><b><? echo $sc[table2]; ?></b></marquee> <div style="font-family: Arial; color: #000; font-size: 14px; margin-left: 372px; margin-top: 50px; position: absolute;"> <b><? echo $sc[table4]; ?></b>
W Odpowiednim Miejscu.
I Kod:
$sc[ip] = "s1.superhost24.pl"; //Ip serwera shoutcast
$sc[port] = "9000"; //Port serwera shoutcast
$sc[czas] = "40"; //Czas odświeżania statywu
// Tutaj nic nie ruszać!
$sc[table1] = "<b>[dj][status]</b>";
$sc[table2] = "<b>[audycja][status]</b>";
$sc[table3] = "<b>[nuta][status]</b>";
$sc[table4] = "<b>[ile]/22</b>";
{
fputs($fp,"GET /index.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); fgets($fp);fgets
($fp);fgets
($fp); # echo $in;
// [status]
$m[0]="Server is currently";
$m[1]="";
if( $tmp[1][0] == "up" )
$dat[status] = "";
elseif( $tmp[1][0] == "down" )
$dat[status] = "Aktualnie nie nadajemy";
else
$dat[status] = "Uzupełnij poprawnie SHOUTcast";
if($dat[status]=="")
{
// [audycja]
$m[0]="Stream Title:";
$m[1]="Content Type:";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
] ) );
if( $tmp[1] ) $dat[audycja] = $tmp[1];
else $dat[audycja] = "Uzupełnij poprawnie SHOUTcast";
// [dj]
$m[0]="Stream Genre:";
$m[1]="Stream URL:";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
]-2
) );
if( $tmp[1] ) $dat[dj] = $tmp[1];
else $dat[dj] = "Uzupełnij poprawnie SHOUTcast";
// [statyw]
$m[0]="Stream AIM:";
$m[1]="Stream IRC:";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
] ) );
if( $tmp[1] ) $dat[statyw] = $tmp[1];
else $dat[statyw] = "pilot";
// [gg]
$m[0]="Stream ICQ:";
$m[1]="Stream AIM:";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
] ) );
if( $tmp[1] ) $dat[gg] = $tmp[1];
else $dat[gg] = "Uzupełnij poprawnie SHOUTcast";
// [ile]
$m[0]="kbps with";
$m[1]="listeners";
$tmp[1
]=explode( " " , trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
]-2
) ) );
if( $tmp[1] ) $dat[ile] = $tmp[1][0];
else $dat[ile] = "Uzupełnij poprawnie SHOUTcast";
// [peak]
$m[0]="Listener Peak:";
$m[1]="Average";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
]-7
) );
if( $tmp[1] ) $dat[peak] = $tmp[1];
else $dat[peak] = "Uzupełnij poprawnie SHOUTcast";
// [nuta]
$m[0]="Current Song:";
$m[1]="Written by Ste";
$tmp[1
]=trim( substr( $in , $mp[0
] + $ml[0
] , $mp[1
]-$mp[0
]-$ml[1
] ) );
if( $tmp[1] ) $dat[nuta] = $tmp[1];
else $dat[nuta] = "Uzupełnij poprawnie SHOUTcast";
}
}
else
{
$dat[status]="err";
}
$co = array('[status]','[audycja]','[dj]','[statyw]','[gg]','[ile]','[peak]','[nuta]'); $naco = array($dat[status
],$dat[audycja
],$dat[dj
],$dat[statyw
],$dat[gg
],$dat[ile
],$dat[peak
],$dat[nuta
]);
Na górze pliku w Którym umieściłem Poprzedni Kod.
Niestety pojawia się tylko w tym miejscu Obrazek: tlo.png
Lecz nie pokazują się teksty , które miały być pobierane za Pomocą powyższego Kodu.
Co się Może dziać?