jest ktoś chętny do napisania ??
myślę że paru osobą by sie coś takiego przydało sam bym skorzystał a szukałem po sieci i nic takiego nie znalazłem więc jak to mój stary znajomy kiedyś powiedział nie ma tego co ci potrzeba to se sam zrób
jeden z przykładów :
| Kod: |
<center>
<?
$sc[czas] = 180;
$sc[host] = "server2.xpx.pl";
$sc[port] = 9000;
$sc[template] = " Zasilanie:<b> [status]</b><br>Stacja :<b>[dj]</b><br>Prowadzi:<b> [genre] </b><br>Gra od/do:<b>
[gg]</b><br>Slucha :<b> [ile] osób</b><br>";
# $sc[template] = "<b>Status (on/off/err) :</b> [status]<br><b>GG DJ-a:</b> [gg]<br><b>Dj:</b>
[genre]<br><b>Ilu sluchaczy aktualnie/maksymalnie/peak:</b> [ile]/[max]/[peak]<br>";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<META HTTP-EQUIV="Refresh" CONTENT="<?=$sc[czas]?>; URL="">
</head>
<body>
<font color="black" face="arail" size="2">
<?
if($fp = fsockopen($sc[host], $sc[port]))
{
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);
while(!feof($fp)) $in.=strip_tags(fgets($fp));
fclose($fp);
# echo $in;
// [status]
$m[0]="Server is currently";
$m[1]="";
$mp[0]=strpos($in,$m[0]);
$mp[1]=@strpos($in,$m[1]);
$ml[0]=strlen($m[0]);
$ml[1]=strlen($m[1]);
$tmp[1]=explode( " " , trim( substr( $in , $mp[0] + $ml[0] , 5 ) ) );
if( $tmp[1][0] == "up" )
$dat[status] = "on";
elseif( $tmp[1][0] == "down" )
$dat[status] = "off";
else
$dat[status] = "err";
if($dat[status]=="on")
{
&n
|