I am a trying to convert a nuke module to a nuke block and I am having a bit of difficulty getting it to work. Can someone link me to a converter that would do it for me after entering the module info? Any help would be greatly appreciated. Here is the module.
//Change here only
//***************************************************************************************************************
//***************************************************************************************************************
$stat->m_cmdcode = "2"; // Detail mode. 1=General, 2=Detailed
$stat->m_cmdhost = "il1.leetvent.com"; // Hostname or IP address of target machine running the Ventrilo server.
$stat->m_cmdport = "3938"; // Port to be statused.
$stat->m_cmdpass = ""; // Server password if necessary.
$connectoption = 1; // 1= Show connection Link, 2 = Do not show connection link.
//***************************************************************************************************************
//***************************************************************************************************************
class CVentriloClient
{
var $m_uid; // User ID.
var $m_admin; // Admin flag.
var $m_phan; // Phantom flag.
var $m_cid; // Channel ID.
var $m_ping; // Ping.
var $m_sec; // Connect time in seconds.
var $m_name; // Login name.
var $m_comm; // Comment.
class CVentriloChannel
{
var $m_cid; // Channel ID.
var $m_pid; // Parent channel ID.
var $m_prot; // Password protected flag.
var $m_name; // Channel name.
var $m_comm; // Channel comment.
class CVentriloStatus
{
// These need to be filled in before issuing the request.
var $m_cmdcode; // Specific status request code. 1=General, 2=Detail.
var $m_cmdhost; // Hostname or IP address to perform status of.
var $m_cmdport; // Port number of server to status.
var $m_cmdpass; // Remote status password. Not used any more but included for legacy reference.
// Optional
var $m_connTimeout; // Integer timeout value in seconds when trying to connect to the status server.
var $m_streamTimeout; // Integer timeout value in seconds when waiting for the reply from status server.
// These are the result variables that are filled in when the request is performed.
var $m_error; // If the ERROR: keyword is found then this is the reason following it.
var $m_statserver; // Name of the status server that we connected to.
var $m_name; // Server name.
var $m_phonetic; // Phonetic spelling of server name.
var $m_comment; // Server comment.
var $m_maxclients; // Maximum number of clients.
var $m_voicecodec_code; // Voice codec code.
var $m_voicecodec_desc; // Voice codec description.
var $m_voiceformat_code; // Voice format code.
var $m_voiceformat_desc; // Voice format description.
var $m_uptime; // Server uptime in seconds.
var $m_platform; // Platform description.
var $m_version; // Version string.
var $m_channelcount; // Number of channels as specified by the server.
var $m_channelfields; // Channel field names.
var $m_channellist; // Array of CVentriloChannel's.
var $m_clientcount; // Number of clients as specified by the server.
var $m_clientfields; // Client field names.
var $m_clientlist; // Array of CVentriloClient's.
function Parse( $str, &$fndend )
{
// Remove trailing newline.
$pipe = fsockopen( $srvname, 5100, $errno[ $srv ], $errstr[ $srv ], $this->m_connTimeout );
if ( !$pipe )
{
if ( $errno[ $srv ] == 0 )
{
// If connection fails but errno is 0 then error string is wrong
// by default. Set it to a value that is most likely the cause.
$errstr[ $srv ] = "Could not resolve the status server name.";
}
}
else
{
$this->m_statserver = $srvname;
break;
}
}
if ( !$pipe )
{
$this->m_error = "PHP: Unable to connect to a Ventrilo Status server.";
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum