| ive managed to get most of it working im just having a few issues with the title bar its not going to full width.. http://www.the-darklight.co.uk/site this is the site im running it on u should see the server status module on the left panal This is the code i am using. Code: <?php function doTestDown($line){ if(stristr($line, 'down')==TRUE){ $x = "<span class='down'>" . $line . '</span>'; return $x; }else{ $x = "<span class='up'>" . $line . '</span>'; return $x; } } // Let's get the data as an array $lines = file('http://www.glop.org/lineage2/backend.txt'); for($i=0; $i<count($lines); $i+=2) { $servers[] = array('name' => $lines[$i], 'connection' => doTestDown($lines[$i+1])); } echo"<span class='yellow'>"; echo $servers[1]['name']; echo"<td class='left'>"; echo $servers[1]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[2]['name']; echo"</span></td><td class='left'>"; echo $servers[2]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[3]['name']; echo"</span></td><td class='left'>"; echo $servers[3]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[4]['name']; echo"</span></td><td class='left'>"; echo $servers[4]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[5]['name']; echo"</span></td><td class='left'>"; echo $servers[5]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[6]['name']; echo"</span></td><td class='left'>"; echo $servers[6]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[7]['name']; echo"</span></td><td class='left'>"; echo $servers[7]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[8]['name']; echo"</span></td><td class='left'>"; echo $servers[8]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[9]['name']; echo"</span></td><td class='left'>"; echo $servers[9]['connection']; echo"</span> ms</td></tr>"; echo"<td class='left' nowrap>"; echo"<span class='yellow'>"; echo $servers[10]['name']; echo"</span></td><td class='left'>"; echo $servers[10]['connection']; echo"</span> ms</td></tr>"; ?> any help is appreciated ![]() |
Forum 





Author




Logged





