cyberneticos Posted October 9, 2009 Share Posted October 9, 2009 Hi guys, just updated this to work on 4.1.1 portal template: <p>{$LANG.serverstatusheadingtext}</p> <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data"> <tr> <th>{$LANG.servername}</th> <th>HTTP</th> <th>FTP</th> <th>POP3</th> <th>{$LANG.serverstatusphpinfo}</th> <th>{$LANG.serverstatusserverload}</th> <th>{$LANG.serverstatusuptime}</th> </tr> {foreach key=num item=server from=$servers} {php} $query = ''; $server = $this->get_template_vars('server'); $servername = $server['name']; $serverip = $server['ipaddress']; $query = "SELECT s.* FROM tblservers AS s LEFT JOIN tblhosting AS h ON h.server=s.id WHERE h.userid = ".$_SESSION['uid']." AND (h.domainstatus = 'Active' OR h.domainstatus = 'Suspended') AND s.name = '$servername'"; $result = mysql_query($query); if(mysql_num_rows($result) > 0){ {/php} <tr> <td>{$server.name}</td> <td>{get_port_status num="$num" port="80"}</td> <td>{get_port_status num="$num" port="21"}</td> <td>{get_port_status num="$num" port="110"}</td> <td><a href="{$server.phpinfourl}" target="_blank">{$LANG.serverstatusphpinfo}</a></td> <td>{$server.serverload}</td> <td>{$server.uptime}</td> </tr> {php}}{/php} {foreachelse} <tr> <td colspan="7">{$LANG.serverstatusnoservers}</td> </tr> {/foreach} </table><br /> 0 Quote Link to comment Share on other sites More sharing options...
egcsolutions Posted October 11, 2009 Share Posted October 11, 2009 The problem I'm having is that I currently have two servers configure in WHMCS and the status like uptime and server load time is the same for both when I know they are different, it seems is only using the info on the server that WHMCS is installed on. Any Suggestions? 0 Quote Link to comment Share on other sites More sharing options...
ah80 Posted February 7, 2011 Share Posted February 7, 2011 Hey guys, great work with this mod. Any idea how to list the client's website URL instead of the server name? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.