Hallo,
De online/offline checker werkt niet op de website.
Dit is de code:
Maar de server is gewoon online.
Weet iemand oplossing?
De online/offline checker werkt niet op de website.
Dit is de code:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]/**
* @author Bjarn B.
* @description Checks your the Minecraft server status
*/
/* Enter your server name */[/COLOR]
[COLOR= #0000BB]$name[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]is [/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]/* Enter your host name */[/COLOR]
[COLOR= #0000BB]$host[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]mc03.one2xs.com[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]/* Enter your server port */[/COLOR]
[COLOR= #0000BB]$port[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]25565[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]/* Disable errors */[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$socket[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fsockopen"]fsockopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$port[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$errno[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$errstr[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #FF8000]/* If it is offline, show this */[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$name[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<span style="color:green">Online</span>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$socket[/COLOR][COLOR= #007700]);
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]/* If it is offline, show this */[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$name[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]<span style="color:red">Offline</span>[/COLOR][COLOR= #007700];
}[/COLOR]
?> Maar de server is gewoon online.
Weet iemand oplossing?

