'.$boardname."
\n";
echo $ezAPI{wo_visitors}.' visitors in the last 15 minutes: '.$ezAPI{wo_members}.' Members - '.$ezAPI{wo_guests}.' Guests - '.$ezAPI{wo_anonymous}." Anonymous\n";
$names = explode(",",$ezAPI[wo_ids]);
$namesformatted = explode(",",$ezAPI[wo_names]);
echo "";
for ( $x=0; $x'.$namesformatted[$x].' ';
}
}
echo " -
";
} else {
echo "error: error in communication with ezAPI";
// echo $text;
// print_r($ezAPI);
}
function ezAPI_get($pub,$dir,$text='')
{
// this will retrieve data from ezboard as HTTP get data
$head = "GET /".$dir." HTTP/1.1\r\n";
$head .= "Host: ".$pub.".ezboard.com\r\n";
$head .= "Accept: */*\r\n";
$head .= "Accept-Language: en-us\r\n";
$head .= "Connection: close\r\n";
$head .= "Referer: http://www.neotalon.com\r\n";
$head .= "User-Agent: Neo Talon's ezAPI\r\n";
$head .= "Content-length: ".strlen($text)."\r\n\r\n";
$fp = fsockopen($pub.".ezboard.com","80",$errno,$errstr);
if ( $fp ) {
fputs($fp,$head.$text);
while (!feof($fp)) {
$data .= fgets($fp);
}
$linepos = strpos($data,"\r\n\r",strpos($data,'Content-Length'));
$head = substr($data,0,$linepos);
$newdata = substr($data,$linepos);
$newdata = str_replace("\n","",$newdata);
} else {
$newdata = "error: unable to connect";
}
return($newdata);
}