I would not be doing it that way at all, so I don't know that you want to listen to my advice. But, if you only want this on the forumhome page (index.php), then I would pick a plugin that is only called on that page and put the php in there and assign the 'echo' outputs to variables and then eval the template at the end of the plugin to spit it all out in the forumhome page somewhere.
ie - a template called "my_template":
HTML Code:
<table width="100%" border="0" align="center">
<tr>
<td height="21"><p><a href="http://dhgaming.com/call-duty-4/6565-call-duty-4-server-up-pc.html"><center><img src="images/head/RS_private.PNG" border="0" /></center></a>
<center>
$var1
</center>
</p></td>
<td><a href="http://dhgaming.com/"><center><img src="images/head/liveforspeed.png" border="0" /></center></a>
<center>
$var2
etc
plugin:
PHP Code:
$info["address"]="75.127.117.56";
$info["port"]="43594";
$infocount = 0;
$timeout = 2;
for ($i=0; $i<=$infocount; $i++){
$fp = @fsockopen ($info["address"], $info["port"], $errno, $errstr, $timeout);
if ($fp) {
$var1= "<center><img src='status/rspserver/online.gif' />";
}else{
$var1= "<center><img src='status/rspserver/offline.gif' />";
}
}
etc
eval('$mystuff = "' . fetch_template('my_template') . '";');
And then put $mystuff into the FORUMHOME template where you want it (or use one of the template_hooks.
I have NOT tried this at all and I'm sure it would need some tweeking including figuring out which hook location is best.