Version: 1.00, by chr@nox
Developer Last Online: Nov 2013
Version: 2.2.x
Rating:
Released: 07-21-2002
Last Update: Never
Installs: 8
No support by the author.
Well ok..this is my first hack i made and actually was eh..(good?) enough to post here.
I'm running an irc network together with some good friends and i made a hack to show which servers are up and what their speeds/locations are.
Also i saw something about clanservers and such.
Just add clanservers in this hack instead of irc servers
It shows up on forumhome with the servername as a link to go to the profile of the server.
Where you can view all information of it
Behind the servername is the status
which gives a green 'Up' when the server is up
or a red 'Down' when it's down
(you can set it up/down in the admin cp)
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments) VALUES (NULL,'$servertitle','1')");
and replace it with :
PHP Code:
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments,[b]servertext[/b]) VALUES (NULL,'$servertitle','1')");
then find :
PHP Code:
$DB_site->query("UPDATE serverstatus SET servertitle='$servertitle',serverstatus='$updown',serverspeed='$serverspeed',serverlocation='$serverlocation',serveroperators='$serveroperators',serverowner='$serverowner',servercomments='$servercomments' where serverid='$serverid'");
and replace it with :
[php]
$DB_site->query("UPDATE serverstatus SET servertitle='$servertitle',serverstatus='$updown', serverspeed='$serverspeed',serverlocation='$server location',serveroperators='$serveroperators',serve rowner='$serverowner',servercomments='$servercomme nts',servertext='$servertext' where serverid='$serverid'");
[php]
Ok, so this will make it so I can add more than one line?
Pretty much like a message. I knew I could just copy the previous code for more lines, but I wanted to have a message field where I could post more than one line..make sense?
Sorry if this code below explains that, I wont be getting to it till tomorrow!
Quote:
Originally posted by chr@nox
PHP Code:
makeinputcode("[b]Server Text<b>hmm sorry for that *blush*
<b>little note...i used "servertext" as field name but you can replace it with what you want to.</b>
if you want more fields just add a field in phpmyadmin
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments) VALUES (NULL,'$servertitle','1')");
and replace it with :
PHP Code:
$DB_site->query ("INSERT INTO serverstatus (serverid,servertitle,serverstatus,serverspeed,serverlocation,serveroperators,serverowner,servercomments,[b]servertext[/b]) VALUES (NULL,'$servertitle','1')");
then find :
PHP Code:
$DB_site->query("UPDATE serverstatus SET servertitle='$servertitle',serverstatus='$updown',serverspeed='$serverspeed',serverlocation='$serverlocation',serveroperators='$serveroperators',serverowner='$serverowner',servercomments='$servercomments' where serverid='$serverid'");
and replace it with :
[php]
$DB_site->query("UPDATE serverstatus SET servertitle='$servertitle',serverstatus='$updown', serverspeed='$serverspeed',serverlocation='$server location',serveroperators='$serveroperators',serve rowner='$serverowner',servercomments='$servercomme nts',servertext='$servertext' where serverid='$serverid'");
[php]
Nice addition and I have something very similar added to my "Server Stats" hack. This is a little nicer and I would like to add it to my next version of my hack with the credit of course going to you if thats ok? Let me know.
I just had a nice idea. Is there any way to make the hack Ping each server to see if it's up? And then display if its up or not and if its up the ping reply speed? That would be a nice add-on.
Originally posted by DemiNeo0101 I just had a nice idea. Is there any way to make the hack Ping each server to see if it's up? And then display if its up or not and if its up the ping reply speed? That would be a nice add-on.
I agree and didn't know that this script doesn't ping the server. My next version of Server Status has the feature you requested. It checks specific ports to see if the server responds so if you have a game server like UT for instance it will look at the ip and port number (7777 or whatever) and verify the server replies.
Originally posted by DemiNeo0101 I just had a nice idea. Is there any way to make the hack Ping each server to see if it's up? And then display if its up or not and if its up the ping reply speed? That would be a nice add-on.
I was thinking of that too at first...
but when the server is down it's just waiting for a timeout
so that means you have a waiting time of like 20 seconds on your forumhome...
so i chose for this