|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
IG88 Smarty n00b
Joined: 25 Mar 2009 Posts: 3
|
Posted: Wed Mar 25, 2009 8:18 pm Post subject: Adapting Ventrilo Status |
|
|
I am looking for some one to adapt a Ventrilo Status to Smarty.
It is very straight forward. There is already a php file with everything needed. All that needs to be done is to separate the markup and apply the Smarty launguage. |
|
Back to top |
|
IG88 Smarty n00b
Joined: 25 Mar 2009 Posts: 3
|
Posted: Wed Mar 25, 2009 8:24 pm Post subject: |
|
|
Here is the php code
-----------------------------------------------------------------------------
include "ventrilo/ventrilostatus.php";
include "ventrilo/ventrilodisplay.php";
$stat = new CVentriloStatus;
$stat->m_cmdprog = "/home/******/public_html/ventrilo-view/ventrilo_status"; // Adjust accordingly.
$stat->m_cmdcode = "2";
$stat->m_cmdhost = "**.**.**.**"; // server IP or host name
$stat->m_cmdport = "****"; // Port to be statused.
$stat->m_cmdpass = ""; // Status password if necessary.
$rc = $stat->Request();
if ( $rc )
{
echo "CVentriloStatus->Request() failed. <strong>$stat->m_error</strong><br><br>\n";
}
echo "<br><center><b>Connected users $stat->m_clientcount/$stat->m_maxclients</b></center>";
$name = $stat->m_name;
if ( strlen( $stat->m_comment ) )
$name .= " ($stat->m_comment)";
$name = "Name";
if ( strlen( $stat->m_comment ) )
$name .= " ($stat->m_comment)";
echo "<br>\n";
echo "<center><table width=\"50%\" border=\"0\">\n";
VentriloDisplayEX1( $stat, $name, 0, 0 );
echo "</table></center>\n";
echo "</center>";
-------------------------------------------------------------------------- |
|
Back to top |
|
IG88 Smarty n00b
Joined: 25 Mar 2009 Posts: 3
|
Posted: Sat Apr 11, 2009 2:02 am Post subject: |
|
|
wow.
150 views and no one is interested? I find that really hard to believe.
Well maybe some one would like to do it for free? |
|
Back to top |
|
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|