Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » PHP Serverstatusbox
Re: PHP Serverstatusbox [message #323524 is a reply to message #323408] Sun, 23 March 2008 14:25 Go to previous messageGo to previous message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma:
Recruit

<?php

$handle = fopen("serverstatus/fdsstatus.txt","r");
while (!feof($handle)) {
	$line = fgets($handle, 1024);

	$write = explode(",", $line);

	$color = array("green", "green", "yellow", "yellow", "red", "red", "green", "green", "green" );
	$i = 0;

	echo "<span style=\"color: $color[$i++]\">". $write['0'] ."</span><br>";
	echo "<span style=\"color: $color[$i++]\">". $write['1'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['2'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['3'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['4'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['5'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['6'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['7'] ."</span>";
	echo "<span style=\"color: $color[$i++]\">". $write['8'] ."</span>";
}
fclose ($handle);  
?>


http://www.eh-server.com/list.php does not runing ... some idea


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Sun, 23 March 2008 15:04]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nickname exploit
Next Topic: Hud quality
Goto Forum:
  


Current Time: Mon Nov 18 15:17:51 MST 2024

Total time taken to generate the page: 0.00751 seconds