DarkOrbit Private Server Online Checker

11/10/2013 05:56 Requi#1
Because I get so much annoyed, of the Questions, if the server is online, I made a php script, with my best knowledge, to check, if a server is online.

Now I share it here, that hopefully the questions stop and the spam gets decreased.

The link:
[Only registered and activated users can see links. Click Here To Register...]

Picture:

If you click on the name of a server, you are getting redirected to the server thread.

So, if anybody asks for online/offline, send him this link.
Maybe he remembers it and open it, instead of asking and spam in the thread.

If you have any suggestions, you can tell them me.

Kind Regards,
Requi
11/10/2013 06:02 SirΒasti#2
Very nice tool to use, and very useful! Thanks for another useful tool! I know it is not right to say thanks but I have thanked the post anyway. ^^

Very useful Requi. :3
11/10/2013 06:25 Yakuzas:)#3
Finally^^
i hope all spamer go out now :D
11/10/2013 07:18 nigblls#4
finally indeed
11/10/2013 10:35 Nevada'#5
Useful tool :D
11/10/2013 10:46 KratonVsPande#6
Thanks Requi can i add it to my signature? so if someone doesn't see your thread in the server topic can read it :)
11/10/2013 10:53 Requi#7
Yeah. But please delete the name Afropony ;)
11/10/2013 12:53 shooteram#8
I just saw the script on Skype, very nice! Keep the good work Ricky. ;)
11/10/2013 12:54 Requi#9
Thank you Alex.

The site has a new design. A big thanks to shooteram, for making it and giving it to me :)
11/10/2013 12:58 Healianth#10
May I suggest sorting the table rows so that online servers are displayed first, followed by offline servers below them?
11/10/2013 13:00 Requi#11
If I would know, how to make a automatic sorting, I would do it.
But it's a great idea.
11/10/2013 13:30 Healianth#12
Code:
<?php

$servers = array();
$serversOnline = array();
$serversOffine = array();

$servers[] = array('id' => "1", 'name' => "Server Name", 'offiThread' => "Official Thread Link", 'status' => TRUE /* Where TRUE is online and FALSE is offline*/, 'owner' => "John Doe");
$servers[] = array('id' => "2", 'name' => "Server Name", 'offiThread' => "Official Thread Link", 'status' => TRUE /* Where TRUE is online and FALSE is offline*/, 'owner' => "John Doe #1");
$servers[] = array('id' => "3", 'name' => "Server Name", 'offiThread' => "Official Thread Link", 'status' => TRUE /* Where TRUE is online and FALSE is offline*/, 'owner' => "John Doe #2");
$servers[] = array('id' => "4", 'name' => "Server Name", 'offiThread' => "Official Thread Link", 'status' => TRUE /* Where TRUE is online and FALSE is offline*/, 'owner' => "John Doe #3");


ForEach($servers as $server){
	If($server['status']  == TRUE){
		$serversOnline[] = $server;
	}
	Else If ($server['status'] == FALSE){
		$serversOffline[] = $server;
	}
}

// Here you would loop and echo each server row, but because I'm lazy I'm just doing to dump the arrays.

var_export($serversOnline);
var_export($serversOffline);
?>
In theory, this code should work, but I've not tested it out. You may also want to assign the correct IDs (after they've been sorted, because they'll all be messed up).

If you have any questions or need a hand, add me on Skype so we can instant-chat: actualfate
11/10/2013 13:35 0wnix#13
Thanks but I don't get the utility of this ^^
I mean servers owners display server status on their thread :/
11/10/2013 13:35 Dr.Toni#14
They do it... yes... but you didn't see the spam in these threads?
11/10/2013 13:38 0wnix#15
Quote:
Originally Posted by Dr.John Dorian View Post
They do it... yes... but you didn't see the spam in these threads?
If they aren't able to check a thread they can't check a server status on a website...