// REALCHAT WHO'S ONLINE$port = 10010;function getServerAPI( $apiCommand ) {global $port;$result = "";$fp = fsockopen("localhost", $port, &$errno, &$errstr, 2);if(!$fp) {echo "$errstr ($errno)\n";} else {fputs($fp,"GET /?".$apiCommand." HTTP/1.0\n\n");$header = true;while(!feof($fp)) {$line = fgets($fp,128);if ( $header == false ) $result .= $line;if ( trim($line) == "" ) $header = false;}fclose($fp);}return $result;}$userCount = getServerAPI( "api.UserCount" );$roomList = getServerAPI( "api.RoomList" );// End REALCHAT WHO'S ONLINE