Page 1 of 1

Server Online Check

Posted: Wed Jan 10, 2007 1:32 pm
by Xeranon
Heya =)

I just created my first Plugin and like to show it to you now.

It is a Sidebar Plugin wich allows you to check a IP-Adress (with specified Port) over a Socket-Connection if it is online. You can also define that maximal Timeout and a Description.
If your Server is online, it shows also the response-time.
With that you can check different kind of server, I use it per example to check if my Gameserver is online ;)

Demo of the Admin-Interface:
Image

Demo of the Sidebar:
Image

So, here you can find it:
www.xeranon.ch/serendipity_plugin_onlinecheck.zip

So, i would be pleased to hear what you think about ot, what can be done in a better way or whatever. :)

Ps: I hope I'm right here with this :oops:

Re: Server Online Check

Posted: Thu Jan 11, 2007 8:54 am
by garvinhicking
Hi!

That's a quite good effort for a first plugin!

Since you asked for improvements, there are no fundamental ones, but a few minor ones:

1. You can use Umlauts in the lang_de.inc.php files (Ü instead of Ue). You just need to make sure that the lang_de.inc.php in the base directory is saved in ISO-8859-1 / ANSI Format, and the file in the UTF-8 subdirectory in UTF-8 format.

2. It is better to use "<?php" instead of just "<?", because not on all installations "<?" will work, as it depends on a PHP configuration directive.

3. To make sure that your plugin cannot be used outside of the serendipity context, add this in the first PHP line:

Code: Select all

if (IN_serendipity !== true) {
  die ("Don't hack!");
}
The rest of the code is solid and good! :-)

Best regards,
Garvin

Posted: Sat Jan 13, 2007 3:37 pm
by Xeranon
Hi Garvin!

Thanks for the Tipps ;) I've made the recommended changes and reuploaded the files (same link as above).

Greez
Roger

Posted: Thu Jan 18, 2007 9:48 pm
by judebert
So, will we be adding this to SPARTACUS?

Posted: Mon Jan 29, 2007 9:58 am
by Xeranon
Have someone tested it yet? =)

Greez
Roger