christian wrote:
Welcome,
Just remove <?php and ?>
doesnt work.. see an empty block then in preview and it doesnt come up on the mainpage.
setted up on php mode...
edit:
solved.
removed my scripting commands
christian wrote:
Welcome,
Just remove <?php and ?>
<?php
$ip = "xx.xx.xx.xx"; // Geef hier het ip in
$port = "51234"; // Geef hier de poort in
$maint = "0"; // Is de server in Maintenance mode? 1=ja, 0=nee
//HIERONDER NIETS MEER VERANDEREN
$_GET['ip']="$ip:$port";
$array=explode(':',$_GET['ip']);
$fp = @fsockopen($array[0], $array[1], $errno, $errstr,1);
if($maint == 1) {
$status = "<font color="red">Maint.</font>";
}
else if($fp){
$status = "<font face="arial"> Onze TS2 Server is</font><font color="green">online</font><br /><font face="arial">Check <a href="http://www.n1-gaming.nl/TS/ts2.php">HIER</a> voor meer info</font>";
fclose($fp); // hier sluiten omdat in het andere geval geen verbinding is opgebouwd
}
else{
$status = "<font color="red">Helaas... de TS2 server is offline</font>";
}
echo $status;
?>