Dough

Joined: 21st Oct 2010
Posts: 535
Server Checker [Tool] [UPDATED!]
When the Blackout-Gaming Server Status Checker was closed, i had an idea to create a clone from this...
The tool is: Server Status Checker, all the code is from me and the style is a clone from they :P
[Update] Moved URL.
[Update] Added Cache, each 3min.
[Update] Added + Styles.
@11 Styles:
Style 1:
Online Image:  Offline Image: Style 2:
Online Image:  Offline Image: Style 3:
Online Image:  Offline Image: Style 4:
Online Image:  Offline Image: Style 5:
Online Image:  Offline Image: Style 6:
Online Image:  Offline Image: Style 7:
Online Image:  Offline Image: Style 8:
Online Image:  Offline Image: Style 9:
Online Image:  Offline Image: Style 10:
Online Image:  Offline Image: Style 11:
Online Image:  Offline Image:  -> Link Here <-
@ If you wanna add some style, image, ads, etc. Send a Mail to doug@dooug.com, i'll add.
14 years, 7 weeks ago
|
Re: Server Checker [Tool]
those are pretty cool and would be very useful.
14 years, 7 weeks ago
|
devingg

Joined: 24th Aug 2010
Posts: 1234
Re: Server Checker [Tool]
Or you could just stay online 100% :D ---
Oh, it's you.
[Omni, Seraphim, Idea, Returnity]
14 years, 7 weeks ago
|
Re: Server Checker [Tool]
Good job + love it will come in very usefull!
14 years, 7 weeks ago
|
Dough

Joined: 21st Oct 2010
Posts: 535
Re: Server Checker [Tool]
Thanks guys, and please, if you get some extra Online & Offline images please e-mail me at:
1 - srdoug@hotmail.com.br (msn too)
or
2 - doug@dooug.tk
14 years, 7 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Server Checker [Tool]
I cannot be bothered to personally check but, the script that checks if the server is active... Does it cache the results for say 5 minutes to prevent spam? If not then I'd suggest adding it since you're
allowing hot linking :) ---
I am an alien and not crazy!
14 years, 7 weeks ago
|
Dough

Joined: 21st Oct 2010
Posts: 535
Re: Server Checker [Tool]
My Server have Unlimited Bandwidth to support this, then, i dont need create a cache ;)
14 years, 7 weeks ago
|
Re: Server Checker [Tool]
It would reduce lag quite a bit though :P
When i made one out of PHP for my server i didnt create a cache and would take awhile to load the page.
---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer
14 years, 7 weeks ago
|
Dough

Joined: 21st Oct 2010
Posts: 535
Re: Server Checker [Tool]
Unlimited Space
Unlimited Bandwidth
Unlimited MySQL Databases, Email Accounts + more
Quad Core servers with 8GB of RAM and VelociRaptor/SCSI Drives
now is good?
14 years, 7 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Server Checker [Tool]
Dough posted: (8th May 2011 03:51 pm)
Unlimited Space
Unlimited Bandwidth
Unlimited MySQL Databases, Email Accounts + more
Quad Core servers with 8GB of RAM and VelociRaptor/SCSI Drives
now is good?
No. When and if thousands of people are hotlinking to this and have multiple views seeing it on their site. Yours will end up going really really slow. Making a cache reduces it a lot.
It's simple to do in PHP and is only a few lines of code. You don't even need to use a database.
---
I am an alien and not crazy!
14 years, 7 weeks ago
|
Re: Server Checker [Tool]
Heres my old one, theres prolly some unnessecary stuff in there.
<?php
function Online($string, $stringsite) {
print<<<eof
<html><head><link rel=stylesheet type="text/css" href="styles.css"></head><body>
<h2>$stringsite - Server Status : $string</h2>
<h3>Sorry if the server is not up.</h3>
<h2/></h2>
</body>
</html>
eof;
}
$host ='wildarena.no-ip.org';
$port = 8078;
function GetServerStatus($site, $port) {
$status = array("Offline", "Online");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
Online($status[0],$site);
} else {
Online($status[1],$site);
}
}
print<<<eof
<html><head><link rel="stylesheet" type="text/css" href="styles.css"></head><body><center>
eof;
if($_GET['query'] == "serveronline") {
GetServerStatus($host,$port);
}
print "</center></body></html>";
?>
link to it would be PageName.php?query=serveronline
---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer
14 years, 7 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Server Checker [Tool]
Wildsurvival posted: (8th May 2011 06:36 pm)
Heres my old one, theres prolly some unnessecary stuff in there.
<?php
function Online($string, $stringsite) {
print<<<eof
<html><head><link rel=stylesheet type="text/css" href="styles.css"></head><body>
<h2>$stringsite - Server Status : $string</h2>
<h3>Sorry if the server is not up.</h3>
<h2/></h2>
</body>
</html>
eof;
}
$host ='wildarena.no-ip.org';
$port = 8078;
function GetServerStatus($site, $port) {
$status = array("Offline", "Online");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
Online($status[0],$site);
} else {
Online($status[1],$site);
}
}
print<<<eof
<html><head><link rel="stylesheet" type="text/css" href="styles.css"></head><body><center>
eof;
if($_GET['query'] == "serveronline") {
GetServerStatus($host,$port);
}
print "</center></body></html>";
?>
link to it would be PageName.php?query=serveronline
Even that does not cache :/ ---
I am an alien and not crazy!
14 years, 7 weeks ago
|
Re: Server Checker [Tool]
Yes, ino :P
---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer
14 years, 7 weeks ago
|
Desmond
Joined: 7th Jun 2010
Posts: 2424
Re: Server Checker [Tool]
This one I just wrote up does though :)
https://tehsausage.com/paste/desmonds-server-checker-with-cache
I saved it as C/C++ in the paste bin PMSL.
---
I am an alien and not crazy!
14 years, 7 weeks ago
|
Dough

Joined: 21st Oct 2010
Posts: 535
Re: Server Checker [Tool]
my server checker doesn't needs cache, to be more precisous.
Example: you was disconnected from the game and you wanna see if the game is offline only for you... the cache have a limit of updation, then, you see "the server is online" and you think: - oh my god! they'r banned me!
14 years, 6 weeks ago
| | | | | | | | | | | | | | | |