Server-website scripting

Discussion for Admins of ETPro/BayonET servers.
If you don't run a server, please don't post here...

Moderators: Forum moderators, developers

User avatar
M8DNephelim
Posts: 7
Joined: Tue Mar 16, 2004 3:40 am
Location: Sundsvall, Sweden
Contact:

Post by M8DNephelim »

[pH*Deus] wrote:Test it here: www.poohunter.de/beta/serverstatus.php? ... 6.70:27969

Get it here: http://www.poohunter.de/index.php?page=getfile&id=19

Make sure to edit server/_config.php

HF & GL
I bow my head for you and to Bani for fast input!

Thx m8´s! I will update our website with your script [pH*Deus] with my new version of M8D International Website that will go online during April.
I will send you a link when its updated so you can see your artwork in action... :wink:
Image

Fragging is NOT a crime! Yet........ | www.m8d-clan.com | #m8d on QuakeNet
ulissesnelson
Posts: 28
Joined: Sun Feb 22, 2004 3:34 am
Location: Portugal
Contact:

Post by ulissesnelson »

SHVDKTY (ID) wrote:
[pH*Deus] wrote:Test it here: www.poohunter.de/beta/serverstatus.php? ... 6.70:27969

Get it here: http://www.poohunter.de/index.php?page=getfile&id=19

Make sure to edit server/_config.php

HF & GL
Thanks pH*Deus It runs great and is easy even for a nub like me. All in all it took me about 10 mins of editing (language change) check it here.
can u send me the _config.php in english ? im bad at german and btw deus im finishing to encode ur script for phpnuke module :)
just now making some changes to work with another languages.

http://www.equilibrium-clan.com/module ... verstatus
btw if i have 5 server? this only allow 1 server to be displayed?
Mygamesplayer ET Amin!
User avatar
Deus
Posts: 1053
Joined: Fri Mar 12, 2004 2:24 am
Location: Germany
Contact:

Post by Deus »

Code: Select all

<?
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xxx&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx2&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx3&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx4&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx5&#58;yyyyy";
?>
save this as multistatus.php and call this instead of serverstatus.php in your layout
Hope it works. Not tested
ulissesnelson
Posts: 28
Joined: Sun Feb 22, 2004 3:34 am
Location: Portugal
Contact:

Post by ulissesnelson »

[pH*Deus] wrote:

Code: Select all

<?
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xxx&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx2&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx3&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx4&#58;yyyyy";
echo "<hr>";
include "path_to_/serverstatus.php?ip=xxx.xxx.xxx.xx5&#58;yyyyy";
?>
save this as multistatus.php and call this instead of serverstatus.php in your layout
Hope it works. Not tested
tnks,but ill need to change that since phpnuke modules
works this way
example

/modules/serverstatus(folder)/serverstatus.php(file must be changed to index.php and clean of html tags,and inserted 3 or 4 nuke php tags)

Code: Select all

global $module_name;
include&#40;"header.php"&#41;;
title&#40;"Serverstatus"&#41;;
humm got it -ill create a menu with the colors of server status ,with the servers name calling to another serverstatus pages ..
Mygamesplayer ET Amin!
ulissesnelson
Posts: 28
Joined: Sun Feb 22, 2004 3:34 am
Location: Portugal
Contact:

Post by ulissesnelson »

i must be tired ,but weres the file were i need to translate this?

Code: Select all

Achsenmächte &#40; 8  Spieler&#41;   Allierte &#40; 8  Spieler&#41; 
i though was at the config but i cant see him lol
Mygamesplayer ET Amin!
User avatar
Deus
Posts: 1053
Joined: Fri Mar 12, 2004 2:24 am
Location: Germany
Contact:

Post by Deus »

ulissesnelson wrote:i must be tired ,but weres the file were i need to translate this?

Code: Select all

Achsenmächte &#40; 8  Spieler&#41;   Allierte &#40; 8  Spieler&#41; 
i though was at the config but i cant see him lol
Sry, i forgot that *shame*

open the server/_players_main.php and edit line 131 and line 141

will fix this soon.
Post Reply