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)
Originally posted by Dark_Wizard 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.
Originally posted by Pady tops hack m8 - installed it onto me localserver with no problems - just one thing tho... the delete server doesnt seem to do anything
Change this:
PHP Code:
if ($action=="remove") {
echo "<p>Are you sure you want to delete the Server?</p>\n";
echo "<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";
}
to this:
PHP Code:
if ($action=="remove") {
doformheader("serverstatusadmin","kill");
makehiddencode("serverid",$serverid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this server?");
doformfooter("Yes","",2,"No");
}
echo "<p>Are you sure you want to delete the Server?</p>\n";
echo "<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";
}
to this:
PHP Code:
if ($action=="remove") {
doformheader("serverstatusadmin","kill");
makehiddencode("serverid",$serverid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this server?");
doformfooter("Yes","",2,"No");
not tested but should work...
that should do the trick yea
i kinda forgot about it i think :|
echo "<p>Are you sure you want to delete the Server?</p>\n";
echo "<p><a href='serverstatusadmin.php?serverid=$serverid&action=kill'>Yes</a></p>";
}
to this:
PHP Code:
if ($action=="remove") {
doformheader("serverstatusadmin","kill");
makehiddencode("serverid",$serverid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this server?");
doformfooter("Yes","",2,"No");
not tested but should work...
it gave this error when tested
Code:
Parse error: parse error in /admin/serverstatusadmin.php on line 100
I tried adding a "}" after the changed code - this gets rid of the phase error but still doesnt diplay the delete message or remove the server fromt he listing.