TMN/U Status Box for webpages

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Post Reply
andreas1983
sunday driver
sunday driver
Posts: 63
Joined: 22 Oct 2006 21:31
Contact:

TMN/U Status Box for webpages

Post by andreas1983 » 07 Mar 2007 19:21

Hi there,

somebody knows a script to display server status of tmu/tmn servers on a webpage?

Greetings
andreas
Image

Jfreu
Pit Crew
Pit Crew
Posts: 304
Joined: 21 Nov 2006 11:57
Owned TM-games: tmu
Location: France
Contact:

Post by Jfreu » 07 Mar 2007 21:33

php script ?

maybe something like that :
<?php
$port = "2345"; //?
$ip = "127.0.0.1"; //?
if ($socket = @fsockopen($ip, $port, $nm, $err, 10))
{
// server up
fclose($socket);
}
else
{
// server down
}
?>

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Post by Fisch.666 » 08 Mar 2007 12:00

Hi!

Just use the tmos_viewer.php from TMOS:

viewtopic.php?t=2527

I've modified the file a little bit to fit it into a box:

http://www.prielwurmjaeger.de/

andreas1983
sunday driver
sunday driver
Posts: 63
Joined: 22 Oct 2006 21:31
Contact:

Post by andreas1983 » 08 Mar 2007 21:54

maybe you can publish it for all of us


of course with (c) for you :)
Image

ming
smooth traffic navigator
smooth traffic navigator
Posts: 260
Joined: 04 Dec 2006 11:10
Owned TM-games: all
Manialink(s): redlion, ming

Post by ming » 09 Mar 2007 08:59

well, that would be great. im looking for something like that too.

i m using joomla with serverstat/clan server mod.

does anybody know if there is a modification/addon for serverstat to see tm-stats??


by the way..: i found this:


http://www.atrteam.info/forum/viewtopic.php?t=94

looks not that bad, but till now i hardly get it implemented into joomla


greetz

ming
Manialink: mingcolor>

Luxembourg's TM-community website: www.trackmania.lu

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 09 Mar 2007 10:07

Jfreu wrote:php script ?

maybe something like that :
<?php
$port = "2345"; //?
$ip = "127.0.0.1"; //?
if ($socket = @fsockopen($ip, $port, $nm, $err, 10))
{
// server up
fclose($socket);
}
else
{
// server down
}
?>
Could this work as a phpnuke block ?
even if i would change //server up //server down in a local or online image link
Ð Ξ F u n n y M a n
Image

ming
smooth traffic navigator
smooth traffic navigator
Posts: 260
Joined: 04 Dec 2006 11:10
Owned TM-games: all
Manialink(s): redlion, ming

Post by ming » 09 Mar 2007 10:51

hi,

maybe try something like this:

Code: Select all

<?php
$port = "2350"; //?
$ip = "127.0.0.1"; //?
if ($socket = @fsockopen($ip, $port, $nm, $err, 10))
{
// server up
fclose($socket);

echo "TMU SERVER: online<br>";
echo '<img src="http://urltoyouronlinepicture.jpg">';
}
else
{
// server down
echo "TMU SERVER: server down<br>";
echo '<img src="http://urltoyourofflinepicture.jpg">';
}
?>


greetz


ming
Manialink: mingcolor>

Luxembourg's TM-community website: www.trackmania.lu

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Post by Fisch.666 » 09 Mar 2007 17:22

Hi!
andreas1983 wrote:maybe you can publish it for all of us
Sure, you can download the files from here:

http://www.prielwurmjaeger.de/tmosviewer.zip

But you have to install the tmos stats...
andreas1983 wrote: of course with (c) for you :)
I deleted only a few things to fit the viewer into the box, no need for an (c)

andreas1983
sunday driver
sunday driver
Posts: 63
Joined: 22 Oct 2006 21:31
Contact:

Post by andreas1983 » 10 Mar 2007 00:13

thx a lot to fish it works wonderful ^^
Image

Funnyman
speedy pilot
speedy pilot
Posts: 328
Joined: 31 Mar 2006 06:08
Owned TM-games: TMS, TMU, TMF
Location: Netherlands
Contact:

Post by Funnyman » 10 Mar 2007 01:18

LoL
I figured it out my self whit a lil help from the above code

This is a Nuke Block called block-serverstatus.php

Code: Select all

<?php 

if (eregi("block-Sample_Block.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$port = "2350"; //Serverport 
$ip = "127.0.0.1"; //Ip of your server
if ($socket = @fsockopen($ip, $port, $nm, $err, 10)) 
{ 

// server up 
fclose($socket); 

$content = "<CENTER><b>TMNU SERVER: online</b></CENTER><br><CENTER><img src=\"http://path_to_your_online_image.gif\"></CENTER><BR>"; 

} 
else 
{ 
// server down 
$content = "<CENTER><b>TMN SERVER: down</b></CENTER><br><CENTER><img src=\"http://path_to_your_online_image.gif\"></CENTER><BR>"; 
}
?> 
Ð Ξ F u n n y M a n
Image

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Post by Fisch.666 » 12 Mar 2007 19:51

andreas1983 wrote:thx a lot to fish it works wonderful ^^
Hey, no problem. :D

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Post by Fisch.666 » 14 Apr 2007 11:29

Hi!

Ok, i've upped the viewer for the new tmos 0.61:

http://www.prielwurmjaeger.de/tmosviewer.zip

User avatar
SchNaake
pedestrian
pedestrian
Posts: 10
Joined: 11 Nov 2006 10:41
Owned TM-games: TMNF + TMUF
Contact:

Post by SchNaake » 14 Apr 2007 13:18

Fisch.666 wrote:Hi!

Ok, i've upped the viewer for the new tmos 0.61:

http://www.prielwurmjaeger.de/tmosviewer.zip
hello
sorry, that link does not work

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Post by Fisch.666 » 14 Apr 2007 13:50

Ok, now it should work... :)

Post Reply