m_cmdprog = "/home/mark36ph/public_html/ventrilo_status"; // Adjust accordingly.
$stat->m_cmdcode = "2"; // Detail mode.
$stat->m_cmdhost = "85.234.144.212"; // Assume ventrilo server on same machine.
$stat->m_cmdport = "3789"; // Port to be statused.
$stat->m_cmdpass = ""; // Status password if necessary.
$rc = $stat->Request();
if ( $rc )
{
echo "CVentriloStatus->Request() failed. $stat->m_error
\n";
}
// Create a web link for this server. Please note that the status password
// is not the same thing as a servers global logon password. This is why the
// example doesn't add one.
echo "Building a ventrilo:// web link from the supplied information. \n";
echo "Please note that if the retrieved server name has spaces in it then anything following them \n";
echo "will not show up in the client. This is a client side issue. You might use _'s in server names ";
echo "instead until the problem is fixed.
\n";
$weblink = "ventrilo://$stat->m_cmdhost:$stat->m_cmdport/servername=$stat->m_name";
echo "